1 2 Previous Next 18 Replies Latest reply on Nov 27, 2009 11:13 AM by ad-rocha Go to original post
      • 15. Re: Struggling with jboss-classloading.xml
        alesj

        Go to ClassLoaderSystem(MBean) and invoke its getClassLoaderForClass for RARDeployment class.

        • 16. Re: Struggling with jboss-classloading.xml

          Ales,

          The only MBean tht I found was jboss.classloader:service=ClassLoaderSystem. Unfortunately there is no such getClassLoaderForClass method.

          Actually there is no method to invoke, only DomainNames and Domains attributes.

          Andre

          • 17. Re: Struggling with jboss-classloading.xml
            alesj

            Ah, it's the ClassLoaderDomainMBean that has

             /**
             * Find the classloader for a class
             *
             * @param name the class name
             * @return the classloader or null if it is not loaded by a managed classloader
             * @throws ClassNotFoundException when the class is not found
             */
             ObjectName findClassLoaderForClass(String name) throws ClassNotFoundException;
            


            Try this on DefaultDomain for RARDeployment class.
            If this one doesn't find it, try other domains if you can find it.


            • 18. Re: Struggling with jboss-classloading.xml

              Result from DefaultDomain.findClassLoaderForClass(org.jboss.resource.deployers.RARDeployment):

              jboss.classloader:id="vfsfile:/C:/Java/jboss-5.1.0.GA/server/default/deployers/jboss-jca.deployer/"

              1 2 Previous Next