Solved

Setting Classpath for Tomcat

Posted on 2008-10-22
2
4,207 Views
Last Modified: 2013-12-02
I have tomcat running as a service on Windows Server 2003 (32 bit).  I need to set the class path variable prior to starting tomcat, and I am getting this error using the code below.  

[420 prunsrv.c] [error]
The operation completed sucessfully.
[1327 prunsrv.c] [error]
Load configuration failed

Is it possible to do what I'm trying to do and does anyone know what I'm doing wrong?

Thanks in advance
set path=%JAVA_HOME%\jre\bin;%JAVA_HOME%\jre\bin\classic;%JAVA_HOME%\bin;%path%;
 
call "C:\Tomcat_5.5.25\bin\tomcat5.exe" "//RS//Tomcat5 ++Classpath=%ADVISOR_COMMON_HOME%\lib\hsqldb.jar;%CLASSPATH%;"

Open in new window

0
Comment
Question by:cartereverett
2 Comments
 
LVL 1

Accepted Solution

by:
matthewsb earned 500 total points
ID: 22779778
You should change the class path via the control panel supplied with Tomcat. If you installed in the standard location it will be:

C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat55w.exe

Click on the Java tab to change the Class Path settings. Then click the OK button and restart the service if necessary.

I have attached a screen shot from Tomcat 6.0 but it looks pretty much the same for Tomcat 5.5.
tccp.png
0
 

Expert Comment

by:sivaramaprasadvemuri
ID: 23989335
What if I did not install Tomcat as a service? Where do I set the classpath?
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JBoss 6 deployment of war file error 2 134
difference between member and local variables. 29 140
Adobe Experience Manager 4 201
How to close Java Threads in servlets 5 107
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question