Hi Charles,

I tired out the following steps.

I have checked the tomcat installation path and tomcat evvironment variable

they are as follows
1. I have installed tomcat in my d drive under the directory jakarta-tomcat
    I have set the environment variable for tomcat, TOMCAT_HOME to d:\jakarta-tomcat
2. I am running tomcat 3.2 beta 2.

My classpath variable reads as this
.;d:\jdk1.2.2\bin;d:\jdk1.2.2\lib;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\lib\tools.jar;d:\j2sdkee1.2\lib;d:\j2sdkee1.2\lib\j2ee.jar
as my jdk is also installed d drive under jdk1.2.2 but I have upgraded this to jdk 1.3 So my JVM reads 1.3

Now comming to second point
I am running the batch file i.e. run.bat from command prompt of Win NT 4.0 SP6.

As far as I under stand the problem is comming from the class path read by the Tomcat involker
since it's Initializing TOMCAT and starting it also this is indicated by the lines

 [Tomcat] Initializing
 [Tomcat] Initialized
................

[Tomcat] Starting
[Tomcat] Started

........

the problem it's stating is that it is not in a position find the presence of tomcat
which is indicated by the following lines in the console window followed by the error

[Tomcat] Testing if Tomcat is present....
[Tomcat] failed
[Tomcat] Tomcat wasn't found. Be sure to have your CLASSPATH correctly set

I am printing out the CLASSPATH value that I got from the console

.;d:\jdk1.2.2\bin;d:\jdk1.2.2\lib;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\lib\tools.jar;d:\j2sdkee1.2\lib;
d:\j2sdkee1.2\lib\j2ee.jar;d:\jboss\bin\run.jar;d:\jakarta-tomcat\lib

I am also sending the CLASSPATH variable value while running the tomcat individually from dos console

CLASSPATH: d:\jakarta-tomcat\classes;d:\jakarta-tomcat\lib\servlet.jar;d:\jakarta-tomcat\lib\ant.jar;d:\jakarta-tomcat\lib\webserver.jar;
d:\jakarta-tomcat\lib\jasper.jar;d:\jakarta-tomcat\lib\jaxp.jar;d:\jakarta-tomcat\lib\parser.jar;
.;d:\jdk1.2.2\bin;d:\jdk1.2.2\lib;d:\jdk1.2.2\jre\lib\rt.jar;d:\jdk1.2.2\jre\lib\tools.jar;d:\j2sdkee1.2\lib;d:\j2sdkee1.2\lib\j2ee.jar;
d:\jdk1.2.2\lib\tools.jar

which depicts that tomcat is configured perfectly.

I couldn't figure out why incase of jboss the class path is giving a problem.

I will be very thank full if you can throw some light on this area.

Thanks,
Naveen Aka. Coke
 

Charles Crain wrote:

Usually, this problem can be solved with 2 steps:

1.  As you said you have done, make double sure your TOMCAT_HOME
variable is set correctly.
2.  Be sure you run jBoss using run.sh (or run.bat for Windows).  DO not
use java -jar run.jar.

The run.sh and run.bat files should print out some information saying
something like "Adding TOMCAT classes to CLASSPATH" when you first run
it.  If you are not seeing this message, the run.bat script is not
seeing your TOMCAT_HOME variable.

-Charles
 

Reply via email to