• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error when connection is made for oracle

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic