2

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!!

  • Are you deploying to a managed server or directly to an admin server? Is your server running in development mode or production mode? Do you have other applications deployed within the very same server instance? – Sym-Sym May 11 '13 at 13:49
  • I have similar issue, it looks like when it comes to JSP compiling, WAS doesn't consider `prefer-application-packages`. – igr Jan 27 '14 at 12:30

2 Answers2

4

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

igr
  • 10,199
  • 13
  • 65
  • 111
0

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