tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Rodríguez Ortega <alberto.rodrig...@transtools.com>
Subject Tomcat works when it wants here - Tomcat + Apache
Date Wed, 14 Jun 2000 14:25:25 GMT
Could anybody help me please?
I'm having problems getting Tomcat 3.1 working sometimes .. other not :) 
not reason and no interaction for working and not.
I'm try to explain this.

When i launch Tomcat 3.1 (which is beeing accesed from apache web server 
correctly instaled and compiled with DSO) sometimed appear, at the end of 
the logs i get on terminal this:

... BLAH BLAH BLAH.... 
1.2c:/usr/local/jdk1.2.2:/usr/local/jdk1.2.2/lib:/usr/local/classpath
# Context log: path="/progs" Adding context 
path="/progs"  docBase="webapps/progs"
Context log: path="" Adding context path=""  docBase="webapps/progs"
Starting tomcat. Check logs/tomcat.log for error messages

* Attention to this point, IF I GET on the windows when i launch Tomcat the 
next, it will works:
Context log: path="/vb2j" Adding context path="/progs"  docBase="webapps/progs"
Context log: path="" Adding context path=""  docBase="webapps/progs"

---- FROM TERMINAL WHEN I LAUNCH TOMCAT AND WORKS:
# usr/local/Tomcat3.1/jakarta-/bin/tomcat.sh start
Using classpath: 
.:/usr/local/Tomcat3.1/jakarta-tomcat/lib/ant.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/jasper.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/servlet.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/test:/usr/local/Tomcat3.1/jakarta-tomcat/lib/webserver.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/xml.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/mm.mysql.jdbc-1.2c:/usr/local/jdk1.2.2:/usr/local/jdk1.2.2/lib:/usr/local/classpath
# Context log: path="/progs" Adding context 
path="/progs"  docBase="webapps/progs"
Context log: path="" Adding context path=""  docBase="webapps/progs"
Starting tomcat. Check logs/tomcat.log for error messages

-----------

So it's mean i get 2 groups of messages:

FIRST:
Using classpath: 
.:/usr/local/Tomcat3.1/jakarta-tomcat/lib/ant.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/jasper.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/servlet.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/test:/usr/local/Tomcat3.1/jakarta-tomcat/lib/webserver.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/xml.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/mm.mysql.jdbc-1.2c:/usr/local/jdk1.2.2:/usr/local/jdk1.2.2/lib:/usr/local/classpath

SECOND( a pair of seconds after FIRST):
Context log: path="/progs" Adding context 
path="/progs"  docBase="webapps/progs"
Context log: path="" Adding context path=""  docBase="webapps/progs"
Starting tomcat. Check logs/tomcat.log for error messages


Ok, it is right, now o wait ... (for example) 20 minutes, and i restart the 
service (or after a shutdown of the system):

---- FROM TERMINAL WHEN I LAUNCH TOMCAT AND NOT WORKS:
# usr/local/Tomcat3.1/jakarta-/bin/tomcat.sh start
Using classpath: 
.:/usr/local/Tomcat3.1/jakarta-tomcat/lib/ant.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/jasper.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/servlet.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/test:/usr/local/Tomcat3.1/jakarta-tomcat/lib/webserver.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/xml.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/mm.mysql.jdbc-1.2c:/usr/local/jdk1.2.2:/usr/local/jdk1.2.2/lib:/usr/local/classpath
# Starting tomcat. Check logs/tomcat.log for error messages

U can see the second group of messages now dont inform about the Context 
confired on server.xml. BUT WAIT! :) it's is better.

On tomcat.log appear the notices of the contexts, i mean, i read the:
Context log: path="/progs" Adding context 
path="/progs"  docBase="webapps/progs"
Context log: path="" Adding context path=""  docBase="webapps/progs"

on tomcat.log always, when works and when it will not, but i dont get the 
message on terminal when it's not.
So ... i restart, and restart, smoke a cigarret .. then  i back an restart 
and great! the Context notices appear on the laugh messages and it's ok...

;) Jon, dont be mad with me ... i'm waiting you hard reply ;).

For information:

Debian potato
Apache 1.3.12
Tomcat 3.1

---

httpd.conf of apache reading the "auto-created" apache-tomcat.conf of 
TOMCAT_HOME/conf as extra configuration.

Logs:

* servlet.log

Context log path="/progs" :tomcat.errorPage: init
Context log path="/progs" :jsp: init
Context log path="/progs" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
Context log path="" :default: init

* tomcat.log

Starting tomcat install="/usr/local/Tomcat3.1/jakarta-tomcat" 
home="/var/local/T
omcat3.1/jakarta-tomcat" 
classPath=".:/usr/local/Tomcat3.1/jakarta-tomcat/lib/an
t.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/jasper.jar:/usr/local/Tomcat3.1/ja
karta-tomcat/lib/servlet.jar:/usr/local/Tomcat3.1/jakarta-tomcat/lib/test:/usr/l
ocal/Tomcat3.1/jakarta-tomcat/lib/webserver.jar:/usr/local/Tomcat3.1/jakarta-tom
cat/lib/xml.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/mm.mysql.jdbc-1.2c:
/usr/local/jdk1.2.2:/usr/local/jdk1.2.2/lib:/usr/local/classpath"
Context log: path="/progs" File not found 
/var/local/Tomcat3.1/jakarta-tomcat/web
apps/progs/WEB-INF/web.xml, using only defaults
Context log: path="" File not found 
/var/local/Tomcat3.1/jakarta-tomcat/webapps/
progs/WEB-INF/web.xml, using only defaults
Starting endpoint port="8080" 
handler="org.apache.tomcat.service.http.HttpConnec
tionHandler"
Starting endpoint port="8007" 
handler="org.apache.tomcat.service.connector.Ajp12
ConnectionHandler"

-----------------

NEW CHEKINGS! :))) more great and funny.->


on webapps/ i have only a directory (no files) it's progs/

ok think i'm launching Tomcat and it's not working ok (no servlets is 
beeing executed)

i have this
webapps/progs/WEB-INF/Prueba.class   (only this, no more files or directory)

now .. i cp Prueba.class on .. so i have now

webapps/progs/Prueba.class
and
webapps/progs/WEB-INF/Prueba.class

- i start Tomcat and i get the message it will work. I check and .. great, 
it does!
(btw, executing servlets from /progs NOT from WEB-INF)

#################################################################

need a force a change on the directory extructure for getting tomcat working?
why it fails sometimes? if i relaunch with Tomcat working it works all 
times i do .. but .. if i let this working a hour, or so .. and i reboot 
Tomcat .. it will not work.

??????? what's up!?


Mime
View raw message