Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI lookup problem  RSS feed

 
Marco Braun
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am just new in the jee area may you can help me with my proplem.

I have a small jee project for learning and have jndi lookup problems. i dont know whats wrong

here's my code.



web.xml


thats my output

javax.naming.NamingException: Lookup failed for 'java:comp/env/jms/QCF' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Lookup failed for 'jms/QCF' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming, com.sun.enterprise.naming.logicalName=java:comp/env/jms/QCF} [Root exception is javax.naming.NameNotFoundException: jms]]

hope some can help me
 
Pallavi Joshi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are using glassfish, correct me if I am wrong.

Your error is "Lookup failed for 'java:comp/env/jms/QCF'". Here it may be you created a topic but it is very likely not available under the JNDI name jms/TESTQUEUE

To browse the JDNI tree to find your topic, use the following command:



Regards,
Pallavi
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!