aspose file tools*
The moose likes JBoss/WildFly and the fly likes javax.naming.NameNotFoundException: DefaultJMSProvider not bound Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "javax.naming.NameNotFoundException: DefaultJMSProvider not bound" Watch "javax.naming.NameNotFoundException: DefaultJMSProvider not bound" New topic
Author

javax.naming.NameNotFoundException: DefaultJMSProvider not bound

ankam shyamsundar
Greenhorn

Joined: Jan 28, 2012
Posts: 15
Hi Folks,

I am getting below exception in JBoss4.2 eap clustered environment.

any idea?

2012-06-27 11:37:40,966 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnect failed: JMS provider failure detected for errorMDB
javax.naming.NameNotFoundException: DefaultJMSProvider 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:258)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:450)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.getJMSProviderAdapter(JMSContainerInvoker.java:1203)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:656)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1593)
at java.lang.Thread.run(Thread.java:735)
2012-06-27 11:37:40,966
Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Some problem in the configuration file where you define queues, probably in connectionFactory.


Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
ankam shyamsundar
Greenhorn

Joined: Jan 28, 2012
Posts: 15
Hi Anirudh,

Thanks for your reply,I have configured it in 2 servers which is in clustered mode ,First node is getting this exception second one is working properly.
I have configured the Queues and connection factories in 2 servers with the same mode,and i have compared the both servers but i dint find any changes in configuration files.
Could you please let me know where i need to search exactly.
Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Not sure but I think I faced a similar issue some days back.
Found this blog which explains NameNotBoundException.
and this thread at jboss forum has responses from Jaikiran Pai, an expert. Maybe it'll help you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javax.naming.NameNotFoundException: DefaultJMSProvider not bound