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 Error in deployment of MDB in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error in deployment of MDB in jboss" Watch "Error in deployment of MDB in jboss" New topic
Author

Error in deployment of MDB in jboss

sanghamitra saikia
Greenhorn

Joined: Sep 30, 2009
Posts: 1
Hi,
I have the following scenario in which I am trying to deploy a MBD in jboss and getting error. I want to deploy two ear files in one Jboss instance. One of the ear has a MDB and the other ear is the main application ear. In the ‘login-config.xml’ file if I use ‘DatabaseServerLoginModule’ then I am able to deploy the ear containing MDB where as my other application ear does not get deployed ,however if I use the ‘DynamicLoginModule’ my application ear gets deployed but MDB ear does not get deployed and I get the following error.

2009-09-30 14:39:18,516 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
2009-09-30 14:39:18,516 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
javax.naming.NameNotFoundException: XAConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:182)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1419)
at java.lang.Thread.run(Thread.java:595)
2009-09-30 14:39:18,516 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnect failed: JMS provider failure detected for TFACTSBean
javax.naming.NameNotFoundException: XAConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:182)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1419)
at java.lang.Thread.run(Thread.java:595)
2009-09-30 14:39:18,516 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] innerStop
2009-09-30 14:39:18,516 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroying DLQHandler
2009-09-30 14:39:18,516 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroyed DLQHandler
2009-09-30 14:39:18,516 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10000ms for TFACTSBean
2009-09-30 14:39:28,516 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider for TFACTSBean
2009-09-30 14:39:28,516 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
2009-09-30 14:39:28,516 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
2009-09-30 14:39:28,516 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@d91987
2009-09-30 14:39:28,516 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
2009-09-30 14:39:28,516 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler

login-config.xml entries: I am using DynamicLoginModule for deploying both of the ear files.

<!-- Security domain for JBossMQ when using file-state-service.xml -->
<application-policy name = "jbossmq">
<authentication>
<login-module code = "org.jboss.mq.sm.file.DynamicLoginModule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "sm.objectname">jboss.mq:service=StateManager</module-option>
</login-module>
</authentication>
</application-policy>

<!-- Security domain for JBossMQ
<application-policy name = "jbossmq">
<authentication>
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "dsJndiName">java:/HSQLDS</module-option>
<module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
<module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
</login-module>
</authentication>
</application-policy> -->


Please suggest solution to solve this exception.
Thanks a lot!
 
wood burning stoves
 
subject: Error in deployment of MDB in jboss