0 Replies Latest reply on Jul 6, 2005 9:01 PM by Michael K

    [MainDeployer] could not create deployment

    Michael K Newbie

      Hello,

      I created MonitorAlertService mbean as triggered monitor listener that is defined in monitoring-service.xml

      It works just fine when I pack it and deploy as SAR.
      However, when I wrapped it by EAR it can't be found.

      services.ear
      +-services.jar
      +- META-INF/MANIFEST.MF
      +- META-INF/application.xml
      +- META-INF/jboss-app.xml
      +-services.sar
      | +- META-INF/MANIFEST.MF
      | +- META-INF/jboss-service.xml
      | +- mypackage/MonitorAlertService.class
      | +- mypackage/MonitorAlertServiceMBean.class


      Yes, I've added jboss-app.xml to EAR as

      <jboss-app>

      services.sar

      </jboss-app>

      to tell jboss to load this SAR.

      I'm getting:

      ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.0/server/default/deploy/monitoring-service.xml
      org.jboss.deployment.DeploymentException: No ClassLoaders found for: com.mbean.MonitorAlertService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mbean.MonitorAlertService)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
      at org.jboss.system.ServiceController.install(ServiceController.java:200)
      at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
      at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)


      What I'm missing?

      Thanks.