tomcat error with web-xml include-prelude url-pattern
807569Jul 15 2006 — edited Jul 16 2006Hi, I am getting web-xml parse error with Tomcat 5.5.17 startup when using include-prelude with url-pattern like /jsps/*.jsp. However it works fine if I don't use path in the url-pattern <url-pattern>*,jsp</url-pattern>
is this a tomcat bug? JSP 2.0 specs says it should work. please hlp
here's part of my web.xml that don't work
<jsp-property-group>
<url-pattern>/jsps/*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<scripting-invalid>false</scripting-invalid>
<include-prelude>/WEB-INF/jspf/prelude.jspf</include-prelude>
<include-coda>/WEB-INF/jspf/coda.jspf</include-coda>
</jsp-property-group>
</jsp-config>
this works if I change the <url-pattern> to just *.jsp
here's the tomcat error:
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> /webapp/jsps/*.jsp in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2292)
at org.apache.catalina.core.StandardContext.addJspMapping(StandardContext.java:2129)
... 57 more
Jul 16, 2006 3:09:15 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
SEVERE: Parse error in application web.xml file at jndi:/localhost/webapp/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /webapp/jsps/*.jsp in servlet mapping