File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Queue creation problem with deploying ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Queue creation problem with deploying ear " Watch "Queue creation problem with deploying ear " New topic
Author

Queue creation problem with deploying ear

Ram Venkat
Greenhorn

Joined: Nov 28, 2007
Posts: 29
Hi,

Today I Tried one MDB example with following entries.

MDB:
step 1 :
@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName="destinationName",propertyValue="myMDBQueue") ,
@ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue")
},
mappedName="myMDBQueue"
)

step 2:
@Resource(name="jms/QueueConnectionFactory")
private ConnectionFactory connectionFactory;

@Resource(name="jms/myMDBQueue",mappedName="myMDBQueue")
private Destination saveQueue;



while deploying i am getting following error on admin console (using glassfish)

Deployment has succeeded with following warning, please look at the log file for details

Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy. WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: Error while loading application [Ejb3InAction]. Please refer to the server log for more details. com.sun.enterprise.deployment.backend.IASDeploymentException: Error while loading application [Ejb3InAction]. Please refer to the server log for more details.



following error found from log file of my server.


[#|2008-03-27T20:32:52.125+0530|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMSRA Started IRECT|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=10;_ThreadName=main;MyMDB;com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|MDB00017: [MyMDB]: Exception in creating message-driven bean container: [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue]|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=10;_ThreadName=main;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|com.sun.enterprise.connectors.ConnectorRuntimeException
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1546)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1380)
at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:524)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:225)
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:217)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|EJB5090: Exception in creating EJB container [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue]|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|appId=Ejb3InAction moduleName=MyClass_jar ejbName=MyMDB|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|LDR5004: UnExpected error occured while creating ejb container
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1546)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1380)
at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanCo


Ram Venkat<br />----------<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 5 (In Process..)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Queue creation problem with deploying ear
 
Similar Threads
Any one configured the worflowPortlet.war file for using SAW
MDB on glassfish without mappedBy
MBD DI Query In EJB3.0
Cannot initialize endpoint : error is : Java heap space|#] and server won't start
MDB problem in Sun one