Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginner problem: Can't access tomcat 4.1

Status
Not open for further replies.

abenstex

Programmer
Jan 9, 2005
47
DE
Hi everyone

I am running Tomcat 4.1 on Debian 3.1 (at least i am trying to). According to the server.xml file the port to access tomcat should be 8180:

<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8180" minProcessors="5" maxProcessors="75"
enableLookups="true" acceptCount="10" debug="0"
connectionTimeout="20000" useURIValidationHack="false" />

But even when i enter the adress like i can't access the tomcat index.jsp, because i get a server timeout. In the tomcat directory (under /usr/share/tomcat4) there is a symbolic link to another webapps-directory on another partition:

webapps -> /var/lib/tomcat4/webapps

I am more than thankful for any advice, hint, suggestion whatever...
 
Tomcat 4 is well out of date now - unless you have to , I'd upgrate to 5.0 at least.

Assuming you have started tomcat (have you ?_, do you get any error messages in the logs ?

What does "netstat -a" show you - any connections to port 8180 ?

Also how come you are using the port 8180 ? Tomcat is usually run on port 8080 (HTTP-ALT) ...

--------------------------------------------------
Free Database Connection Pooling Software
 
I know that it's outdated nowadays, but there are several reasons that make me go on with tomcat 4.1. The only error logs i get in catalina.out is the following after shutting down the server:

Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/UnsatisfiedLinkError: Failed to locate native function: java/io/VMFile.exists(Ljava/lang/String;)Z
at java.io.File.exists(File.java:248)
at kaffe.lang.AppClassLoader.addSource(AppClassLoader.java:210)
at kaffe.lang.AppClassLoader.<init>(AppClassLoader.java:243)
at kaffe.lang.AppClassLoader.<clinit>(AppClassLoader.java:35)

When i start tomcat the message i get is:

./catalina.sh start
Using CATALINA_BASE: /usr/share/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /usr/share/tomcat4/temp
Using JAVA_HOME: /usr/lib/kaffe/

But netstat -a did not make me very happy, as there was nothing written about port 8180 or tomcat. The reason that i am using port 8180 is that it was configured like this before i tried to get along, that's all. But i don't think that this should be THE problem...
 
Well I'd say the reason its barfing is because the Kaffe JMM is ******* **** !!!

Download the decent standard Sun JDK and try it with that.
Both Kaffe and the GNU JVMs are notoriously unstable.


--------------------------------------------------
Free Database Connection Pooling Software
 
Well, that's what i expected, but i had hoped there would be another solution to this problem...
 
Even on Kaffe's website they say that its only a good choice for "educational or research" purposes, but is not a good choice for many :

If you are learning Java, or are looking for a complete Java development environment, you will probably be best served by using a "real" Java development environment (such as the JDK)

Just move to Sun's JDK - its free - and will probably remove all your problems.

--------------------------------------------------
Free Database Connection Pooling Software
 
Now i finally had enough time to install the jdk on the server, but after i start Tomcat 4.1 i can't access it via although i have the following output in the catalina.out file:

Jun 16, 2005 10:38:19 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8180
Starting service Tomcat-Standalone
Apache Tomcat/4.1
Jun 16, 2005 10:38:24 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8180
Jun 16, 2005 10:38:24 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 16, 2005 10:38:24 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=36/179 config=/usr/share/tomcat4/conf/jk2.properties
"logs/catalina.out" 32L, 1910C 32,1 Bot

Any ideas?
 
Something else I recognized after switching to JDK is that in my logs directory there is one more file: localhost_today'sdate.log. After a IllegalArgumentException there is the following output:

2005-06-16 10:38:22 HostConfig[localhost]: Deploying web application directory ROOT2005-06-16 10:38:22 StandardHost[localhost]: Installing web application at context path from URL file:/var/lib/tomcat4/webapps/ROOT
2005-06-16 10:38:22 WebappLoader[]: Deploying class repositories to work directory /usr/share/tomcat4/work/Standalone/localhost/_
2005-06-16 10:38:22 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2005-06-16 10:38:23 StandardManager[]: Seeding of random number generator has been completed
2005-06-16 10:38:23 StandardWrapper[:default]: Loading container servlet default2005-06-16 10:38:23 default: init
2005-06-16 10:38:23 StandardWrapper[:invoker]: Loading container servlet invoker
2005-06-16 10:38:23 invoker: init
2005-06-16 10:38:23 jsp: init

Maybe it is of any use for anyone...At least i hope so.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top