File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI look up code in jar file.

 
Ramu Valivarthi
Ranch Hand
Posts: 37
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we see your error and your code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic