I have tried to compile modwebapp to be used with Apache 1.3.26 and 
Jakarta-Tomcat 4.0.4 on a Red Hat Linux server. I am using J2SDK 1.4.0_01.

I have downloaded the jakarta-tomcat-connectors-4.0.4-src but there was 
no APR dir. So I fetched it from the CVS and placed in the webapp dir 
(jakarta-tomcat-connectors-4.0.4-src/webapp/apr).

First I used ./buildconf and then I used ./configure (without parameters 
(is there any params - and which?)) with the APR. No errors was displayed.

Next I used ./support/buildconf.sh with modwebapp followed by 
./configure --with-apxs=/usr/local/apache-1.3.26/bin/apxs 
--with-apr=/root/programs/jakarta-tomcat-connectors-4.0.4-src/webapp/apr 
--enable-debug. No errors was displayed.

Next I copied mod_webapp.so to /usr/local/apache-1.3.26/libexec.

Next I added the following lines to 
/usr/local/apache-1.3.26/conf/httpd.conf:

LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008

<VirtualHost some_ip_address : some_port>
    .
   WebAppDeploy some_site_name warpConnection /
    .
</VirtualHost>

Then I added the following lines to 
/usr/local/jakarta-tomcat-4.0.4/conf/server.xml:

       <Engine className="org.apache.catalina.connector.warp.WarpEngine" 
name="Apache" host="www.xxx_something_xxx.dk" debug="0" 
appBase="some_site_name">

          <!-- Global logger unless overridden at lower levels -->
          <Logger className="org.apache.catalina.logger.FileLogger" 
prefix="apache_log." suffix=".txt" timestamp="true"/>

          <!-- Because this Realm is here, an instance will be shared 
globally -->
          <Realm className="org.apache.catalina.realm.MemoryRealm" />

       </Engine>

I have been using this with the previous versions of Apache, 
Jakarta-Tomcat and mod_webapp - almost without problems :-)

But now I can't connect from Apache to Jakarta-Tomcat. In Jakarta-Tomcat 
I get these messages (logs):

2002-06-23 13:38:09 [org.apache.catalina.connector.warp.WarpConnection] 
Exception on socket
java.net.SocketException: Forbindelsen brudt i den anden ende: 
Forbindelsen brudt i den anden ende
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:144)
    at 
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:232)
    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:536)

2002-06-23 13:38:10 [org.apache.catalina.connector.warp.WarpConnector] 
Connection from /127.0.0.1:1273 to /127.0.0.1:8008
2002-06-23 13:38:10 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter 
mappings (0)
2002-06-23 13:38:10 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter 
mappings (0)
2002-06-23 13:38:10 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter 
mappings (0)
2002-06-23 13:38:10 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter 
mappings (0)

Any solutions?

Links to sites explaining how to compile mod_jk from CVS is also wanted.


Best regards,

Lars Nielsen Lind




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to