RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-06 Thread Robert Ensinger
Hi folks.

I'm still unsuccessful at adding an explicit classpath to Tomcat when
running as a service via the -Djava.class.path= switch detailed below.

Can someone confirm or deny that this is the proper way to add an explicit
classpath to the service? If so, I'll log the bug.

Thanks,
-R

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 11:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service

Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.

 

When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar

 

Now I wish to see this app run when Tomcat is started as a service.

 

Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

 

My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs 

 

This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.

 

Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)

 

My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.

 

Thanks!

 

Robert Ensinger



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-06 Thread Bodycombe, Andrew
If you moved engine.jar from the shared/lib folder to the common/lib folder,
would that remove the need to explicitly set the classpath?

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: 06 February 2004 16:49
To: 'Tomcat Users List'
Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service


Hi folks.

I'm still unsuccessful at adding an explicit classpath to Tomcat when
running as a service via the -Djava.class.path= switch detailed below.

Can someone confirm or deny that this is the proper way to add an explicit
classpath to the service? If so, I'll log the bug.

Thanks,
-R

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 11:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service

Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.

 

When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar

 

Now I wish to see this app run when Tomcat is started as a service.

 

Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

 

My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs 

 

This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.

 

Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)

 

My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.

 

Thanks!

 

Robert Ensinger



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-06 Thread Robert Ensinger
I gave moving the jar a shot yesterday just to be sure but no dice. 

I'm not the developer of this app so I can't speak to why its necessary, but
the only way to get full functionality from this app is to explicitly add
the classpath to the server startup. 
This works successfully on Weblogic 8.1, SunOne,  JRun4. 

I can get the full app to work properly in Tomcat when started via the
startup.bat (classpath added to the setclasspath.bat); now the problem I
need to solve is how I duplicate this success when running Tomcat as an NT
Service.

I haven't found any documentation that specifically addresses adding the
classpath to the nt service startup, so I've tried the approaches listed
below.

Until I can confirm or deny I'm adding the classpath properly I don't know
if I have a bug here. 

I will check if anyone has added an enhancement request for better
documentation on the configure tomcat utility.

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 06, 2004 12:00 PM
To: 'Tomcat Users List'
Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service

If you moved engine.jar from the shared/lib folder to the common/lib folder,
would that remove the need to explicitly set the classpath?

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: 06 February 2004 16:49
To: 'Tomcat Users List'
Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service


Hi folks.

I'm still unsuccessful at adding an explicit classpath to Tomcat when
running as a service via the -Djava.class.path= switch detailed below.

Can someone confirm or deny that this is the proper way to add an explicit
classpath to the service? If so, I'll log the bug.

Thanks,
-R

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 11:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service

Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.

 

When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar

 

Now I wish to see this app run when Tomcat is started as a service.

 

Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

 

My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs 

 

This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.

 

Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)

 

My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.

 

Thanks!

 

Robert Ensinger



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-03 Thread Filip Hanik \(lists\)
why don't you just add the files to /common/endorsed/ that way they will get
automatically added to the tomcat classpath without you setting any
variables.

also, setting up tomcat in a file system with spaces in the paths, can be a
debug pain in the butt,
I would try to avoid doing that

Filip

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service


Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.



When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar



Now I wish to see this app run when Tomcat is started as a service.



Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar



My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs



This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.



Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)



My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.



Thanks!



Robert Ensinger


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]