问题
I have spring-webmvc 3.1.0.release version in my web-inf/lib folder of my warfile, but when the app is deployed to weblogic i am getting compilation errors.
weblogic is using spring 2.x version which comes bundled with weblogic 10.3.x to compile the jsps.
because of which i am getting compile time errors like setDynamicAttribute(null, String, String) is undefined for the type ErrorsTag
I tried using prefer-application-packages tag in weblogic.xml but it didn't work.
How do i resolve this?
Thanks in advance for the help!!
回答1:
This is a bug - Weblogic 10.3.x doesn't consider prefer-application-packages
when compiling JSP pages. Last checked on WAS 10.3.6.0
回答2:
I have tried and its working on window machine successfully but didn't working on linux machine.
Below is my weblogic.xml file. if you are using window machine may be it will be helpful.
weblogic.xml
<!--?xml version="1.0" encoding="UTF-8"?-->
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-application-packages>
<package-name>com.oracle.ojdbc16.*</package-name>
<package-name>antlr.*</package-name>
<package-name>javax.persistence.*</package-name>
<package-name>org.apache.commons.*</package-name>
<package-name>org.springframework.*</package-name>
<package-name>org.hibernate.*</package-name>
<package-name>org.apache.xerces.*</package-name>
</prefer-application-packages>
</container-descriptor>
</weblogic-web-app>
Thanks
来源:https://stackoverflow.com/questions/16488270/weblogic-10-3-issues-with-spring-3-1-0-jsp-compilation