I'm having big problems getting this combination to work: - Apache 1.3.20 - mod_webapp - Tomcat 4b7 All were recently donwloaded and installed, using defaults as much as possible. I'm running WIndows 2K Prof SP2/JDK1.3.1. Accessing the apache server and tomcat standalone is without problems. In httpd.conf I added: ----------------------- LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples/ WebAppInfo /webapp-info ----------------------------- When accessing http://localhost/examples/ and clicking JSP, I'm seeing the first 4 lines of the page, but then Tomcat hangs. I get this error on the console: -------------------------------- Starting service Tomcat-Standalone Apache Tomcat/4.0-b7 Starting service Tomcat-Apache Apache Tomcat/4.0-b7 java.lang.ArrayIndexOutOfBoundsException: No data available at org.apache.catalina.connector.warp.WarpPacket.readUnsignedShort(WarpPacket.j ava:183) at org.apache.catalina.connector.warp.WarpPacket.readString(WarpPacket.java:218 ) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:118) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) -------------------------------- There are NO errors in any of the Tomcat or Apache logs.
Thank you Marcel for pointing this out. This issue need to be investigated thoughly. (Changing priority and Severity)
*** Bug 1788 has been marked as a duplicate of this bug. ***
The bug is still unconfirmed, and it will be addressed later.
Another report on this one by Xuemei Zhang <XZhang@ecutel.com>.
Updating severity to Blocker. We won't have another release of WebApp until this one doesn't get solved.
*** Bug 4187 has been marked as a duplicate of this bug. ***
*** Bug 4211 has been marked as a duplicate of this bug. ***
*** Bug 4294 has been marked as a duplicate of this bug. ***
*** Bug 4454 has been marked as a duplicate of this bug. ***
*** Bug 4807 has been marked as a duplicate of this bug. ***
Someone removed the summary.
I see this with Tomcat 4.0.1 too.
Apache 1.3 + Tomcat 4.0.1 + mod_webapp Tomcat 4.0.1 hangs when servlet calls url.openStream()
*** Bug 5634 has been marked as a duplicate of this bug. ***
Happens under Windows XP too.
*** Bug 4793 has been marked as a duplicate of this bug. ***
*** Bug 5402 has been marked as a duplicate of this bug. ***
*** Bug 6621 has been marked as a duplicate of this bug. ***
*** Bug 6896 has been marked as a duplicate of this bug. ***
*** Bug 7092 has been marked as a duplicate of this bug. ***
*** Bug 7192 has been marked as a duplicate of this bug. ***
*** Bug 7390 has been marked as a duplicate of this bug. ***
*** Bug 8433 has been marked as a duplicate of this bug. ***
Don't know if this will help at all. with Apache 1.3.24 + Tomcat 4.0.3 + mod_webapp ( 20020506 ) on Linux 7.2 with glibc2.2: [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:479) Some debugging discoveries: - seems to happen regularly with Opera and NS6 clients - seldom ( ever? ) with IE or NS4 - packet.getType() returns -1 ( in WarpConnection.recv() ) at that time. This appears to happen after the request has (otherwise) been successfully processed... WarpConnection.recv(packet) is called with packet.getType() = Constants.TYPE_REQ_PROCEED; a few seconds ( 2-15 ) later WarpConnection.recv (packet) called with packet.getType() = -1. corey
The webapp connector has been deprecated due to lack of developer iterest (the community felt that JK 2 was a more compelling solution). The webapp connector should not be used on Windows.