【转】IBM websphere6.1 不支持泛型、int-Integer类型的自动装箱和拆箱问题

Websphere6.1默认的JSP编译器为JDK1.3 BT啊!!!!!

所以必须手动更改为1.5,否则不能识别JDK1.5的语法

 

 解决办法如下:

1、找到 D:\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\svctag-gkx2q2xCell01\applications\gyspt_war.ear\deployments\gyspt_war\gyspt.war\WEB-INF\ibm-web-ext.xmi

在最后面的 </webappext:WebAppExtension> 前添加下面一行:
<jspAttributes xmi:id="JSPAttribute_113" name="jdkSourceLevel" value="15"/>

2、找到D:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\svctag-gkx2q2xCell01\gyspt_war.ear\gyspt.war\WEB-INF\ibm-web-ext.xmi

在最后面的 </webappext:WebAppExtension> 前添加下面一行:
<jspAttributes xmi:id="JSPAttribute_113" name="jdkSourceLevel" value="15"/>

 

然后删除编辑产生的缓存文件,重新启动服务器,一切OK

posted @ 2011-06-29 09:11  blueKnight  Views(394)  Comments(0Edit  收藏  举报