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 03:48:31 UTC

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

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)
            Reporter: lucols




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "lucols (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523729 ] 

Paul McMahan commented on GERONIMO-3438:
----------------------------------------

if you provide an empty context root in your plan then it will default to '/'.  Is there a different behavior that you are expecting?  For example, when you specify an empty context root what would you expect a URL to look like that accesses resources in your webapp.   In the URL that you have provided above - http://hostname:8080/index.jsp - the context root is '/'.

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


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

Posted by "lucols (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "lucols (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523146 ] 

lucols commented on GERONIMO-3438:
----------------------------------

any one can help?

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