[jboss-user] [EJB 3.0] - Re: Can't get a stateless session bean to work - JNDI can't
Azavia
do-not-reply at jboss.com
Sat Nov 18 01:35:11 EST 2006
Hi,
It started working. Had to remove the reference to the EJB jar from the war file.
I still don't know why I had the original problem with the remote interface not being bound. But it works now.
But I'm having a slight other problem related to this.
I tried creating a message bean. It wasn't very clear to me whether you can just name a queue within the @MessageDriven annotation, or if you have to specify it in XML somewhere?
Also,when I run the application, I get the following:
01:29:21,093 INFO [TomcatDeployer] deploy, ctxPath=/CalculatorWeb, warUrl=.../tmp/deploy/tmp65603CalculatorWeb-exp.war/
| 01:29:21,234 INFO [EARDeployer] Init J2EE application: file:/C:/jboss/server/all/deploy/CalculatorApplication.ear
| 01:29:21,640 INFO [Ejb3Deployment] EJB3 deployment time took: 250
| 01:29:21,687 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=golf' to JNDI name 'java:golf'
| 01:29:21,687 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=CalculatorApplication.ear,jar=CalculatorEJB.jar,unitName=ejb3-project with dependencies:
| 01:29:21,687 INFO [JmxKernelAbstraction] jboss.jca:name=ejb3ProjectDS,service=DataSourceBinding
| 01:29:21,718 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=CalculatorApplication.ear,jar=CalculatorEJB.jar,name=CalculatorBean,service=EJB3 with dependencies:
| 01:29:21,875 INFO [EJBContainer] STARTED EJB: com.azavia.calculator.ejb.CalculatorBean ejbName: CalculatorBean
| 01:29:21,937 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=CalculatorApplication.ear,jar=CalculatorEJB.jar,name=Hello,service=EJB3 with dependencies:
| 01:29:21,937 INFO [EJBContainer] STARTED EJB: com.azavia.calculator.ejb.Hello ejbName: Hello
| 01:29:21,968 WARN [MessagingContainer] Could not find the queue destination-jndi-name=queue/azavia/testmdb
| 01:29:21,968 WARN [MessagingContainer] destination not found: queue/azavia/testmdb reason: javax.naming.NameNotFoundException: queue/azavia/testmdb
| 01:29:21,968 WARN [MessagingContainer] creating a new temporary destination: queue/azavia/testmdb
| 01:29:21,984 INFO [azavia/testmdb] Bound to JNDI name: queue/azavia/testmdb
| 01:29:22,015 INFO [EJB3Deployer] Deployed: file:/C:/jboss/server/all/tmp/deploy/tmp65604CalculatorApplication.ear-contents/CalculatorEJB.jar
| 01:29:22,015 INFO [TomcatDeployer] deploy, ctxPath=/calculator, warUrl=.../tmp/deploy/tmp65604CalculatorApplication.ear-contents/CalculatorWeb-exp.war/
| 01:29:22,234 INFO [EARDeployer] Started J2EE application: file:/C:/jboss/server/all/deploy/CalculatorApplication.ear
| 01:29:22,234 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=CalculatorApplication.ear,jar=CalculatorEJB.jar,unitName=ejb3-project
| State: NOTYETINSTALLED
| I Depend On:
| jboss.jca:name=ejb3ProjectDS,service=DataSourceBinding
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.jca:name=ejb3ProjectDS,service=DataSourceBinding
| State: NOTYETINSTALLED
| Depends On Me:
| persistence.units:ear=CalculatorApplication.ear,jar=CalculatorEJB.jar,unitName=ejb3-project
It runs, but I get the above warnings. I'm not exactly sure why.
I really appreciate the replies and help people have given here.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987042#3987042
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987042
More information about the jboss-user
mailing list