• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Acessing external JNDI namespace

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone help me with the following problem.

I need to access an external JNDI namespace from my web app. The external JNDI namespace is the embeded JNDI server of openJMS.
The server I am using is Test Server that comes with WSAD 5.1

I am getting error when I try to creat an IntialContext object from a Servlet.

I am using the following properties to create the InitialContext object.
java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory
java.naming.provider.url=iiop://localhost:1099

I get the error:
Cannot instantiate class: org.exolab.jms.jndi.InitialContextFactory

The create of IntialContext factory works when I use a simple java class with a main(). I have set the openJMS library in my class path.

Why is it that I cannot create the InitialContext object.
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to make sure the class or its JAR is in the correct place in your ejb-jar file when you deploy it. This is just a regular ClassNotFound exception, yes?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having the same problem. Moreover, I have found people mentioning this problem, or something very similar, all over the place. If anyone has a solution, I would be grateful. More details here: http://forum.java.sun.com/thread.jspa?threadID=5306103
 
I don't even know how to spell CIA. But this tiny ad does:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic