This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes javax.naming.NameNotFoundException: XAConnectionFactory not bound 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 » Products » JBoss/WildFly
Bookmark "javax.naming.NameNotFoundException: XAConnectionFactory not bound" Watch "javax.naming.NameNotFoundException: XAConnectionFactory not bound" New topic
Author

javax.naming.NameNotFoundException: XAConnectionFactory not bound

Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
While deploying MDB's I get following exception..



I have done all the necessary changes to the files..
\server\default\deploy\jms\jms-ds.xml
I am using jboss4.2.2.GA and at loss at what would be happening.
When I see the JNDI tree for the server it has only these lines in the global JNDI namespace


Kaustubh. Mumbai, India.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

This is a DEBUG message, and can be safely ignored. Or are you experiencing some kind of problem when using your MDB?

Also, did you install JBoss Messaging or are you using JBossMQ (which comes with JBoss AS 4.2.x)?


JBoss In Action
Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
Peter, Thanks for the reply.
I am using jboss MQ. I do have problems with my MDBs I guess because of the jndi lookup not happening.Here is the trace



Also in the startup of server I get this error


I guess there are some tables not present that the MQ service is trying to access. I guess I might have to configure them in the jbossmq-service.xml but not sure and also not sure how.
I am quite new to jboss
Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
I managed to resolve the second exception where it was not able to create the tables. I am using the default datasource that jBoss uses for MQ and not my application datasource. I guess it uses this datasource for persistance of the MQ which would be the HS.


But I am still stuck at why am I getting the XAConnectionFactory not bound exception.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9912
    
158

I have done all the necessary changes to the files..
\server\default\deploy\jms\jms-ds.xml


What changes did you do? Can you post those?

[My Blog] [JavaRanch Journal]
Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
My jms-ds.xml looks like this

vishnu cypress
Greenhorn

Joined: Mar 26, 2009
Posts: 8
I am also facing the same problem , some body please help --

Thanks
Vishnu
vishnu cypress
Greenhorn

Joined: Mar 26, 2009
Posts: 8
i got rid of XAConnectionFactory not bound , There was hsqldb-ds.xml in the deploy folder , i had remove it

Now i get a different error


Checking this now

Thanks
Vishnu

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.naming.NameNotFoundException: XAConnectionFactory not bound
 
Similar Threads
Problem with DataSource
DeploymentException while deploying ear file in JBoss
getting null pointer exception
JPA @NamedNativeQuery and scalar results
Deployment Failed in Jboss 4.2.2GA.