Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI Connection with Oracle (Problem with NullPointerException)  RSS feed

 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!