geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lucols (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-3438) context-root error
Date Thu, 23 Aug 2007 02:04:30 GMT

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


Mime
View raw message