You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "lucols (JIRA)" <ji...@apache.org> on 2007/08/23 04:04:30 UTC

[jira] Updated: (GERONIMO-3438) context-root error

     [ https://issues.apache.org/jira/browse/GERONIMO-3438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

lucols updated GERONIMO-3438:
-----------------------------

          Component/s: Tomcat
          Description: 
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


          Environment: 
debian 3.1/4.0   
sun jdk 1.5.0_11-b03 
apache 2.0.59/2.2.4
    Affects Version/s: 2.1

> 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.