> I'm installing Apache Tomcat 4.0 in Tru64 Unix. I downloaded
> jakarta-tomcat-4.0.1.tar.gz and successfully unpack it. When I execute the
> command ./startup.sh which startup Tomcat, the following messages appeared;
>
> Using
> CLASSPATH:/tomcat/jakarta-tomcat-4.0.1/bin/bootstrap.jar:/usr/opt/java122/li
> b/tools.jar
> Using CATALINA_BASE: /tomcat/jakarta-tomcat4.0.1
> Using CATALINA_HOME: /tomcat/jakarta-tomcat4.0.1
> Using JAVA_HOME: /usr/opt/java122
I had problems with startup script, it wasn't including "config conf/server.xml"
directive, but I solved it, eventually.
Check whether Tomcat is running at all: "ps -A | grep java", you should see a line
like this:
/usr/opt/java130/bin/alpha/native_threads/java
-classpath
/usr/local/java/tomcat-4.01/bin/bootstrap.jar:/usr/opt/java130/lib/tools.jar
-Dcatalina.base=/usr/local/java/tomcat-4.01
-Dcatalina.home=/usr/local/java/tomcat-4.01
org.apache.catalina.startup.Bootstrap
-config /usr/local/java/tomcat-4.01/conf/server.xml start
> The problem is after startup the default applications included with Tomcat
> 4.0 wasn't available for browsing. When I entered in Netscape
> http://localhost:8080/ the following error appeared:
You can always try telnetting to port 8080 and issuing HTTP commands directly:
--------------------------------------
Mercury:/# telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.0
Host: localhost
--------------------------------------
This is the response you should get:
--------------------------------------
HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Date: Wed, 19 Dec 2001 12:14:33 GMT
Location: http://localhost:8080/index.html
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Connection: close
<html><head><title>Apache Tomcat/4.0.1 - Error report</title><STYLE><!--H1{font-family
: sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family
: sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color :
white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE>
</head><body><h1>Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily</h1><HR
size="1" noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Moved
Temporarily</u></p><p><b>description</b> <u>TheConnection closed by foreign host.rily)
has moved temporarily to a new location.</u></p><HR size="1" noshade></body></html>
--------------------------------------
> Netscape is unable to locate the server keyword:netscape.com
> Please check the server name and try again.
Is Netscape working for other URLs? It sounds as if it is misconfigured or at least
unable to reach Internet/DNS.
Nix.