File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mssqlds not bound and throws NameNotFoundException

 
chaitanya kiran pvn
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[I]HAI

i am facing the same problem in Datasource MSSQLDS not bound to the application in the war deployment. in my application ear file is deployed and then it throws exception after war deployment.
and also it throws log4j exception NullPointerException in HastTable check.

hear iam posting my stack trace .please see and tell me what wrong i made in tis application.


 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.casinocasino.xmlserver.agents.BaccaratAgent.<init>


Looks like you are doing a lookup of the datasource from this class. Have you deployed the datasource in the deploy folder of the server using a *-ds.xml? If yes, can you post its contents here? Also, remember that the datasources are by default bound to the java: namespace. So if you have specified MSSQLDS as the jndi-name in the ds.xml file, then your lookup code should be using java:/MSSQLDS

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic