File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Error loading derby driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Error loading derby driver" Watch "Error loading derby driver" New topic
Author

Error loading derby driver

Steve O Murphy
Greenhorn

Joined: Nov 29, 2010
Posts: 7
[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

Joined: Jan 10, 2002
Posts: 61010
    
  65

Tomcat completely ignores the classpath. You need to place the jar file in the web application's WEB-INF/lib folder.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve O Murphy
Greenhorn

Joined: Nov 29, 2010
Posts: 7
Thanks Bear. That solved my problem.

Say, are you associated with HtmlUnit?

Kind regards,
Steve
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

I am not. Why do you ask.

(Also, please read your private messages.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error loading derby driver