I have moved from Glassfish v2.1 to Glasfiss 3.1.2.2. I had several web applications (WARs) deployed and running in Glassfish v2.1, but I have problems with the deployment of some of them in Glassfish v3.1.2.2.
When I try to deploy a WAR file in Gfv3, I always get a ClassNotFoundException related to the libraries defined in web.xml descriptor, such as:
<listener>
<listener-class>org.directwebremoting.servlet.DwrListener
</listener-class>
</listener>
or
<init-param>
<param-name>javax.xml.parsers.DocumentBuilderFactory</param-name>
<param-value> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
</param-value>
</init-param>
These libraries are contained in web-app WEB-INF/lib directory. If I copy them to domains/domain1/lib folder in Glassfish installation, the problem dissapear and I can deploy the web-apps rightly. But I cannot use this approach, I need that each web-app use its own libraries.
Does anyone know what can be the problem?
Thanks in advance!
/WEB-INF/lib/)? - gaborsch