Make GeoServer run in Oracle Application Server
-----------------------------------------------
Key: GEOS-1334
URL: http://jira.codehaus.org/browse/GEOS-1334
Project: GeoServer
Issue Type: Bug
Components: Global
Affects Versions: 1.6.0-beta2, 1.5.3
Reporter: Andrea Aime
Assignee: Andrea Aime
Priority: Minor
Fix For: 1.5.4, 1.6.0-beta4
Blaz Repnick provided these patches in order to make GeoServer run in Oracle Application Server:
{panel}
In srsList.jsp (at the bottom) you find this lines of script:
...
<bean:write property="<%= "srsIDList[" + idx + "]" %>" name="srsInfoForm"/>
...
<bean:write property="<%= "srsDefinitionList[" + idx + "]" %>" name="srsInfoForm"/></pre>
...
and this nested " are the source of the problem. the correct version is:
...
<bean:write property='<%= "srsIDList[" + idx + "]" %>' name="srsInfoForm"/>
...
<bean:write property='<%= "srsDefinitionList[" + idx + "]" %>' name="srsInfoForm"/></pre>
{panel}
and
{panel}
There's one more thing. In mainLayout.jsp there are lines that crash IAS/OC4J:
<%
GeoServer gs = (GeoServer) getServletContext().getAttribute(GeoServer.WEB_CONTAINER_KEY);
String baseUrl = Requests.getBaseJspUrl(request, gs);
%>
This is the fix. Works for all containers i tested:
<%
GeoServer gs = (GeoServer)getServletConfig().getServletContext().getAttribute(GeoServer.WEB_CONTAINER_KEY );
String baseUrl = Requests.getBaseJspUrl(request, gs);
%>
{panel}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira