0 Replies Latest reply on Jul 25, 2006 6:33 PM by Richard Doust

    multiple class loaders found for pkg

    Richard Doust Newbie

      I am still trying to move an EAR which had successfully deployed in JBoss 4.0.1 to JBoss 4.0.4. The EAR contains a WAR and several JARs. I had problems getting the application to work until I found a post by Adrian Brock that explains how to use the pre-4.0.2 classloading configuration. The problem was that I was getting a ClassCastException when using the PortableRemoteObject.narrow method to retrieve a class that would allow access to an EJBHome object. After changing the configuration files to support the pre-4.0.2 classloading, I got past this problem. Now, however, I have a new problem when an EJB attempts to create an instance of a private inner class on initialization. It's getting a java.lang.IllegalAccessException, which to me, sounds like I have more class loading issues. I'm also seeing entries in server.log that say:
      multiple class loaders found for pkg: [package name] when the EJB Jar file is deployed.
      Is there anyplace that someone can direct me to where I can learn all that I need to know about class loading issues that result from deploying EARs, WARs, and JARs to an EJB container in the post 4.0.1 era?