1 Reply Latest reply on Sep 21, 2005 8:30 AM by Lecan

    TreeCache and ClassNotFoundEx on several nodes

    Lecan Newbie

      Hello

      I have several TreeCache deployed on several servers. When I try to insert my own types in, I get that on the other servers :

      13:16:08,663 ERROR [org.jgroups.blocks.RpcDispatcher] exception=java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: No ClassLoaders found for: my.package.ServiceAsynchrone


      In debug mode, I checked the configuration of the classloader where JGroups seems to be embedded (just a simple getClass().getClassLoader() where objects are unserialized, in org.jgroups.Message). I get that :
      (org.jboss.mx.loading.UnifiedClassLoader3) org.jboss.mx.loading.UnifiedClassLoader3@7cd37a{ url=file:/C:/jboss-dev-3.2/server/all/tmp/deploy/tmp15883jboss-service.xml ,addedOrder=2}

      I believe it is the main classloader of JBoss ! So it is acceptable that JGroups can't find my own types.

      How to configure it to find them ?

      I'm working with :
      - JBoss 3.2.5
      - TreeCache embedded in an EAR, with closed classloader (not allowed to be changed)

      Thanks

        • 1. Re: TreeCache and ClassNotFoundEx on several nodes
          Lecan Newbie

          If I just let one server in the cluster, everything works fine.

          More, JGroups classloader is not the same this time :

          (org.jboss.mx.loading.UnifiedClassLoader3) org.jboss.mx.loading.UnifiedClassLoader3@1599f38{ url=file:/C:/jboss-dev-3.2/server/all/tmp/deploy/tmp31439generationpdf.ear ,addedOrder=23}


          And if I relauch the other servers, I get again the first classloader (with exactly the same reference) and nothing works :
          (org.jboss.mx.loading.UnifiedClassLoader3) org.jboss.mx.loading.UnifiedClassLoader3@7cd37a{ url=file:/C:/jboss-dev-3.2/server/all/tmp/deploy/tmp15883jboss-service.xml ,addedOrder=2}


          I will try to embed JGroups and TreeCache JARs in my EAR.