File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error loading derby driver

 
Steve O Murphy
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Running on Windows XP, using tomcat 6.0.1.4]
I have a JSP that includes the use of a data bean, which connects to a derby database. In the bean's constructor is this attempt to load the derby embedded driver:



However, when the page loads, I get the following exception:


I recognize this as a classpath error. The class is in the derby.jar file, and that jar is on my windows class path, as evidenced by my classpath environment variable:



Any ideas why I'm getting this error? Do I have to make some other classpath configuration, such as within Tomcat?

Thanks,
Steve
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat completely ignores the classpath. You need to place the jar file in the web application's WEB-INF/lib folder.
 
Steve O Murphy
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear. That solved my problem.

Say, are you associated with HtmlUnit?

Kind regards,
Steve
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not. Why do you ask.

(Also, please read your private messages.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic