Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java:comp is not bound in this Context

 
vinitha simon
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic