[
https://issues.apache.org/jira/browse/GERONIMO-3438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525587
]
lucols commented on GERONIMO-3438:
----------------------------------
"/" is not my expecting. In geronimo-jetty-xx ,the result is " " ,not "/" .
And in tomcat the result is " " ,not "/". I mean IS NOT IMPORT that the
context root is " " or "/ " , the import is geronimo-tomcat process context
root is different from geronimo-jetty or tomcat , ans so when you use
forward like this <jsp:forward page="/test.jsp"/>, the result context root is
not you expecting.
> context-root error
> ------------------
>
> Key: GERONIMO-3438
> URL: https://issues.apache.org/jira/browse/GERONIMO-3438
> Project: Geronimo
> Issue Type: Sub-task
> Security Level: public(Regular issues)
> Components: Tomcat
> Affects Versions: 2.1
> Environment: debian 3.1/4.0
> sun jdk 1.5.0_11-b03
> apache 2.0.59/2.2.4
> Reporter: lucols
>
> In geronimo-web.xml , I configure context-root to nothing , like this :
> <context-root></context-root>
> thr problem is : i got then contextPath is "/" ,not expected " ", so error
> occur: the web container cannot right lookup the file.
> you can test like this:
> index.jsp:
> <jsp:forward page="/test.jsp"/>
> test.jsp:
> <%
> out.println("request context:"+request.getContextPath());
> %>
> geronimo-web.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app
> xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
> ...
> <context-root></context-root>
> </web-app>
> after deploy, test this in IE broswer:
> http://hostname:8080/index.jsp
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.