• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error when connection is made for oracle

 
Ranganath .S.Junpal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error.. plz let me know what might be the cause.. when i run my database java code with another code it works fine.. But whne i run from the webserver.. it gives this error

chstmtoracle.jdbc.driver.OracleStatement@1e1ec86
java.lang.NullPointerException

I am using classes12.zip as a driver for oracle8i and eclipse3.0 IDE with Tomcat 4.1 Webserver.

please let me know what might be a reason

Thank you
Ranganath.S
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to do two things.

One, change the extension in classes12.zip from ".zip" to ".jar".
Two, put it where your application can see it.

If you're using container managed connection pooling, you'll need to put it in tomcat/common/lib so the conatiner has access to it.
Otherwise put it under your apps WEB-INF/lib directory.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!