1 Reply Latest reply on Jan 9, 2006 12:32 PM by Dimitris Andreadis

    Can't use scoped class for MBean attribute in -service.xml

    Elias Ross Master

      This is JBoss 4.0.3.

      I have an MBean whose attribute is a java.lang.Class

      The class "FooClass" is available in a .ear file of course, but it doesn't seem to find it when configuring the MBean.

      2006-01-04 14:05:40,282 INFO [ServiceConfigurator] ( ) Problem configuring service examle:service=FooService
      org.jboss.util.NestedRuntimeException: No ClassLoaders found for: example.FooClass; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for:
      example.FooClass)
       at org.jboss.util.propertyeditor.ClassEditor.getValue(ClassEditor.java:38)
       at org.jboss.system.ServiceConfigurator.parseTextSerialData(ServiceConfigurator.java:542)
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:311)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:442)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
       at org.jboss.system.ServiceController.install(ServiceController.java:215)


      Is there some reason for this, or is this a bug? It seems like ClassEditor uses the Thread's scoped classloader.