tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Christoph Alexander Bär <comet.fri...@gmx.net>
Subject WARP / mod_webapp not working --- help needed!
Date Sun, 13 Jan 2002 16:10:58 GMT

Hi there!

I've been trying to connect Apache and Tomcat via the Warp connector
(mod_webapp) for quite a while now, but I don't seem to get it
working. Even extensive research of this mailing list didn't point me
to the solution of my problem. I'm getting desperate...

Forgive me, if I am asking the same questions discussed at least
100 times on this list, but for me the hints given just don't work,
and I don't know why and what's wrong.


I am trying to run Tomcat 4.01 on SuSE Linux 7.3 x86 with Apache 1.3.20.
Tomcat runs properly standalone.

So, please, could you have a look at my configuration and the log files
I get. I'd be _very_ grateful for any help, as I just don't get along
on my own, here, it seems. I am probably missing something obvious,
but I don't know what it is. Can you help?


	THANKS IN ADVANCE to all of you!


Here is my configuration.
I actually just want to get the standard configuration running.
No virtual hosts or something other more complex. I just want
to be able to get the Tomcat examples with

	http://<MyHost>/examples

not having to specify the port number. If I get the installation
instructions in the file INSTALL.TXT of the mod_webapp distribution
right, then this should work just by adding these five lines to
/etc/httpd.conf.

	
	LoadModule webapp_module	/usr/lib/apache/mod_webapp.so
	AddModule  mod_webapp.c
	WebAppConnection conn      warp  orion6.trav.orb:8008
	WebAppDeploy     examples  conn  /examples
	WebAppInfo /webapp-info

But for me, as I said, it just doesn't work.

I have copied the file mod_webapp.so to /usr/lib/apache, which is
the replacement directory for libexec on SuSE Linux. I have also
tried to use softlinks called libexec placed in the DocumentRoot
directory of Apache pointing to /usr/lib/apache. However, this
didn't have any effect, as expected. Other than in previous versions
of Tomcat there are no automatically created config files explicitly
using paths containing libexec, right? So this shouldn't matter, in
my understanding. Something else must be wrong, however!


Here are the log files. I included some comments to indicate
which of the following steps was just completed at the end
of a paragraph.

	Step 1: Tomcat started
	Step 2: Request to Tomcat
	Step 3: Apache started
	Step 4: Request to Apache
	Step 5: Request to Tomcat, again
	Step 6: Apache shutdown
	Step 7: Tomcat shutdown




apache-log
----------
	-->Step 1: Tomcat started (file not yet created)
	-->Step 2: Request to Tomcat (file not yet created)
2002-01-13 15:17:00 [org.apache.catalina.connector.warp.WarpConnector] Connection from orion6.trav.orb/192.168.22.6:34396
to orion6.trav.orb/192.168.22.6:8008
2002-01-13 15:17:00 WarpHost[orion6.trav.orb]: Installing web application at context path
/examples from URL file:/usr/java/jakarta-tomcat-4.0.1/webapps/examples
2002-01-13 15:17:00 WebappLoader[/examples]: Deploying class repositories to work directory
/usr/java/jakarta-tomcat-4.0.1/work/orion6.trav.orb/examples
2002-01-13 15:17:00 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom
2002-01-13 15:17:00 StandardManager[/examples]: Seeding of random number generator has been
completed
2002-01-13 15:17:00 ContextConfig[/examples]: Configured an authenticator for method FORM
2002-01-13 15:17:00 ContextListener: contextInitialized()
2002-01-13 15:17:00 SessionListener: contextInitialized()
2002-01-13 15:17:00 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@6e22f7')
2002-01-13 15:17:00 StandardWrapper[/examples:default]: Loading container servlet default
2002-01-13 15:17:00 default: init
2002-01-13 15:17:00 StandardWrapper[/examples:invoker]: Loading container servlet invoker
2002-01-13 15:17:00 invoker: init
2002-01-13 15:17:00 jsp: init
2002-01-13 15:17:00 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings
(2)
	-->Step 3: Apache started
2002-01-13 15:23:50 [org.apache.catalina.connector.warp.WarpConnector] Connection from orion6.trav.orb/192.168.22.6:34480
to orion6.trav.orb/192.168.22.6:8008
2002-01-13 15:23:50 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings
(2)
	-->Step 4: Request to Apache
	-->Step 5: Request to Tomcat, again
2002-01-13 15:26:30 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end
	at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
	at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
	at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
	at java.lang.Thread.run(Thread.java:484)

2002-01-13 15:26:30 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end
	at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
	at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
	at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
	at java.lang.Thread.run(Thread.java:484)
	-->Step 6: Apache shutdown

2002-01-13 15:26:53 SessionListener: contextDestroyed()
2002-01-13 15:26:53 ContextListener: contextDestroyed()
	-->Step 7: Tomcat shutdown


catalina_log
------------
2002-01-13 15:13:29 HttpConnector Opening server socket on all host IP addresses
2002-01-13 15:13:34 HttpConnector[8080] Starting background thread
2002-01-13 15:13:34 HttpProcessor[8080][0] Starting background thread
2002-01-13 15:13:34 HttpProcessor[8080][1] Starting background thread
2002-01-13 15:13:34 HttpProcessor[8080][2] Starting background thread
2002-01-13 15:13:34 HttpProcessor[8080][3] Starting background thread
2002-01-13 15:13:34 HttpProcessor[8080][4] Starting background thread
	-->Step 1: Tomcat started
	-->Step 2: Request to Tomcat
	-->Step 3: Apache started
	-->Step 4: Request to Apache
	-->Step 5: Request to Tomcat, again
	-->Step 6: Apache shutdown
2002-01-13 15:26:48 HttpProcessor[8080][4] Stopping background thread
2002-01-13 15:26:48 HttpProcessor[8080][3] Stopping background thread
2002-01-13 15:26:48 HttpProcessor[8080][2] Stopping background thread
2002-01-13 15:26:48 HttpProcessor[8080][1] Stopping background thread
2002-01-13 15:26:48 HttpProcessor[8080][0] Stopping background thread
2002-01-13 15:26:48 HttpConnector[8080] Stopping background thread
	-->Step 7: Tomcat shutdown


catalina.out
------------
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
	-->Step 1: Tomcat started
	-->Step 2: Request to Tomcat
	-->Step 3: Apache started
	-->Step 4: Request to Apache
	-->Step 5: Request to Tomcat, again
	-->Step 6: Apache shutdown
Stopping service Tomcat-Standalone
Stopping service Tomcat-Apache
	-->Step 7: Tomcat shutdown


localhost_access
----------------
	-->Step 1: Tomcat started (file exists, but is empty)
192.168.22.6 - - [13/Jan/2002:15:16:34 1000] "GET / HTTP/1.1" 302 654
192.168.22.6 - - [13/Jan/2002:15:16:34 1000] "GET /index.html HTTP/1.1" 304 -
	-->Step 2: Request to Tomcat
	-->Step 3: Apache started
	-->Step 4: Request to Apache
192.168.22.6 - - [13/Jan/2002:15:25:11 1000] "GET /examples HTTP/1.1" 302 654
192.168.22.6 - - [13/Jan/2002:15:25:11 1000] "GET /examples/ HTTP/1.1" 200 1293
	-->Step 5: Request to Tomcat, again
	-->Step 6: Apache shutdown
	-->Step 7: Tomcat shutdown


localhost_examples
------------------
2002-01-13 15:13:29 WebappLoader[/examples]: Deploying class repositories to work directory
/usr/java/jakarta-tomcat-4.0.1/work/localhost/examples
2002-01-13 15:13:29 WebappLoader[/examples]: Reloading checks are enabled for this Context
2002-01-13 15:13:29 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom
2002-01-13 15:13:29 StandardManager[/examples]: Seeding of random number generator has been
completed
2002-01-13 15:13:31 ContextConfig[/examples]: Configured an authenticator for method FORM
2002-01-13 15:13:31 ContextListener: contextInitialized()
2002-01-13 15:13:31 SessionListener: contextInitialized()
2002-01-13 15:13:31 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@488440')
2002-01-13 15:13:31 StandardWrapper[/examples:default]: Loading container servlet default
2002-01-13 15:13:31 default: init
2002-01-13 15:13:31 StandardWrapper[/examples:invoker]: Loading container servlet invoker
2002-01-13 15:13:31 invoker: init
2002-01-13 15:13:31 jsp: init
	-->Step 1: Tomcat started
	-->Step 2: Request to Tomcat
	-->Step 3: Apache started
	-->Step 4: Request to Apache
	-->Step 5: Request to Tomcat, again
	-->Step 6: Apache shutdown
