Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HttpProxyServlet

3 views
Skip to first unread message

Ravi

unread,
Aug 2, 2002, 11:51:40 AM8/2/02
to
I am trying to configure HttpProxyServlet to proxy for Tomcat (tried
3.3 and 4.0). The proxy request works for the firts but fails
subsequently.

The follwing the configuration data:

0. Using Weblogic 6.1 with SP3 and Tomcat 3.3.1 (and 4.0.3 with same
results)
1. web.xml on weblogic application
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<servlet>
<servlet-name>ProxyServlet</servlet-name>
<servlet-class>weblogic.servlet.proxy.HttpProxyServlet</servlet-class>
<init-param>
<param-name>Debug</param-name>
<param-value>true</param-value>
</init-param>
<<init-param>
<param-name>WebLogicHost</param-name>
<param-value>localhost</param-value>
</init-param>
<init-param>
<param-name>WebLogicPort</param-name>
<param-value>8080</param-value>
</init-param> </servlet>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>

</web-app>

2. I have a jsp on tamcat at http://tomcat:8080/test/test.jsp

When hit the jsp through weblogic proxy
(http://weblogicproxy:7001/test/test.jsp

I get the following results :

- First it works (displays the test jsp from tomcat)
- Second time displays "Internal Server Error" with exception on
console
<Fri Aug 02 08:49:04 PDT 2002>: java.net.SocketException: Connection
aborted by peer: JVM_recv in socket input stream re
ad
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
at java.io.DataInputStream.readLine(DataInputStream.java:444)
at weblogic.servlet.proxy.GenericProxyServlet.readStatus(GenericProxyServlet.java:532)
at weblogic.servlet.proxy.GenericProxyServlet.sendResponse(GenericProxyServlet.java:564)
at weblogic.servlet.proxy.GenericProxyServlet.service(GenericProxyServlet.java:277)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

- Third time displays
Not Found (404)
Original request: /test/test.jsp;JSESSIONID=e7z8se1qp1
Not found request: /test/test.jsp;JSESSIONID=e7z8se1qp1

Does anybody know why it works for the first time but not for the
subsequent requests. If I open a new browser window it works for the
first time but fails after.

Any help is appreciated
-Ravi R

0 new messages