This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JNDI Connection with Oracle (Problem with NullPointerException) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI Connection with Oracle (Problem with NullPointerException)" Watch "JNDI Connection with Oracle (Problem with NullPointerException)" New topic
Author

JNDI Connection with Oracle (Problem with NullPointerException)

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 234
Hi,

I am trying to use INDI connection pooling. I have used the configuration as described in
http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html.

But still I am getting NullPointerException due to null of DataSource.

Can anyone tell me the reason.
my server.xml code:-



WEB.XML :-

<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/cesco</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

ACTION CLASS/jsp:-




Thanks in advance.

Kousik


Thanks in Advance,
Kousik
 
Have you checked out Aspose?
 
subject: JNDI Connection with Oracle (Problem with NullPointerException)
 
It's not a secret anymore!