https://issues.apache.org/bugzilla/show_bug.cgi?id=56637
Bug ID: 56637 Summary: ServletContext.getResourceAsStream("resources/config.x ml") should return null instead of throwing exception Product: Tomcat 8 Version: 8.0.8 Hardware: PC Status: NEW Severity: regression Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: zhouyanm...@gmail.com if resource name is not starts with '/',tomcat8 will throws exception,and tomcat7 will return null. java.lang.IllegalArgumentException: The resource path [resources/config.xml] is not valid at org.apache.catalina.webresources.StandardRoot.validate(StandardRoot.java:237) at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:199) at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:193) at org.apache.catalina.core.ApplicationContext.getResourceAsStream(ApplicationContext.java:559) at org.apache.catalina.core.ApplicationContextFacade.getResourceAsStream(ApplicationContextFacade.java:209) according to http://docs.oracle.com/javaee/7/api/javax/servlet/ServletContext.html#getResourceAsStream(java.lang.String) it should return null instead of throwing exception. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org