I have been working with Apache + Tomcat with the warp connector under
Solaris 8.
We have just switched to using the mod_jk connector as it seems to be the
more supported option.
Several pointers that might help:
If you get Apache as a binary from sun it will be compiled with the sun
compiler - this can cause problems if you try to integrate it with things
built using GCC. Best to build your own (newer) version of Apache. As has
been said your Apache version is very old. When you build Apache enable
EAPI support as it will save you time later.
We had some problems building mod_jk but have done it now. We have binaries
for Apache 1.3.26 on solaris 8 if you want them (also the jar to integrate
with Tomcat 4.0.4).
Hope that helps,
Anthony.
> -----Original Message-----
> From: Zabel, Ian [SMTP:[EMAIL PROTECTED]]
> Sent: 04 September 2002 22:55
> To: '[EMAIL PROTECTED]'
> Subject: Warp connector segfault
>
> 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(WarpRequestHa
> nd
> 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
***********************************************************************************
Becta's new 'Ask an Expert' service provides you with the opportunity to consult an
online panel of experts for help with a whole range of advice on ICT issues, with a
different theme each month.
The theme for September's 'Ask an Expert' is Technical Enquiries - a specialist panel
of experts are available to help you with any technical issues that are worrying you -
there are no restrictions on what you can ask. So whether you simply want to know how
to connect up your printer, or if you need advice on buying ICT equipment and
services, our experts will be on hand to offer advice and guidance. Find out more at:
http://www.ictadvice.org.uk/expert
***********************************************************************************
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>