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>

- 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.

Is there a simple way to achieve what I need?


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

Reply via email to