You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/12/25 07:34:47 UTC

DO NOT REPLY [Bug 48443] New: when the context path is empty,tomcat will startup with a FileNotFoundException

https://issues.apache.org/bugzilla/show_bug.cgi?id=48443

           Summary: when the context path is empty,tomcat will startup
                    with a FileNotFoundException
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: wujunchen@gmail.com


Created an attachment (id=24756)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24756)
fix the resource form when the <contextpath> is empty

I deploy my app in tomcat without any context path,
i.e. the url of index.jsp of my app is: http://localhost/index.jsp,but not
http://localhost/myapp/index.jsp.
When tomcat startup,there is a FileNotFoundException:
The connection created for URL [jndi:/localhost/WEB-INF/classes] was not a
DirContextURLConnection
java.io.FileNotFoundException
    at
org.apache.naming.resources.DirContextURLConnection.list(DirContextURLConnection.java:436)
    at
org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1602)
    at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1518)
    at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1264)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:928)


because in this condition,the resource form should be /<hostname>/filename
instead of /<hostname>/<contextpath>/filename

I attachment a patch which can works fine for me.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48443] when the context path is empty,tomcat will startup with a FileNotFoundException

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48443

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-12-30 01:24:44 GMT ---
Many thanks for the patch. It has been applied to trunk and will be included in
7.0.0 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org