Details
Description
Basically we have one EAR file, the structure is like below:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4">
<description>BNNP ear</description>
<display-name>bnnp-ear</display-name>
<module>
<web>
<web-uri>url-filter-1.0-SNAPSHOT.war</web-uri>
<context-root>/BNNP-QA</context-root>
</web>
</module>
<module>
<web>
<web-uri>bnnp-ui-1.0-SNAPSHOT.war</web-uri>
<context-root>/BNNP-QA/DESKTOP</context-root>
</web>
</module>
<module>
<web>
<web-uri>bnnp-mobile-ui-1.0-SNAPSHOT.war</web-uri>
<context-root>/BNNP-QA/MOBILE</context-root>
</web>
</module>
</application>
The url-filter application will decide where to redirect the incoming http request based on the user-agent http header. If it is from a handheld device, it will redirect to /BNNP-QA/MOBILE, otherwise to /BNNP-QA/DESKTOP. Of these, only the desktop application is using the ICEFaces framework. Now the problem is that for some reason, when the iced2d.js javascript posts the request to the ICEFaces block servlet when the page is loaded, it removes the "/" between BNNP-QA and DESKTOP, so that the context root becomes /BNNP-QADESKTOP which is obviously wrong and subsequently causes a "Network Connection Interrupted" every 3 minutes.
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" version="1.4">
<description>BNNP ear</description>
<display-name>bnnp-ear</display-name>
<module>
<web>
<web-uri>url-filter-1.0-SNAPSHOT.war</web-uri>
<context-root>/BNNP-QA</context-root>
</web>
</module>
<module>
<web>
<web-uri>bnnp-ui-1.0-SNAPSHOT.war</web-uri>
<context-root>/BNNP-QA/DESKTOP</context-root>
</web>
</module>
<module>
<web>
<web-uri>bnnp-mobile-ui-1.0-SNAPSHOT.war</web-uri>
<context-root>/BNNP-QA/MOBILE</context-root>
</web>
</module>
</application>
The url-filter application will decide where to redirect the incoming http request based on the user-agent http header. If it is from a handheld device, it will redirect to /BNNP-QA/MOBILE, otherwise to /BNNP-QA/DESKTOP. Of these, only the desktop application is using the ICEFaces framework. Now the problem is that for some reason, when the iced2d.js javascript posts the request to the ICEFaces block servlet when the page is loaded, it removes the "/" between BNNP-QA and DESKTOP, so that the context root becomes /BNNP-QADESKTOP which is obviously wrong and subsequently causes a "Network Connection Interrupted" every 3 minutes.
Another customer is facing this same issue.
If they deploy their ICEFaces application with a sub context root, the second slash is removed and they receive "Network Connection Interrupted" warnings in the browser as well as server push failing to work. For example, if their context root is myApp/SubContext, they see the following in firebug:
POST
http://locahost:8080/myAppSubContext/block/receive-updated-views 404 Not Found 28ms
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /myAppSubContext/block/receive-updated-views was not found on this server.<P> <HR> <ADDRESS>Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server Server at .........</ADDRESS> </BODY></HTML>