Hello,
I am sending you this long email because i'm stuck on a "resource not
available" for 2 weeks no, i googled a lot on for this error, read
plenty of mailing list , but still unresolved my case :-( ...
Below is the a long and detailled snapshot of what happens, thanks in
advance for giving me some clues on this weird case :
1/ I have set up :
Using JRE_HOME:
/opt/jdk1.6.0_16
Using CATALINA_HOME: /usr/sfw/tomcat
Using CATALINA_BASE:
/srv/apache2/wsites/myportal/catalina
Using CATALINA_TMPDIR:
/srv/apache2/wsites/myportal/catalina/temp
2/ When i am running the script $CATALINA_HOME/bin/startup.sh for
Starting TOMCAT with an CATALINA_HOME and CATALINA_BASE filled is
working like a charm see below for some log :
------------------------------------------------
=================
Java command executed :
--------------------------------
/usr/sfw/tomcat# /opt/jdk1.6.0_16/bin/java -verbose
-Djava.util.logging.config.file=/srv/apache2/wsites/myportal/catalina/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.endorsed.dirs=/usr/sfw/tomcat/endorsed -classpath
:/usr/sfw/tomcat/bin/bootstrap.jar -Djava.security.manager
-Djava.security.policy==/srv/apache2/wsites/myportal/catalina/conf/catalina.policy
-Dcatalina.base=/srv/apache2/wsites/myportal/catalina
-Dcatalina.home=/usr/sfw/tomcat
-Djava.io.tmpdir=/srv/apache2/wsites/myportal/catalina/temp
org.apache.catalina.startup.Bootstrap start > logs/java.result 2>&1
As i use the verbose option, below is a part of this verbose log [
Those number in the left are the log line number ] :
-------------------------------
1224 Oct 4, 2009 2:11:52 AM org.apache.catalina.core.StandardEngine start
1225 INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
1248 [Loaded org.apache.catalina.startup.ContextConfig from
file:/usr/sfw/tomcat/lib/catalina.jar]
1249 [Loaded org.apache.catalina.startup.WebRuleSet from
file:/usr/sfw/tomcat/lib/catalina.jar]
1250 [Loaded org.apache.catalina.startup.SetPublicIdRule from
file:/usr/sfw/tomcat/lib/catalina.jar]
1262 [Loaded org.apache.catalina.startup.SetSessionConfig from
file:/usr/sfw/tomcat/lib/catalina.jar]
1263 [Loaded org.apache.catalina.util.RequestUtil from
file:/usr/sfw/tomcat/lib/catalina.jar]
1264 [Loaded org.apache.catalina.startup.TldConfig from
file:/usr/sfw/tomcat/lib/catalina.jar]
1429 [Loaded org.apache.catalina.loader.ResourceEntry from
file:/usr/sfw/tomcat/lib/catalina.jar]
1430 [Loaded mypackage.Hello from
file:/srv/apache2/wsites/myportal/catalina/webapps/sample/WEB-INF/classes/mypackage/Hello.class]
1438 Oct 4, 2009 2:11:53 AM org.apache.coyote.http11.Http11Protocol start
1439 INFO: Starting Coyote HTTP/1.1 on http-8070
1470 Oct 4, 2009 2:11:53 AM org.apache.jk.common.ChannelSocket init
1471 INFO: JK: ajp13 listening on /0.0.0.0:8011
1484 Oct 4, 2009 2:11:53 AM org.apache.jk.server.JkMain start
1485 INFO: Jk running ID=0 time=0/110 config=null
Below is the log with the command without the "-verbose" option :
----------------------------------------------------------------------------------------
Oct 4, 2009 7:12:45 PM org.apache.catalina.core.AprLifecycleListener init
Oct 4, 2009 7:12:45 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8070
Oct 4, 2009 7:12:45 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2145 ms
Oct 4, 2009 7:12:45 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 4, 2009 7:12:46 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Oct 4, 2009 7:12:47 PM org.apache.juli.ClassLoaderLogManager
readConfiguration
Oct 4, 2009 7:12:47 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8070
Oct 4, 2009 7:12:48 PM org.apache.jk.common.ChannelSocket init
Oct 4, 2009 7:12:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2262 ms
I am accessing the tomcat default page using my firefox 3 browser @
http://localhost:8070/1stWebapp is displaying well the tomcat webpage
with the lion and all ...
As I'm using <Valve
className="org.apache.catalina.valves.RequestDumperValve" /> in the
$CATALINA_BASE/conf/server.xml , i am able to see the internal process
between my firefox client and the tomcat' coyotte see below :
INFO: REQUEST URI =/1stWebapp/
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: authType=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: characterEncoding=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: contentLength=-1
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: contentType=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: contextPath=/1stWebapp
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: header=host=localhost:8070
..../...
.../... ..../....
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: method=GET
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: pathInfo=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: protocol=HTTP/1.1
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: queryString=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: remoteAddr=127.0.0.1
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: remoteHost=127.0.0.1
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: remoteUser=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: requestedSessionId=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: scheme=http
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: serverName=localhost
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: serverPort=8070
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: servletPath=/index.html
..../...
.../... ..../....
INFO: ---------------------------------------------------------------
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: authType=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: contentLength=7361
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: contentType=text/html
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: header=Accept-Ranges=bytes
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: header=ETag=W/"7361-1254577407000"
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: header=Last-Modified=Sat, 03 Oct 2009 13:43:27 GMT
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: message=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: remoteUser=null
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: status=200
Oct 4, 2009 7:18:08 PM org.apache.catalina.valves.RequestDumperValve
invoke
INFO: ===============================================================
The contents of my CATALINA_BASE IS :
/srv/apache2/wsites/myportal/catalina# ls -lF webapps/
drwxrwx--- 4 jsrvd websrvd 4096 2009-10-03
15:43 1stWebapp/
drwxr-x--- 5 jsrvd websrvd 142 2009-09-19
17:19 manager/
drwxr-x--- 5 jsrvd websrvd 81 2009-09-22
22:56 sample/
3/ When i am using the command "jsvc" for running TOMCAT with the same
CATALINA_HOME and CATALINA_BASE filled as mentioned above it's not
working @ all, he give me an - resource not available - :
HTTP Status 404 -
------------------------------------------------------------------------
*type* Status report
*message*
*description* _The requested resource () is not available._
------------------------------------------------------------------------
Apache Tomcat/6.0.20
The jsvc command that i use is :
------------------------------------------
jsvc -verbose -user jsrvd -cp
/usr/sfw/tomcat/bin/commons-daemon.jar:/usr/sfw/tomcat/bin/bootstrap.jar
-outfile /srv/apache2/wsites/myportal/catalina/logs/catalina.out
-errfile \&1 -pidfile /var/run/tomcat.pid -Djava.awt.headless=true
-Xmx128M -Djava.endorsed.dirs=/usr/sfw/tomcat/endorsed
-Dcatalina.base=/srv/apache2/wsites/myportal/catalina
-Dcatalina.home=/usr/sfw/tomcat -Djava.io.tmpdir=/tmp/tomcat6JVM
-Djava.security.manager
-Djava.security.policy=/srv/apache2/wsites/myportal/catalina/conf/catalina.policy
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/srv/apache2/wsites/myportal/catalina/conf/logging.properties
org.apache.catalina.startup.Bootstrap
As i use the verbose option, below is a part of this verbose log [
Those number in the left are the log line number ] :
1228 Oct 4, 2009 7:36:19 PM org.apache.catalina.core.StandardService
start
1229 INFO: Starting service Catalina
1230 [Loaded org.apache.catalina.util.ServerInfo from
file:/usr/sfw/tomcat/lib/catalina.jar]
1231 Oct 4, 2009 7:36:19 PM org.apache.catalina.core.StandardEngine start
1232 INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
1233 [Loaded javax.servlet.ServletConfig from
file:/usr/sfw/tomcat/lib/servlet-api.jar]
1255 [Loaded org.apache.catalina.startup.ContextConfig from
file:/usr/sfw/tomcat/lib/catalina.jar]
1256 [Loaded org.apache.catalina.startup.WebRuleSet from
file:/usr/sfw/tomcat/lib/catalina.jar]
1257 [Loaded org.apache.catalina.startup.SetPublicIdRule from
file:/usr/sfw/tomcat/lib/catalina.jar]
1269 [Loaded org.apache.catalina.startup.SetSessionConfig from
file:/usr/sfw/tomcat/lib/catalina.jar]
1270 [Loaded org.apache.catalina.util.RequestUtil from
file:/usr/sfw/tomcat/lib/catalina.jar]
1271 [Loaded org.apache.catalina.startup.TldConfig from
file:/usr/sfw/tomcat/lib/catalina.jar]
1314 [Loaded javax.naming.directory.Attribute from
/opt/jdk1.6.0_16/jre/lib/rt.jar]
1315 Oct 4, 2009 7:36:20 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig <===== It's seems
tha's this way apache wasn't able to load the web.xml in my
webapps' WEB-INF/web.xml
1316 INFO: No default
web.xml
<=====
1396 Oct 4, 2009 7:36:20 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig
1397 INFO: No default web.xml
1398 [Loaded org.apache.catalina.loader.ResourceEntry from
file:/usr/sfw/tomcat/lib/catalina.jar]
1399 [Loaded mypackage.Hello from
file:/srv/apache2/wsites/myportal/catalina/webapps/sample/WEB-INF/classes/mypackage/Hello.class]
1400 [Loaded java.lang.IndexOutOfBoundsException from shared objects
file]
1401 Oct 4, 2009 7:36:20 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig
1402 INFO: No default web.xml
1408 Oct 4, 2009 7:36:20 PM org.apache.coyote.http11.Http11Protocol start
1409 INFO: Starting Coyote HTTP/1.1 on http-8070
1457 Oct 4, 2009 7:36:20 PM org.apache.catalina.startup.Catalina start
1458 INFO: Server startup in 1657 ms
Below is the log with the command without the "-verbose" option :
----------------------------------------------------------------------------------------
Oct 4, 2009 8:04:39 PM org.apache.catalina.core.AprLifecycleListener init
Oct 4, 2009 8:04:39 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8070
Oct 4, 2009 8:04:39 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1674 ms
Oct 4, 2009 8:04:39 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 4, 2009 8:04:39 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Oct 4, 2009 8:04:40 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig
INFO: No default web.xml
Oct 4, 2009 8:04:40 PM org.apache.juli.ClassLoaderLogManager
readConfiguration
Oct 4, 2009 8:04:40 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig
INFO: No default web.xml
Oct 4, 2009 8:04:40 PM org.apache.catalina.startup.ContextConfig
defaultWebConfig
INFO: No default web.xml
Oct 4, 2009 8:04:40 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8070
Oct 4, 2009 8:04:41 PM org.apache.jk.common.ChannelSocket init
Oct 4, 2009 8:04:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1564 ms
I am accessing the tomcat default page using my firefox 3 browser @
http://localhost:8070/1stWebapp is displaying a page saying that there
is an resource not available :
HTTP Status 404 -
------------------------------------------------------------------------
*type* Status report
*message*
*description* _The requested resource () is not available._
------------------------------------------------------------------------
Apache Tomcat/6.0.20
As I'm using <Valve
className="org.apache.catalina.valves.RequestDumperValve" /> in the
$CATALINA_BASE/conf/server.xml , i am able to see the internal process
between my firefox client and the tomcat' coyotte see below :
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: REQUEST URI =/1stWebapp/
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: authType=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: characterEncoding=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: contentLength=-1
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: contentType=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: contextPath=/1stWebapp
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=host=localhost:8070
..../...
.../... ..../....
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: method=GET
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: pathInfo=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: protocol=HTTP/1.1
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: queryString=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteAddr=127.0.0.1
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteHost=127.0.0.1
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteUser=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: requestedSessionId=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: scheme=http
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: serverName=localhost
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: serverPort=8070
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: servletPath=null
..../...
.../... ..../....
INFO: ---------------------------------------------------------------
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: authType=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: contentLength=-1
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: contentType=text/html;charset=utf-8
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: message=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: remoteUser=null
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: status=404
Oct 4, 2009 8:09:41 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: ===============================================================
The contents of my CATALINA_BASE IS Still :
/srv/apache2/wsites/myportal/catalina# ls -lF webapps/
drwxrwx--- 4 jsrvd websrvd 4096 2009-10-03
15:43 1stWebapp/
drwxr-x--- 5 jsrvd websrvd 142 2009-09-19
17:19 manager/
drwxr-x--- 5 jsrvd websrvd 81 2009-09-22
22:56 sample/
As you can see this time with the jsvc command the tomcat is seeking my
web.xml and as a consequence is filled the servletPath with "null" and
give me an error 404 as page not found, reason of my error...
FIRST OF ALL I HAVE TO THANKS YOU A LOT FOR READING ALL THIS PROBLEM
UNTIL THE END, THANK YOU ...
MY QUESTION IS THEN : What i am missing, what i have to do, how is this
possible ????
Could you give me a hand a clue or something that could help me on this ...
Thanks for all, cheers
Have a nice evening of afternoon depending ;-)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org