2 Replies Latest reply on Dec 1, 2004 4:30 AM by mskar

    RepositoryClassLoader throwing class not found exception

    mskar Newbie

      Hi All,

      I'm trying to create a simple Queue.

      org.jboss.mx.loading.RepositoryClassLoader is not find the class test.EmailChannel class. But my application works fine only problem it is not sending the mails.

      I have one jar file which is in simple.war WEB_INF/lib folder. I deploying my application as a simple.ear file. After deployment in the starting TestServlet will call initialize method in EmailChannel class in the jar file (which is simple.war WEB-INF/lob folder).

      I have posted the same previously also please help me out to solve this error.

      Here the TRACE where extactly Classloader exception. It is saying org.jboss.mx.loading.RepositoryClassLoader - CFNE: Adding to blacklist: test.EmailChannel ?????? i'm not understanding what is blacklist and why it is adding this class?

      when i'm shutting the appserver for the particular queue is syaing "javax.jms.InvalidDestinationException: The subscription was registered with a destination that does not exist !". Because all my destination server properties will be setup in the EmailChannel class initialize method.



      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - loadClass org.jboss.mx.loading.UnifiedClassLoader3@1d6e4a4{ url=file:/D:/JBoss/jboss-4.0.0/server/default/tmp/deploy/tmp17378simple.ear ,addedOrder=34} name=test.EmailChannel
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - attempt(1) was: true for :org.jboss.mx.loading.UnifiedClassLoader3@1d6e4a4{ url=file:/D:/JBoss/jboss-4.0.0/server/default/tmp/deploy/tmp17378simple.ear ,addedOrder=34}
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.LoadMgr3 - registerLoaderThread, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1d6e4a4{ url=file:/D:/JBoss/jboss-4.0.0/server/default/tmp/deploy/tmp17378simple.ear ,addedOrder=34}, t=Thread[main,5,jboss], prevT=null
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.LoadMgr3 - Begin beginLoadTask, task=org.jboss.mx.loading.ClassLoadingTask@19e5431{classname: test.EmailChannel, requestingThread: Thread[main,5,jboss], requestingClassLoader: org.jboss.mx.loading.UnifiedClassLoader3@1d6e4a4{ url=file:/D:/JBoss/jboss-4.0.0/server/default/tmp/deploy/tmp17378simple.ear ,addedOrder=34}, loadedClass: nullnull, loadOrder: 2147483647, loadException: null, threadTaskCount: 0, state: 0, #CCE: 0}
      11-29-04:11:25 [main] DEBUG org.jboss.mx.loading.UnifiedClassLoader - New jmx UCL with url null
      11-29-04:11:25 [main] DEBUG org.jboss.mx.loading.RepositoryClassLoader - setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@c67f69, cl=org.jboss.mx.loading.UnifiedClassLoader3@1a97149{ url=null ,addedOrder=0}
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - getResourceLocally(org.jboss.mx.loading.UnifiedClassLoader3@1a97149{ url=null ,addedOrder=0}), name=test/EmailChannel.class, resURL:null
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - loadClassLocally, org.jboss.mx.loading.UnifiedClassLoader3@1d6e4a4{ url=file:/D:/JBoss/jboss-4.0.0/server/default/tmp/deploy/tmp17378simple.ear ,addedOrder=34} name=test.EmailChannel
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - findClass, name=test.EmailChannel
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - CFNE: Adding to blacklist: test.EmailChannel
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - CFNE: Adding to blacklist: test.EmailChannel
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.RepositoryClassLoader - loadClassLocally, org.jboss.mx.loading.UnifiedClassLoader3@1d6e4a4{ url=file:/D:/JBoss/jboss-4.0.0/server/default/tmp/deploy/tmp17378simple.ear ,addedOrder=34} name=test.EmailChannel not found
      11-29-04:11:25 [main] TRACE org.jboss.mx.loading.LoadMgr3 - End beginLoadTask, ClassNotFoundException


      TIA.

      -M.D.S