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 2005/04/15 06:50:27 UTC

DO NOT REPLY [Bug 34465] New: - jasper2 fails when there is no web.xml

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34465>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34465

           Summary: jasper2 fails when there is no web.xml
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Yoichi.Hirose@fujixerox.co.jp


When running jasper2 from ant, and there is no web.xml under root/WEB-INF,
jasper2 fails with a FileNotFoundException. Since, this worked correctly under
5.5.7, it seems to be a bug.

The actual place which causes the problem is in
org.apache.jasper.compiler.JspConfig#processWebDotXml(). The code in 5.5.7 was
            is = ctxt.getResourceAsStream(WEB_XML);
            if (is == null) {
                // no web.xml
                return;
            }
and in 5.5.9,
            URL uri = ctxt.getResource(WEB_XML);
            if (uri == null) {
                // no web.xml
                return;
            }
ctxt.getResource(WEB_XML) returns a non-null value even if there is no web.xml
existing, so ths next uri.openStream() raises a FileNotFoundException.

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

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