set classpath when running tomcat as a service

A

Andy Fish

Hi,

I am using tomcat 4.1 on windows 2000.

If I start it up with startup.bat (i.e. to run in a command window) it runs
setclasspath.bat

however, if I run it as a windows service, it does not run the
setclasspath.bat script. Any ideas how I can set up the environment for
running as a service?

Thanks,

Andy
 
B

Ben Jessel

Andy Fish said:
Hi,

I am using tomcat 4.1 on windows 2000.

If I start it up with startup.bat (i.e. to run in a command window) it runs
setclasspath.bat

however, if I run it as a windows service, it does not run the
setclasspath.bat script. Any ideas how I can set up the environment for
running as a service?

I think services can be run under a specified user. You could create a
tomcat-user user, which has the classpath set in your system user
profile for the user.

Alternatively you could set the general system classpath. Though watch
out if you are using ant, an IDE etc, as you could get conflicts. I
think the seperate dedicated user with classpath set up is your best
bet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top