Hello all,

We are trying to get Apache 1.3.12 working with Tomcat 4.0.4 and are using
the warp(1.2.0-dev, i think) connector. We are using solaris8, and Apache
and Tomcat are on different servers. But, whenever we try to connect to / or
/examples, we get segmentation faults in apache. Something's not right, and
we have been spent over a week trying to get Apache to work with Tomcat
using the warp connector. If we can't get this working in about a day or so,
we will probably be going for NewAtlanta's ServletExec. The boss doesn't
mind paying if he can get support, I guess... so, here's our config and the
errors we're seeing:

We've gotten the connector compiled, and included in Apache like this:
LoadModule webapp_module      libexec/mod_webapp.so
AddModule mod_webapp.c

<VirtualHost 10.101.10.100:17890>
    ServerName server.ourcompanyname.com
    ... other directives, including a DocumentRoot... ....

    WebAppConnection warpConnection warp 10.101.10.98:8181
    WebAppDeploy examples warpConnection /examples/
    WebAppDeploy cirqit-tom warpConnection /
    WebAppInfo /webapp-info
</VirtualHost>

We also have other virtual hosts in apache that are on different IP
addresses, and different ports. 10.101.10.100:17890 is the only host with
WebApp directives. The other hosts are all using ServletExec as a servlet
engine. (So, of course, that means, we also have mod_servletexec loaded!)

In Tomcat, we have the Http and mod_jk connector tags commented out, and
only the webapp one enabled. here's what it looks like:

  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8181" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set to
-->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="server.ourcompanyname.com" defaultHost="server.ourcompanyname.com"
debug="1" appBase="webapps">

      <!-- 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>

  </Service>



Apache error log gets these whenever I make a request to /:
[Wed Sep  4 17:30:40 2002] [notice] child pid 13483 exit signal Segmentation
Fault (11)
[Wed Sep  4 17:34:34 2002] [notice] child pid 13513 exit signal Segmentation
Fault (11)


Tomcat's apache access log has this in it:
2002-09-04 17:38:22 [org.apache.catalina.connector.warp.WarpConnector]
Connection from /10.101.10.99:59781 to /10.101.10.98:8181
2002-09-04 17:38:27 WarpEngine[cirqit-dev.cirqit.com]: Mapping request
2002-09-04 17:38:27 WarpHost[cirqit-dev.cirqit.com]: Mapping request for
Host
2002-09-04 17:38:27 [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:2
37)
        at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:112)
        at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
        at java.lang.Thread.run(Thread.java:536)

2002-09-04 17:38:28 [org.apache.catalina.connector.warp.WarpConnector]
Connection from /10.101.10.99:59782 to /10.101.10.98:8181
2002-09-04 17:39:34 [org.apache.catalina.connector.warp.WarpConnector]
Connection from /10.101.10.99:59783 to /10.101.10.98:8181
2002-09-04 17:39:36 [org.apache.catalina.connector.warp.WarpConnector]
Connection from /10.101.10.99:59784 to /10.101.10.98:8181






So, what seems like it could be wrong? Is our actual mod_webapp.so screwed
up? Is it just our configuration? What could be causing these segfaults in
the connector? Should we just forget mod_webapp and try mod_jk? Is it a
possible conflict with ServletExec, which is running on the other virtual
servers in apache?

Any assistance is highly appreciated!

Ian Zabel
Cirqit.com

Reply via email to