• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

DataSource is Null in JNDI Connection with Tomcat

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting NullPointerException due to null value of DataSource when trying to connect through JNDI in Tomcat 5.5
I have checked all the values of parameters in server.xml.

can somebody tell me the reasons why this is coming?





server.xml:


Thanks in Advance,

Kousik
 
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Place the jar file containing Oracle database implementation classes under
<TOMCAT_HOME>\common\lib rather than WEB-INF\lib directory specific to the project.

Also I found the installer version of (that ends with .exe) Tomcat 5.5.17 to have some strange problems. Try the .zip version which will avoid those.
 
If you're gonna buy things, buy this thing and I get a fat kickback:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic