1 Reply Latest reply on Dec 16, 2004 5:46 AM by baumgarten

    RMIClassloader problem

    baumgarten

      Hi!

      I've a very strange problem with RMI class loading. I've an ejb application app.ear containing some jars a.jar, b.jar, c.jar. Each jar contains some remote session beans. First I've created a jar appRemote.jar containing all the bean interfaces in order to develop a client. Running the client works fine if I would have appRemote.jar in the classpath. If I run the client without (using RMI class loading) it becomes strange. JNDI lookup works for some beans and for some beans I get an javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException ...]. I've compared classes and deployment descriptors and I cannot find any difference. Then I logged the RMIClassloader trace and there I get somthing like that:

      [19353093,RepositoryClassLoader,Thread-52] loadClassLocally, org.jboss.mx.loading.UnifiedClassLoader3@137d4a4{ url=file:/C:/Afps/Baumgarten/server/afps/tmp/deploy/tmp11451jboss-service.xml ,addedOrder=2} name=de.ibees.afps.server.einkauf.anfrage.ejb.AnfrageServiceHome
      [19353093,RepositoryClassLoader,Thread-52] Class in blacklist, name=de.ibees.afps.server.einkauf.anfrage.ejb.AnfrageServiceHome
      [19353093,RepositoryClassLoader,Thread-52] loadClassLocally, org.jboss.mx.loading.UnifiedClassLoader3@137d4a4{ url=file:/C:/Afps/Baumgarten/server/afps/tmp/deploy/tmp11451jboss-service.xml ,addedOrder=2} name=de.ibees.afps.server.einkauf.anfrage.ejb.AnfrageServiceHome not found
      [19353093,LoadMgr3,Thread-52] End beginLoadTask, ClassNotFoundException

      AnfrageServiceHome is a remote home interface. What could be a reason for that? Remember it works well if the interface is in the client's classpath and it happens not for all beans.

      I work on JBoss 4.0 Java 5.0.

      hope anyone can help
      Sven