在JSP中有这样一行代码:
而该JSP在Portal 5中确定是没问题的。利用Google找到一个类似的问题,有人做了如下 的解答:
1) Declare web.xml as Servlet 2.5. 2) Remove all loose JSTL tld files from your classpath. Those are already included in the JSTL JAR file. 3) Remove the TLD declarations from your web.xml. Those are already declared in the JSTL JAR's web.xml. 4) I recommend to remove the JSTL and Standard JAR's and use JSTL 1.2 instead: jstl-1.2.jar. Just place it in the classpath (YourWebApp/WEB-INF/lib or Tomcat/lib) and declare the @taglib in your JSP to use it. Nothing more, nothing less. Do not extract the JAR and duplicate the stuff everywhere.
再三检查后,以上4点在移植过程中都已经注意了,除了Servlet是2.4以外,但是应该和这个没关系。
既然原因不在这里,就只有另外想办法,根据错误信息,忽然想到尽管WEB-INF/lib中的jstl.jar没问题,但是是否加载到了这个jar呢。打开EAR项目下的application.xml,转到Deployment,将Classloader Mode设置为PARENT_LAST。重启发布项目后,问题解决。 该设置的物理位置在{EAR}\META-INF\ibmconfig\cells\defaultCell\applications\defaultApp\deployments\defaultApp\deployment.xml中
Powered by: BlogJava Copyright © 马达+斯加