<depends> won't help with class loading issues. Your problem is the jar containing the classes has not been deployed yet.
Why do you need to externalize the definitions? You can use an unpacked sar (a directory structure) deploy/ deploy/myapp.sar/META-INF/jboss-service.xml deploy/myapp.sar/com/kiala/whatever.class deploy/myapp.sar/jbossmq-service.xml deploy/myapp.sar/kpserver-service.xml etc. The -service.xml(s) will use the same classloader as the sar which will have already deployed the classes. To redeploy touch META-INF/jboss-service.xml (the "watch file" used by the sar deployer for unpacked deployments). Regards, Adrian On Thu, 2003-09-25 at 16:07, Stephane Nicoll wrote: > Hello, > > We have an application using MBean and the varia scheduler. Everything worked > fine. For some reasons, we had to externalize the definition of our JMS > queues, MBean and schedulers in -service.xml file. > > What we have now is a directory kpserver under the deploy containing > > the .ear of the application > a file with our queues (jbossmq-service.xml) > a file with our mbeans (kpserver-service.xml) > a file with our schedulers (schedulers-service.xml) > > If I copy manually the file in the order they should be deployed, it works > fine. If I start JBoss with everything, It does not work. I have depends > attribute on ALL my components: > > relevant stack trace: > > > 2003-09-25 16:51:00,655 INFO [org.jboss.deployment.MainDeployer] Starting > deployment of package: > file:/var/jboss-3.2.1-kpointserver/server/default/deploy/kpserv > er/kpserver-service.xml > 2003-09-25 16:51:00,663 WARN [org.jboss.system.ServiceConfigurator] Failed > to complete install > java.lang.ClassNotFoundException: No ClassLoaders found for: > com.kiala.kialapointserver.b2b.inbound.xmlqueuer.ConnectorService > at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:161) > at > org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:1 > 75) > at java.lang.ClassLoader.loadClass(ClassLoader.java:255) > at > org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:822) > at > org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:294) > at > org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:321) > at org.jboss.system.ServiceCreator.install(ServiceCreator.java:85) > at > org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java > :155) > at > org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118) > at > org.jboss.system.ServiceController.install(ServiceController.java:225) > at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. > java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatc > her.java:284) > at > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) > at $Proxy5.install(Unknown Source) > at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183) > at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) > > And at the end: > > > 2003-09-25 16:51:16,889 ERROR > [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception > in MBean operation 'checkIncompleteDeployments()' > Cause: Incomplete Deployment listing: > Packages waiting for a deployer: > <none> > Incompletely deployed packages: > [EMAIL PROTECTED] { > url=file:/var/jboss-3.2.1-kpointserver/server/default/deploy/kpserver/kpserve > r-service.xml } > deployer: [EMAIL PROTECTED] > status: Deployment FAILED reason: create operation failed for package > file:/var/jboss-3.2.1-kpointserver/server/default/deploy/kpserver/kpserver-se > rvice.xml; - nested throwable: (javax.management.InstanceNotFoundException: > kiala.b2b:service=Connector is not registered.) > state: FAILED > watch: > file:/var/jboss-3.2.1-kpointserver/server/default/deploy/kpserver/kpserver-se > rvice.xml > lastDeployed: 1064501460660 > lastModified: 1064501460000 > mbeans: > kiala.b2b:service=Connector (state not available) > kiala.b2b:service=Translator (state not available) > kiala.mq:service=JmsUtil (state not available) > kiala:service=ScannerSession (state not available) > ]MBeans waiting for classes: > <none> > MBeans waiting for other MBeans: > [ObjectName: kiala.b2b:service=Connector > state: NOTYETINSTALLED > I Depend On: > Depends On Me: kiala.scheduling:service=Connector > , ObjectName: kiala.b2b:service=Translator > state: NOTYETINSTALLED > I Depend On: > Depends On Me: kiala.scheduling:service=Translator > , ObjectName: kiala.mq:service=JmsUtil > state: NOTYETINSTALLED > I Depend On: > Depends On Me: , ObjectName: kiala:service=ScannerSession > state: NOTYETINSTALLED > I Depend On: > Depends On Me: kiala.scheduling:service=ScannerSession > , ObjectName: kiala.scheduling:service=Connector > state: CONFIGURED > I Depend On: kiala.b2b:service=Connector > > Depends On Me: , ObjectName: kiala.scheduling:service=Translator > state: CONFIGURED > I Depend On: kiala.b2b:service=Translator > > Depends On Me: , ObjectName: kiala.scheduling:service=ScannerSession > state: CONFIGURED > I Depend On: kiala:service=ScannerSession > > > How can I specify that the MBean should start once the classes have been > deployed. I have this: > > <mbean > code="com.kiala.kialapointserver.b2b.inbound.xmlqueuer.ConnectorService" > name="kiala.b2b:service=Connector"> > > <depends>jboss.j2ee:service=EjbModule,module=KialaPointServer.jar</depends> > <depends>jboss:service=Naming</depends> > </mbean> > > Regards, > > Stéphane > _______________________________________ > Stéphane Nicoll > Software Engineer > KIALA NV - The last mile company > Avenue Louise/Louisalaan 149/28 (24th floor) > B-1050 Brussels (BELGIUM) > TEL +32 2 535 93 67 > GSM +32 477 77 26 96 > E-mail [EMAIL PROTECTED] > _______________________________________ > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user