You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by joe udder <a2...@hotmail.com> on 2003/01/26 11:25:56 UTC

find out why the loading of the driver fails

Hello.

Does anyone have any good hints on how to tweak tomcat to output more 
information about errors?

When I am trying to load a JDBC-driver it fails, but it doesn't give me a 
clue on why it fails.


I checked the web for similar errors, so I started by adding the .JAR-file 
to the classpath, and put a copy of it in "WEB-INF/lib".
I also doublechecked that the dbengine is up and running, and that the 
user/password/ip is OK.

Finally I set the "debug"-attribute in the Server-tag to "1", but it didn't 
give me any more information. :-/


The error I got is:
---
org.apache.jasper.JasperException:
SQLException: Cannot load JDBC driver class 'org.postgresql.Driver'
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
---


Any ideas are welcome.

TIA

// ju



_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: find out why the loading of the driver fails

Posted by p niemandt <ma...@acesurfer.co.za>.
1. I would put the db driver jar under $TOMCAT/common/lib
This directory is shared by all your web applications: any libraries
under this directory should be visible to your app.

2. Set your debug to 100: There are a few places you can / should do
this (for developing / debugging): Basically, any place you see a debug
parameter / attribute: Make it 100: You should get a lot of debugging
information, including which jar files have been picked up and deployed.

hth


On Sun, 2003-01-26 at 10:25, joe udder wrote:
> Hello.
> 
> Does anyone have any good hints on how to tweak tomcat to output more 
> information about errors?
> 
> When I am trying to load a JDBC-driver it fails, but it doesn't give me a 
> clue on why it fails.
> 
> 
> I checked the web for similar errors, so I started by adding the .JAR-file 
> to the classpath, and put a copy of it in "WEB-INF/lib".
> I also doublechecked that the dbengine is up and running, and that the 
> user/password/ip is OK.
> 
> Finally I set the "debug"-attribute in the Server-tag to "1", but it didn't 
> give me any more information. :-/
> 
> 
> The error I got is:
> ---
> org.apache.jasper.JasperException:
> SQLException: Cannot load JDBC driver class 'org.postgresql.Driver'
> at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> ...
> ---
> 
> 
> Any ideas are welcome.
> 
> TIA
> 
> // ju
> 
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
p niemandt <ma...@acesurfer.co.za>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>