This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes  java:comp is not bound in this Context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " java:comp is not bound in this Context" Watch " java:comp is not bound in this Context" New topic
Author

java:comp is not bound in this Context

vinitha simon
Ranch Hand

Joined: Dec 13, 2007
Posts: 64
Iam getting the following exception

javax.naming.NameNotFoundException: Name java:comp is not bound in this Context

My context.xml is inside META_INF and it looks similar to

<context>

<Resource
name="jms/QueueConnectionFactory"
auth="Container"
type="com.ibm.mq.jms.MQQueueConnectionFactory"
factory="com.ibm.mq.jms.MQQueueConnectionFactoryFactory"
description="JMS Queue Connection Factory"
HOST="10.20.16.178"
PORT="1418"
CHAN="SYSTEM.WMS.SVRCONN"
TRAN="1"
QMGR="WMS01T"

/>

<Resource
name="jms/CarrierSelectionRequest"
auth="Container"
type="com.ibm.mq.jms.MQQueue"
factory="com.ibm.mq.jms.MQQueueFactory"
description="JMS Queue"
QU="QL.10.WMS.OUT.JESIE.CARRIER_SEL_REQ_PERF" />

</context>

and my web.xml have the following

<resource-env-ref>
<resource-env-ref-name>jms/QueueConnectionFactory</resource-env-ref-name>
<resource-env-ref-type>javax.jms.QueueConnectionFactory</resource-env-ref-type>
</resource-env-ref>

Can some one let me know where iam going wrong . I am using tomcat 5.5 .
Samson Kamau Muiruri
Greenhorn

Joined: May 24, 2011
Posts: 1

I havent really read your code because am in a hurry but i thought a quick answer might help you. I was experiencing the same problem while deploying in tomcat 6. The problem was being caused by catalina.jar in the war file.
Try cleaning up the war (remove jars files from the war's lib folder that are present in tomcat's lib folder) they deploy.
Good luck.

Kamau.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java:comp is not bound in this Context