Re: find out why the loading of the driver fails

2003-01-27 Thread joe udder
Thanks for your suggestions.

Amazingly enough it seem to work if I put the driver where you suggested.
I got another error, but that seem to be Postgresql-related.


I suppose the reason why it is not loaded from the WEB-INF/lib-directory is 
because the driver is defined in server.xml as a resource, and that the 
container and webapp is somehow seperated.

And I might have screwed up the CLASSPATH when starting tomcat, so it can't 
find the driver frm there either.

back to the drawingboard.


thanks.
//ju

---  p niemandt wrote:

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





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


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



find out why the loading of the driver fails

2003-01-26 Thread joe udder
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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: find out why the loading of the driver fails

2003-01-26 Thread p niemandt
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:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]