Hello Larry,

Wednesday, September 26, 2001, 5:30:21 PM, you wrote:

LI> Starting Tomcat as a service relies on the wrapper.properties
LI> file for how to start the JVM.  Running Tomcat 3.3 as an
LI> application usually relies on tomcat.bat.  Differences between
LI> them can lead to different results.  Double check your
LI> wrapper.properties to make sure it is starting the JVM
LI> with the appropriate command line.

LI> If you can't find the problem, please supply more information
LI> about how Tomcat is configured and what exactly is going wrong.

LI> Cheers,
LI> Larry


>> -----Original Message-----
>> From: Marciu Liviu [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, September 26, 2001 10:12 AM
>> To: [EMAIL PROTECTED]
>> Subject: tc-3.3-m4 as Win2K service and ODBC
>> 
>> 
>> Hello,
>>    I've made an application on TC-3.3-m4(Win2K Server) that 
>> logs to a remote MSSQL
>>    server (Win2K Profesional) throw ODBC, and runs fine when 
>> TC works as an application.
>> 
>>    But, when I start TC as a service the aplication failes to log to
>>    the ODBC. It seams that this service doesn't hava access to ODBC.
>>    Or ... ?
>> 
>>    Any ideeas ?
>> 
>>    Thanks !
>>    --
>> Best regards,
>>  Liviu                          mailto:[EMAIL PROTECTED]
>> 
>> 

I already modified the wrapper.properties file. I'we changed only the
wrapper.tomcat_home and wrapper.java_home.

I didn't go to advanced mode.

TC starts ok but when the first servlet tries to connect to the ODBC,
that connection fails.
In that servlet I have the following code:
-----------------------Servlet code-----------------------
System.out.println("before odbc connection");
conn = DriverManager.getConnection("jdbc:odbc:CheckDSN");
System.out.println(" after odbc connection");
-----------------------enf servlet code--------------------

in jvm.stdout it prints me the first message "before the odbc
connection" and then goes at the catch statement.

I use the same ODBC settings as for the application.

I'we also tried with Logon as: LocalSystem with or without interaction
with desktop and as Administrator.


-- 
Best regards,
 Marciu                            mailto:[EMAIL PROTECTED]


Reply via email to