You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jan Andersson <Ja...@se.ibm.com> on 2005/10/24 13:58:33 UTC

Running Tomcat 5.0 as a Windows service using a specific user

Hi!

I've written an application that accesses files on other computers on the 
network. Thus, the user running Tomcat has to have permissions to access 
these other computers.

So, when running Tomcat as a Windows service, I use a user with permission 
to log on. To set the user, I'm using the configuration tool (usually) 
found at Start->Programs->Apache Tomcat 5.0->Configure Tomcat. In this 
tool, I set the user to be me (i.e. the user logged on to Windows), and 
then push the Start button to start Tomcat. But when I look in Task 
Manager, I see that the user running the tomcat5.exe process isn't me but 
"SYSTEM". Which means my web application fails to get access to other 
computers on the network. At least I believe that is the case, because if 
I start Tomcat manually (either through startup.bat or tomcat5.exe), my 
web application do have access to other computers to which I have access 
(and in Task Manager I see that the user running
tomcat5.exe is me, not "SYSTEM").

Any ideas what's wrong and how to fix? Don't know much about these things 
so any help appreciated! And yes, I've googled, to no avail.

Using XP and Tomcat 5.0.

Best regards,

Jan Andersson
Senior Software Engineering Specialist
IBM Rational Brand Services
+46 (0)70-793 23 02
Oddegatan 5
164 92 Stockholm

RE: SSL Handshake Error!

Posted by Neal Cabage <ne...@enlogica.com>.
Aaah!  Thanks Mark. We'll give it a shot.
 
Neal
 


Mark Thomas <ma...@apache.org> wrote:
Sounds like you are on the right path. The Equifax certificate must be installed
in the trust store, not your key store. Where this is depends on whether you are
using a JDK or a JRE but as an example, on my laptop the path is
D:\jdk1.5.0_05\jre\lib\security\cacerts

Mark 

> -----Original Message-----
> From: Neal Cabage [mailto:neal.cabage@enlogica.com] 
> Sent: Tuesday, October 25, 2005 8:00 PM
> To: Tomcat Users List
> Subject: SSL Handshake Error!
> 
> 
> Help!!!
> 
> I use a secure (https) XML feed and it appears the provider 
> recently switched SSL certificate providers and is now using 
> an Equifax certificate. Since that switch occured,
> my code is now throwing the following exceptions:
> 
> 
> 
> javax.net.ssl.SSLHandshakeException: 
> java.security.cert.CertificateException: Could not find 
> trusted certificate 
> 
> 
> 
> Per the research I have done, I believe this must mean that 
> the root certificate from Equifax must be installed in my 
> local Keystore, in order to trust and decipher this 
> certificate. But attempts so far 
> 
> 
> to import this into the keystore and obtain successful 
> connection again have all failed. 
> 
> Does anyone know what is going on? Am I on the right path? 
> Does anyone know what I am doing wrong? 
> 
> 
> 
> Thanks.
> 
> Neal
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



RE: SSL Handshake Error!

Posted by enLogica <ne...@enlogica.com>.
mark, that did the trick!  Thanks so much. :)

Neal


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org]
Sent: Tuesday, October 25, 2005 2:04 PM
To: 'Tomcat Users List'; neal.cabage@enlogica.com
Subject: RE: SSL Handshake Error!


Sounds like you are on the right path. The Equifax certificate must be
installed
in the trust store, not your key store. Where this is depends on whether you
are
using a JDK or a JRE but as an example, on my laptop the path is
D:\jdk1.5.0_05\jre\lib\security\cacerts

Mark

> -----Original Message-----
> From: Neal Cabage [mailto:neal.cabage@enlogica.com]
> Sent: Tuesday, October 25, 2005 8:00 PM
> To: Tomcat Users List
> Subject: SSL Handshake Error!
>
>
> Help!!!
>
> I use a secure (https) XML feed and it appears the provider
> recently switched SSL certificate providers and is now using
> an Equifax certificate.  Since that switch occured,
> my code is now throwing the following exceptions:
>
>
>
> javax.net.ssl.SSLHandshakeException:
> java.security.cert.CertificateException: Could not find
> trusted certificate
>
>
>
> Per the research I have done, I believe this must mean that
> the root certificate from Equifax must be installed in my
> local Keystore, in order to trust and decipher this
> certificate.  But attempts so far
>
>
> to import this into the keystore and obtain successful
> connection again have all failed.
>
> Does anyone know what is going on? Am I on the right path?
> Does anyone know what I am doing wrong?
>
>
>
> Thanks.
>
> Neal
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: SSL Handshake Error!

Posted by Mark Thomas <ma...@apache.org>.
Sounds like you are on the right path. The Equifax certificate must be installed
in the trust store, not your key store. Where this is depends on whether you are
using a JDK or a JRE but as an example, on my laptop the path is
D:\jdk1.5.0_05\jre\lib\security\cacerts

Mark 

> -----Original Message-----
> From: Neal Cabage [mailto:neal.cabage@enlogica.com] 
> Sent: Tuesday, October 25, 2005 8:00 PM
> To: Tomcat Users List
> Subject: SSL Handshake Error!
> 
> 
> Help!!!
> 
> I use a secure (https) XML feed and it appears the provider 
> recently switched SSL certificate providers and is now using 
> an Equifax certificate.  Since that switch occured,
> my code is now throwing the following exceptions:
> 
>  
> 
> javax.net.ssl.SSLHandshakeException: 
> java.security.cert.CertificateException: Could not find 
> trusted certificate 
> 
>  
> 
> Per the research I have done, I believe this must mean that 
> the root certificate from Equifax must be installed in my 
> local Keystore, in order to trust and decipher this 
> certificate.  But attempts so far 
> 
> 
> to import this into the keystore and obtain successful 
> connection again have all failed.  
> 
> Does anyone know what is going on? Am I on the right path?  
> Does anyone know what I am doing wrong?  
> 
>  
> 
> Thanks.
> 
> Neal
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


SSL Handshake Error!

Posted by Neal Cabage <ne...@enlogica.com>.
Help!!!

I use a secure (https) XML feed and it appears the provider recently switched SSL certificate providers and is now using an Equifax certificate.  Since that switch occured,
my code is now throwing the following exceptions:

 

javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted certificate 

 

Per the research I have done, I believe this must mean that the root certificate from Equifax must be installed in my local Keystore, in order to trust and decipher this certificate.  But attempts so far 


to import this into the keystore and obtain successful connection again have all failed.  

Does anyone know what is going on? Am I on the right path?  Does anyone know what I am doing wrong?  

 

Thanks.

Neal

URGENT: Running Tomcat 5.0 as a Windows service using a specific user

Posted by Jan Andersson <Ja...@se.ibm.com>.
I'll try again: How do I do to run Tomcat 5.0 as a Windows service using a 
specific user? I've tried using the Configure Tomcat application, tab Log 
On, but Tomcat is anyway started with "SYSTEM" as user. 

Am I doing something wrong?
What is SYSTEM for kind of a user?

Pleeeease, any help very much appreciated! I'm totally lost on these 
things and need to get this working by Friday!

Jan Andersson
Senior Software Engineering Specialist
IBM Rational Brand Services
+46 (0)70-793 23 02
Oddegatan 5
164 92 Stockholm