Re: Problems running as an NT Service

2001-07-20 Thread Christopher Raber
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

2001-07-20 Thread Raber Chris

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

2001-07-18 Thread Daniel Einspanjer

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

2001-07-18 Thread Frank Lawlor

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

2001-07-18 Thread Christopher Raber
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.






Problems running as an NT Service

2001-07-17 Thread Raber Chris

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/



Problems running as an NT Service

2001-07-17 Thread Raber Chris

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/



More Information, was Problems running as an NT Service

2001-07-17 Thread Raber Chris

Here are some additional facts that may help diagnose
the problem.

- I have made sure that the user my service is running
as has access to the directories and files I need to
read.

- My servlet is running in the ROOT context in the
webapps directory. Not for any good reason except I
have been too lazy to create my own context. Need to
learn how to do that...

- The files I am trying to read are in a different
directory than the ROOT context I am running in.

- As I understand it, TomCat grants a servlet file
permissions in the directories under the context it is
running in. Note however I don't have any problems
accessing these files when running TomCat from the
command line. Are different policies enforced when
runnning as service vs. running from command line?

- Finally, is it possible to allow my servlet in the
ROOT context access to files/directories located
elsewhere?

Either way I need to figure out these context beasties
but this exercise is helping me learn some things.

TIA,

-Chris.

Previous post:

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/