hi ,
I have succefully set up tomcat as an
windows NT service .
But i am facing some problems,the probem
is : I am not able to get database connection
when i start tomcat as a service .I am using
windows 2000 professional.
The sql error that i get is
Data source name not found and no default driver
specified .
When is start it manually ie, with starup command
from dos prompt , every thing works fine .
kindly reply me back at your earliest .
Thanks,
Subroto Dutta,
Global E-Softsys India pvt.ltd .
Discussions
Web tier: servlets, JSP, Web frameworks: Sql exception while starting tomcat as windows NT service-urgent
-
Sql exception while starting tomcat as windows NT service-urgent (5 messages)
- Posted by: Nanda Kumar
- Posted on: August 21 2001 08:30 EDT
Threaded Messages (5)
- Sql exception while starting tomcat as windows NT service-urgent by Praveen Balakrishnan on August 22 2001 19:51 EDT
- Sql exception while starting tomcat as windows NT service-urgent by Nanda Kumar on August 23 2001 04:50 EDT
- Sql exception while starting tomcat as windows NT service-urgent by Race Condition on August 23 2001 11:22 EDT
- Sql exception while starting tomcat as windows NT service-urgent by Praveen Balakrishnan on August 23 2001 03:37 EDT
- Sql exception while starting tomcat as windows NT service-urgent by Nanda Kumar on August 23 2001 04:50 EDT
- Sql exception while starting tomcat as windows NT service-urgent by Praveen Balakrishnan on August 22 2001 19:52 EDT
-
Sql exception while starting tomcat as windows NT service-urgent[ Go to top ]
- Posted by: Praveen Balakrishnan
- Posted on: August 22 2001 19:51 EDT
- in response to Nanda Kumar
Check your classpath. probably is your jdbc driver jarfile, which is in the batch file you execute in the "dos prompt" is missing from the system classpath or the classpath which the NT Service is missing..
-
Sql exception while starting tomcat as windows NT service-urgent[ Go to top ]
- Posted by: Nanda Kumar
- Posted on: August 23 2001 04:50 EDT
- in response to Praveen Balakrishnan
Can you please elaborate .
My classpath is perfect.
From command prompt i start tomcat as follows :
d:\tomcat\bin:>startup
Everthing works fine and i dont get any connection error
in this way .
Problem starts when i go to NT service page and start
tomcat as service .I get the error .
Pls give your suggestions.
thanks -
Sql exception while starting tomcat as windows NT service-urgent[ Go to top ]
- Posted by: Race Condition
- Posted on: August 23 2001 11:22 EDT
- in response to Nanda Kumar
Don't run it as a service. -
Sql exception while starting tomcat as windows NT service-urgent[ Go to top ]
- Posted by: Praveen Balakrishnan
- Posted on: August 23 2001 15:37 EDT
- in response to Nanda Kumar
if you are typing "startup" from tomcat.. you are executing a batch file startup.bat or startup.cmd. see what is the classpath you are setting in that..
you may have something like..
SET CLASSPATH=C:\Oracle8.x\jdbc\classes12.zip
and that is why you are able to get it running from the prompt. And that setting is not available for your NT Service. Anyway, for development and testing, it is better you are not running it as NT Service. you may need to restart your tomcat too often, and also may be helpful if you are able to see the output on standard out (console). -
Sql exception while starting tomcat as windows NT service-urgent[ Go to top ]
- Posted by: Praveen Balakrishnan
- Posted on: August 22 2001 19:52 EDT
- in response to Nanda Kumar
Check your classpath. probably it is becoz your jdbc driver jarfile, which is in the batch file ( you execute in the "dos prompt"), is missing from the system classpath or the classpath which the NT Service is using..