2002-01-13 15:26:53 SessionListener: contextDestroyed()
2002-01-13 15:26:53 ContextListener: contextDestroyed()
	-->Step 7: Tomcat shutdown


localhost_log
-------------
2002-01-13 15:13:32 WebappLoader[/manager]: Deploying class repositories to work directory
/usr/java/jakarta-tomcat-4.0.1/work/localhost/manager
2002-01-13 15:13:32 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2002-01-13 15:13:32 StandardManager[/manager]: Seeding of random number generator has been
completed
2002-01-13 15:13:32 ContextConfig[/manager]: Configured an authenticator for method BASIC
2002-01-13 15:13:32 StandardWrapper[/manager:default]: Loading container servlet default
2002-01-13 15:13:32 default: init
2002-01-13 15:13:32 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2002-01-13 15:13:32 invoker: init
2002-01-13 15:13:32 jsp: init
2002-01-13 15:13:33 StandardHost[localhost]: Installing web application at context path  from
URL file:/usr/java/jakarta-tomcat-4.0.1/webapps/ROOT
2002-01-13 15:13:33 WebappLoader[]: Deploying class repositories to work directory /usr/java/jakarta-tomcat-4.0.1/work/localhost/_
2002-01-13 15:13:33 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2002-01-13 15:13:33 StandardManager[]: Seeding of random number generator has been completed
2002-01-13 15:13:33 StandardWrapper[:default]: Loading container servlet default
2002-01-13 15:13:33 default: init
2002-01-13 15:13:33 StandardWrapper[:invoker]: Loading container servlet invoker
2002-01-13 15:13:33 invoker: init
2002-01-13 15:13:33 jsp: init
2002-01-13 15:13:33 StandardHost[localhost]: Installing web application at context path /tomcat-docs
from URL file:/usr/java/jakarta-tomcat-4.0.1/webapps/tomcat-docs
2002-01-13 15:13:33 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory
/usr/java/jakarta-tomcat-4.0.1/work/localhost/tomcat-docs
2002-01-13 15:13:33 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2002-01-13 15:13:33 StandardManager[/tomcat-docs]: Seeding of random number generator has
been completed
2002-01-13 15:13:33 StandardWrapper[/tomcat-docs:default]: Loading container servlet default
2002-01-13 15:13:33 default: init
2002-01-13 15:13:33 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker
2002-01-13 15:13:33 invoker: init
2002-01-13 15:13:33 jsp: init
2002-01-13 15:13:33 StandardHost[localhost]: Installing web application at context path /webdav
from URL file:/usr/java/jakarta-tomcat-4.0.1/webapps/webdav
2002-01-13 15:13:33 WebappLoader[/webdav]: Deploying class repositories to work directory
/usr/java/jakarta-tomcat-4.0.1/work/localhost/webdav
2002-01-13 15:13:33 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2002-01-13 15:13:33 StandardManager[/webdav]: Seeding of random number generator has been
completed
2002-01-13 15:13:34 StandardWrapper[/webdav:default]: Loading container servlet default
2002-01-13 15:13:34 default: init
2002-01-13 15:13:34 StandardWrapper[/webdav:invoker]: Loading container servlet invoker
2002-01-13 15:13:34 invoker: init
2002-01-13 15:13:34 jsp: init
	-->Step 1: Tomcat started
	-->Step 2: Request to Tomcat
	-->Step 3: Apache started
	-->Step 4: Request to Apache
	-->Step 5: Request to Tomcat, again
	-->Step 6: Apache shutdown
2002-01-13 15:26:53 StandardHost[localhost]: Removing web application at context path /examples
2002-01-13 15:26:53 StandardHost[localhost]: Removing web application at context path /webdav
2002-01-13 15:26:53 StandardHost[localhost]: Removing web application at context path /tomcat-docs
2002-01-13 15:26:53 StandardHost[localhost]: Removing web application at context path /manager
2002-01-13 15:26:53 StandardHost[localhost]: Removing web application at context path
	-->Step 7: Tomcat shutdown

--
	Regards, Peter Bär
	mailto:comet.friend@gmx.net 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message