0 Replies Latest reply on Oct 26, 2004 10:06 AM by jdestef

    Classloader issue with hibernate deployment

    jdestef

      Hi,

      I'm using JBoss 4.0 on Windows 2000 with JDK 1.4.2. I'm tring to deploy a web application that uses hibernate. This application has the hibernate 2.1 jar in it's web-inf/lib directory. The deployment is going to the standard server on Jboss. In the standard servers jbossweb-tomcat50.sar directory I have set the in the jboss-server.xml file the following parameters:

      Java2ClassLoadingCompliance to true
      UseJBossWebLoader to false

      I have also added a jboss-web.xml file to the web-inf directory of the deployment as follows:

      <jboss-web>
      <context-root>xplanner</context-root>
      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      xplanner:loader=xplanner.war
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
      </class-loading>
      </jboss-web>

      In the standard server there is a hibernate.jar file in the lib directory. What I thought would happen with this configuration is that the hibernate.jar file in the web app's lib directory would be used as opposed to the one in the standard servers lib directory. This is not happening. The hibernate.jar from the standard servers lib directory is being used. This is causing other class loading issues (NoClassdefFound).

      Is this the correct configuartion?

      Thanks