Re: Problems running as an NT Service
Title: Re: Problems running as an NT Service This was the first thing I checked. -- Chris Raber, Systems Engineer, AvantGo Inc. v: 248-554-9330, cell: 810-839-3684 http://www.avantgo.com/ Sent wirelessly using AvantGo Enterprise RIM! -Original Message- From: Daniel Einspanjer [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Sent: Wed Jul 18 08:38:12 2001 Subject: Re: Problems running as an NT Service Just one quick idea.. Have you looked at the NTFS permissions on the directories in question? Make sure that the Local System account has full permissions, otherwise the service will have access problems. -- Daniel Einspanjer, [EMAIL PROTECTED] on 07/18/2001 On Tue, 17 Jul 2001 14:33:26 -0700 (PDT), Raber Chris wrote: I have a servlet that works fine when running TomCat from a command line. When I attempt to run the servlet as a service, my servlet can not open files for read access that it could open when running under TomCat from the command line... I have read the archives for similar issues, and have tried to set up my service Run As user to have access to the files. I must be missing something or am completely brain dead. Any suggestions are welcome! Thanks, -Chris. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Problems running as an NT Service
All, Thanks for the suggestions. I found my problem. Here is a short synopsis in case anyone else runs into this. Assuming the problem was security related, I moved my servlet into it's own context and added rules to tomcat.policy for the permissions I needed. I checked the SecurityManager.checkRead(String fileName) and I had the needed access... It turned out that in the process of configuring wrapper.properties I changed the order of the jars in my classpath. I am using Xalan 2 and ended up with the wrong parser being instantiated. Re-order the classpath and everything is ok! Thanks for the suggestions. -Chris. --- Daniel Einspanjer [EMAIL PROTECTED] wrote: Just one quick idea.. Have you looked at the NTFS permissions on the directories in question? Make sure that the Local System account has full permissions, otherwise the service will have access problems. -- Daniel Einspanjer, [EMAIL PROTECTED] on 07/18/2001 On Tue, 17 Jul 2001 14:33:26 -0700 (PDT), Raber Chris wrote: I have a servlet that works fine when running TomCat from a command line. When I attempt to run the servlet as a service, my servlet can not open files for read access that it could open when running under TomCat from the command line... I have read the archives for similar issues, and have tried to set up my service Run As user to have access to the files. I must be missing something or am completely brain dead. Any suggestions are welcome! Thanks, -Chris. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Problems running as an NT Service
Just one quick idea.. Have you looked at the NTFS permissions on the directories in question? Make sure that the Local System account has full permissions, otherwise the service will have access problems. -- Daniel Einspanjer, [EMAIL PROTECTED] on 07/18/2001 On Tue, 17 Jul 2001 14:33:26 -0700 (PDT), Raber Chris wrote: I have a servlet that works fine when running TomCat from a command line. When I attempt to run the servlet as a service, my servlet can not open files for read access that it could open when running under TomCat from the command line... I have read the archives for similar issues, and have tried to set up my service Run As user to have access to the files. I must be missing something or am completely brain dead. Any suggestions are welcome! Thanks, -Chris. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Problems running as an NT Service
What error are you getting? FIle not found? Security error? Not found would be a path problem. Security error would be more related to the java.policy of the user you are running under. Is the file on a mounted drive? (service can't access these). etc. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.
Re: Problems running as an NT Service
Title: Re: Problems running as an NT Service File is on drive c: The error is a security manager no read access eeror. -- Chris Raber, Systems Engineer, AvantGo Inc. v: 248-554-9330, cell: 810-839-3684 http://www.avantgo.com/ Sent wirelessly using AvantGo Enterprise RIM! -Original Message- From: Frank Lawlor [EMAIL PROTECTED] To: Tomcat (E-mail) [EMAIL PROTECTED] Sent: Wed Jul 18 08:46:20 2001 Subject: Re: Problems running as an NT Service What error are you getting? FIle not found? Security error? Not found would be a path problem. Security error would be more related to the java.policy of the user you are running under. Is the file on a mounted drive? (service can't access these). etc. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions.