David Jencks wrote: > On 2002.07.08 18:33:36 -0400 Jules Gosnell wrote: > >>I would like the Jetty service to have the use of some EJBs. >>I would like to package the ejb-jar in the jetty-plugin/jbossweb.sar >>I tried making the Jetty Service depend thus : >> >><!-- We need the DefaultDS DataSource connection for entity beans --> >><depends>jboss:service=ConnectionFactoryLoader,name=DefaultDS</depends> > > > Nothing has been named ConnectionFactoryLoader for months... check for the > actual mbean ObjectName on port 8082
Aha - I did a grep through the source tree and found this somewhere... > >>- no joy. >> >> >>23:24:54,683 INFO [MainDeployer] Starting deployment of package: >>file:/home/jules/cvs/JBoss/Branch_3_0/build/output/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/ >>23:24:55,946 INFO [EjbModule] Creating >>23:24:56,036 INFO [EjbModule] Deploying CMPState >>23:24:56,703 INFO [EjbModule] Created >>23:24:58,192 INFO [JBossWeb] Registered jboss.web:Jetty=0 >>23:24:58,232 INFO [JBossWeb] Registered jboss.web:Code=0 >>23:24:58,409 INFO [JBossWeb] Registered jboss.web:Log=0 >>23:24:58,442 INFO [JBossWeb] Registered jboss.web:Log=0,sink=0 >>23:24:58,471 INFO [EjbModule] Starting >>23:24:59,168 WARN [ServiceController] Problem starting service >>jboss.j2ee:service=EJB,jndiName=jetty/CMPState >>org.jboss.deployment.DeploymentException: Error: can't find data source: >>java:/DefaultDS; - nested throwable: >>(javax.naming.NameNotFoundException: DefaultDS not bound) >> at >>org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEntityBridge.java:99) >> at >>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397) >> at >>org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339) >>................................ >>23:32:26,842 INFO [EjbModule] Started >>23:32:26,859 INFO [JettyService] Starting >>23:32:26,883 INFO [MainDeployer] Adding deployer: >>org.jboss.jetty.JettyService@3ac93e >>23:32:26,906 INFO [JBossWeb] Starting Jetty/4.0.4 >>23:32:26,933 INFO [JBossWeb] Started >>org.mortbay.http.NCSARequestLog@7b0998 >>23:32:26,975 INFO [JBossWeb] Started SocketListener on 0.0.0.0:8080 >>23:32:26,996 INFO [JBossWeb] Started org.jboss.jetty.Jetty@b0bdc8 >>23:32:27,009 INFO [JettyService] Started >>23:32:27,023 INFO [MainDeployer] Deployed package: >>file:/home/jules/cvs/JBoss/Branch_3_0/build/output/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/ >> >> >>It looks like JBoss deploys the ejb-jar from inside the sar, then >>deploys the service, then tries to start the ejbs - BANG ! >> >>Isn't the dependency of an ejb-jar on a datasource implicit. > > > Unfortunately not yet. I'm not quite sure the best way to do this anyway. > >>Is there a simple way to achieve what I need? > > > Put the db-service.xml and ejb.jar in an ear with a jboss-app.xml for the > db-service.xml. Put the .ear in the .sar. > > If you want the db-service.xml outside your package, you need to add a > depends element to jboss.xml for each bean or container config to the > ConnectionManager mbean from the db-service.xml. > > david jencks > OK - I'll try that tomorrow. Thanks for all the help, David - it's much appreciated. Jules > >> >>Thanks, >> >> >>Jules >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Oh, it's good to be a geek. >>http://thinkgeek.com/sf >>_______________________________________________ >>Jboss-development mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-development >> >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Oh, it's good to be a geek. > http://thinkgeek.com/sf > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Oh, it's good to be a geek. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development