Click to See Complete Forum and Search --> : tomcat / java running?


Danster
01-30-2001, 09:24 PM
other than going to http://127.0.0.0:8080 is there any way to tell if tomcat is installed properly? Could it be that java isn't running properly?

I've installed tomcat using the RPM.
# rpm -q tomcat
tomcat-3.1-4

During install, it complained that the doc needed 'webserver' -- I didn't know what that was 'cause I use Apache 1.3.14 with compiled from source with OpenSSL etc.
So if I RPM -q apache -- it doesn't think it's installed. Any ideas- how can I tell if java and/or tomcat is running? I also tried compiling from source, and it said:

SPECS]# rpm -bb --nodeps tomcat-3.1.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.83357
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf /var/tmp/tomcat-root
[snip]
+ patch -p0 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.71106
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd jakarta-tomcat
+ ant -Dant.home /opt/ant -Dtomcat.home /usr/src/redhat/BUILD/jakarta-tomcat -Dtomcat.build /usr/src/redhat/BUILD/jakarta-tomcat/build
Unable to initialize threads: cannot find class java/lang/Thread
Bad exit status from /var/tmp/rpm-tmp.71106 (%build)

klamath
01-30-2001, 09:33 PM
Java is installed, right?

I've installed tomcat using the RPM


I'd recommend just installing from source. While you're at it, I'd suggest using the latest version of Tomcat (3.2.1 IIRC) and Apache (1.3.17).

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Tornado HTTP Server (http://sourceforge.net/projects/tornado)

Danster
01-30-2001, 10:00 PM
thkx for ur comments:
>I'd recommend just installing from source.
I tried that but it didn't work. 8-( see output above. JDK was installed and working in the past. How can I check it?

>While you're at it, I'd suggest using the latest version of Tomcat (3.2.1 IIRC)
ok
>and Apache (1.3.17).
I can't update apache because of other requirements.

klamath
01-30-2001, 10:36 PM
I tried that but it didn't work. 8-( see output above.

Well, you tried building from a source RPM -- I'd suggest just sticking to the plain source .tgz. Give that a shot and see if it works. Also, what JDK (version, vendor) are you using?

The error you got compiling seems weird... what is CLASSPATH set to? What setting of '-classpath' is being passed to java when Ant is run? (you can open up bin/ant in a text editor (it's just a shell script), and put 'echo $LOCALCLASSPATH' on the 2nd-last line).

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Tornado HTTP Server (http://sourceforge.net/projects/tornado)

Danster
01-30-2001, 11:58 PM
>Also, what JDK (version, vendor) are you using?
Sun JDK(tm) 1.1.8. Which one should I use? Where can a get newbie tips for finding out if it is installed properly?

>when Ant is run?
good catch it just gives me a similar message as install -- it looks like it can't find java:
# vi /opt/tomcat/bin/ant
# ant
Unable to initialize threads: cannot find class java/lang/Thread