Problem With Tomcat and NT service
Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
Not AFAIK. Chris -Original Message- From: hui [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 9:15 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
Hi, You can change the base directory by changing the location from which you start the server, on some operating systems. On others, this doesn't matter. Which is of course the problem with relying on a concept like base directory, or current working directory, as part of your design. It's poor design that lacks in portability: change it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: hui [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 9:15 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem With Tomcat and NT service
http://www.tburke.net/info/reskittools/topics/srvany_using.htm See the paragraph about setting the working directory... Charlie -Original Message- From: hui [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 9:15 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service Hi In this case, can we change the base directory? Regards, hui -Original Message- From: Hubble, Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:28 AM To: 'Tomcat Users List' Subject: RE: Problem With Tomcat and NT service That's because when Tomcat is run as a service, it's base directory becomes System32 instead of whatever dir you run the startup bat file in. Chris -Original Message- From: Raphael THIOLIERE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:40 AM To: Tomcat Users List Subject: Problem With Tomcat and NT service Hello, I use Tomcat like a server of webservices. When I run Tomcat with the script startup.bat, my application works fine. But when I want to launch Tomcat with the NT service (created by the install) it doesn't work : I have to copy a fichier in the directory system32. This fichier is use by my application, it contains the informations for the connection at the SGBD. My version of tomcat is 4.1. Idea ? If I use tomcat 3.3 ,I modify the fichier wrapper.properties and It works. Raphaël. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem with Tomcat as NT service
hiya, try to put your jdbc driver's zip/jar file in your workers.properties file. this must look something like this... worker.inprocess.class_path=my-jdbc-driver.jar i'm not sure whether you have to modify the worker.properties or the wrapper.properties file. so you also might try the following in your wrapper.properties file... wrapper.class_path=my-jdbc-driver.jar regards daniel haischt -- -Ursprüngliche Nachricht- Von: Vinod [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 3. Januar 2001 12:47 An: [EMAIL PROTECTED] Betreff: Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat as NT service
Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Problem with Tomcat as NT service
Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod
RE: Problem with Tomcat as NT service
Hi, Just try this. The message is because of the classpath. In windows NT, the environment variables are set separately for each user. Just go to control-panel, system and environment. There are two lists, just add the classpath to the top one. I had a big problem with this and discovered it by chance! regards Nagaraj. -Original Message-From: Vinod [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 03, 2001 12:54 PMTo: '[EMAIL PROTECTED]'Subject: Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod
Re: Problem with Tomcat as NT service
I never tried to run tomcat as a service, but the same thing happened to me before. So I hope the following will help: I had a servlet class which also has a main() function for dos-console testing. I found that I have to use different jdbc driver to open the same Access datasource. The reason, as I later found out, you have to setup the classpath correctly in both cases so that tomcat can find the proper driver. I suspect this could be the reason of your problem. As I understand, the environment variables can be seen by a service can be different from those by a regular windows program. The reason behind that involves more of the Windows OS system knowledge. But I suggest you try to print out the necessary class path or other related environment variables in both cases. Hope it helps. Ma, Yanbin |+--- || Vinod| || Vinod@essemm| || .co.in | || | || 01/03/01 | || 06:47 AM | || Please | || respond to | || tomcat-user | || | |+--- ---| | | | To: | | cc: (bcc: Yanbin Ma/SYS/NYTIMES)| | Subject: Problem with Tomcat as NT service | ---| Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with Tomcat as NT service
Does your wrapper.properties include the jar or zip file of your JDBC driver? Betty - Original Message - From: Vinod [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 3:47 AM Subject: Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem with Tomcat as NT service
You need to specify the classpath to the JDBC driver in the wrapper.properties file. Just putting the jar in the tomcat/lib directory is not enough. Starting tomcat manually doesn't require this, as the batch file adds all the jars in the lib directory to the classpath. Happy New Year --- Aaron Knauf Implementation Consultant Genie Systems Ltd Auckland, New Zealand Ph. +64-9-573 3310 x812, email: [EMAIL PROTECTED] http://www.geniesystems.com Vinod [EMAIL PROTECTED] 04/01/2001 00:47 Please respond to tomcat-user To: cc: Subject:Problem with Tomcat as NT service Hi, I have jakarta-tomcat-3.2 running on Win NT4 and IIS. I have used jk_nt_service.exe to make tomcat as NT service and followed the steps as it is in the documentation. After that I have started the service, when I run a small jdbc example I got the sql exception 'No suitable jdbc driver found'. The same program runs fine when I start tomcat manually. Please provide solution. Thanx n Regards, Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]