2 Replies Latest reply on Mar 22, 2010 7:04 AM by hal arres

    "class-loader" configuration doesn't work

    hal arres Newbie

      Hi all,


      I have a problem with my classloader configuration inside the EAR. I can't get it working. It would be very nice if someone of you could help me.


      I am using JBoss 4.2.2.GA but the Hibernate version shipped with this JBoss seems to have a bug (http://opensource.atlassian.com/projects/hibernate/browse/ANN-554). So I want to put the Hibernate jar files into my EAR and deploy it.

      To do this I configured the classloader as described in this artikle: http://community.jboss.org/wiki/classloadingconfiguration


      So this is my jboss-app.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-app PUBLIC
          "-//JBoss//DTD J2EE Application 1.4//EN"


      But I still have the same exception as in the previous Hibernate version so I took a look where the classes came from and I saw, that they are still loaded from the server-lib directory:

      [Loaded org.hibernate.cfg.OneToOneSecondPass from file:/D:/dev/jboss-4.2.2.GA-4test/server/overview/lib/hibernate-annotations.jar]
      [Loaded org.hibernate.mapping.OneToOne from file:/D:/dev/jboss-4.2.2.GA-4test/server/overview/lib/hibernate3.jar]



      This are the files in my EAR:

      │   antlr-2.7.6.jar
      │   backend-1.0-SNAPSHOT.jar
      │   commons-collections-3.2.jar
      │   commons-lang-2.3.jar
      │   commons-logging-1.1.1.jar
      │   db2jcc-1.0.jar
      │   db2jcc_license_cu-1.0.jar
      │   dom4j-1.6.1.jar
      │   ejb3-persistence-1.0.2.GA.jar
      │   hibernate-annotations-3.4.0.GA.jar
      │   hibernate-commons-annotations-3.1.0.GA.jar
      │   hibernate-core-3.3.2.GA.jar
      │   hibernate-entitymanager-3.4.0.GA.jar
      │   hibernate-search-3.1.1.GA.jar
      │   hsqldb-
      │   javassist-3.4.GA.jar
      │   jboss-local-jdbc-4.2.2.GA.jar
      │   jta-1.1.jar
      │   log4j-1.2.15.jar
      │   lucene-core-2.4.1.jar
      │   slf4j-api-1.5.8.jar
      │   xml-apis-1.0.b2.jar





      Can someone help me to fix this problem.





      hal arres: Adding the directory content