borker n00b
Joined: 05 Oct 2002 Posts: 25 Location: Perth, WA
|
Posted: Sat Oct 05, 2002 5:40 am Post subject: mod_webapp win... |
|
|
Hi all, just thought I'd chime in with my experiences getting mod_webapp to connect apache and tomcat as it seems there were /are a few people having some troubles with this (I was one of them until 10 minutes ago )
Firstly I tried downloading a precompiled version of mod_webapp and did the tradional setup with a named virtual directory in apache setup to point at the examples app on tomcat. Everything was going to plan until hitting <virtual dir>/examples - which failed and produced the following error:
[org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end
After some digging and trying every different version of mod_webapp i could lay my hands on it became apparant that i was going to have to compile my own (did i mention I'm running 1.4rc?) I guessed i was having a gcc3.2 related issue.
the steps i followed were:
- download connector source from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.5/src/jakarta-tomcat-connectors-4.0.5-src.tar.gz
- download APR source from http://www.apache.org/dist/apr/apr-0.9.1.tar.gz
- uncompress connector source, cd to jakarta-tomcat-connectors-4.0.5-src/webapp/
- unpack APR source, link newly created dir apr-0.9.1 to apr
- cd to ./apr and configure with options including --prefix=/usr. make and make install
- env-update to cache the libs created by apr
- cd back to webapp and ./configure --with-apxs and make. This resulted in creating the mod_webapp.so in the apache-1.3 directory
- copied the mod_webapp.so to apache lib dir, restart apache and yay it works.
Hope that is of some use to people out there trying to get mod_webapp to happen for them. |
|