Hello, I have trouble setting up a sar file. Please note that I'm not too familiar with these king of deployment file yet.
My sar file contains a META-INF/jboss-service.xml file as well as an scheduler_ejb.jar file. The jboss-service.xml file starts a Quartz scheduler (allowing my applications to schedule jobs). Quartz schedules jobs by calling methods of an EJB session bean included in the scheduler-ejb.jar file. Here is the problem: - when I deploy my sar file once JBoss is started, everything goes smoothly - when I start JBoss with the sar file already included in the deploy directory, JBoss throws an exception. Here is the log I receive short after a "Scheduler" session bean is deployed ("Scheduler" being the EJB session bean included in my scheduler-ejb.jar file) : Deploying SchedulerManager | 2005-07-20 11:40:14,718 DEBUG [org.jboss.ejb.EjbModule] Creating WebClassLoader of class org.jboss.web.WebClassLoader | 2005-07-20 11:40:14,828 WARN [org.jboss.ejb.EjbModule] Could not load the org.jboss.resource.connectionmanager.CachedConnectionInterceptor interceptor for this container | javax.management.InstanceNotFoundException: jboss.jca:service=CachedConnectionManager is not registered. | at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:509) | at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:533) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.<init>(CachedConnectionInterceptor.java:73) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | .../... This error is obviously linked to the deployment of the EJB jar file. The deployement descriptor of this jar file includes a reference to a JDBC datasource. If I remove the jar file from the sar file and deploy it seperately, no more problem (but I do not want that). Can anyone help me with this dependency problem ? I tried to include a dependency statement in my jboss-service.xml file, but it did not work (note that I'm not familiar with dependecies yet): <depends>jboss.jca:service=CachedConnectionManager</depends> Any idea ? Fred View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885679#3885679 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885679 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user