• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java:comp is not bound in this Context

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Greenhorn
Posts: 1
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic