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

mssqlds not bound and throws NameNotFoundException

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic