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

    JBOSS Class Loading

    RAM S Newbie

      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.








      <?xml version="1.0" encoding="UTF-8"?>  
      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" 



      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.