This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI look up code in jar file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI look up code in jar file." Watch "JNDI look up code in jar file." New topic
Author

JNDI look up code in jar file.

Ramu Valivarthi
Ranch Hand

Joined: Apr 24, 2007
Posts: 37

Hi I have DAO class which contains JNDI look up code.I making a jar with that class for performing some dataBase operations and deployed in JBoss.
Iam getting the error like javax.naming.NoInitialContextException: Need to specify class name in environment .
I have quick question , Shall we have JNDI look up code in jar file? Can some one please help me?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can we see your error and your code?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: JNDI look up code in jar file.
 
Similar Threads
ClassNotFoundException for org.jnp.interfaces.NamingContextFactory
question about ejb-ref and jndi .. HELP!!
Question about RMI
PlZZZZZZ How to call external ejb jar in J2EE Project
Using DI in Client