aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI Connection with Oracle (Problem with NullPointerException)