1 Reply Latest reply on Jul 20, 2011 2:31 AM by buzzdoet

    JBOSS Class Loading

    talk2kr10

      Hi All

       


      In My application there are some libraries(i,e hibernate3.jar) are present in application lib (inside the war file) as well as in the server lib but different version. But this makes problem in jboss 4.7 to load the application lib file.It is always trying to load the jar which resides in the server lib directory only

       

       

       

      What i have to do for resolving this problem. I cannot remove there libraries in server lib.I tried class loader configuration as follows hibernate3.jar are the libraries in common inside the war file under the WEB-INF/JBOSS-WEB.xml i copied the below lines of code as well, it is still refering the server lib directory version of hibernate only.

       

       

       

       

       

      WEB-INF/JBOSS-WEB.xml#####

      =============

      <?xml version="1.0" encoding="UTF-8"?>  
      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" 
          "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">  
      <jboss-web>
      <loader-repository>
      org.hibernate:archive=hibernate3.jar
      <loader-repository-config>
      java2ParentDelegation=false
      </loader-repository-config>
      </loader-repository>
      </jboss-web>

       

       

      Since the server lib has different version of hibernate.jar it is throwing class not found exception. it should pick it up from the application lib directory. Please let me know is there is any configurationc hanges which needs to be done.

        • 1. Re: JBOSS Class Loading
          buzzdoet

          Hi,

           

          I have a similar problem loading the DocumentBuilder class, this conflicts with a class in xercesImpl.jar (which is a standard JBoss jar).

          Who knows where I can find information about  the WEB-INF/JBOSS-WEB.xm settings?

           

          Thanx.