Page 1 of 1

About Question com.enthuware.ets.scwcd.v5.2.454 :

Posted: Wed May 04, 2011 3:23 pm
by max2fl
Hi,

<jsp-property-group>
<url-pattern>/jsp/*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>

Tomcat 5.33 & Glassfish 3.1
Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: PWC1304: Invalid <url-pattern> /jsp/*.jsp in servlet mapping. Please see server.log for more details.

Correct answer: incorrect syntax of DD file

Re: About Question com.enthuware.ets.scwcd.v5.2.454 :

Posted: Wed May 04, 2011 7:57 pm
by admin
Why should this mapping be invalid?

Re: About Question com.enthuware.ets.scwcd.v5.2.454 :

Posted: Thu May 05, 2011 12:54 pm
by max2fl
because of Java™ Servlet Specification Version 2.4

SRV.11.2 Specification of Mappings
In theWeb application deployment descriptor, the following syntax is used to define
mappings:
• A string beginning with a ‘/’ character and ending with a ‘/*’ suffix is used
for path mapping.
A string beginning with a ‘*.’ prefix is used as an extension mapping.
• A string containing only the ’/’ character indicates the "default" servlet of
the application. In this case the servlet path is the request URI minus the context
path and the path info is null.
• All other strings are used for exact matches only.


You can't use template with leading / and * in the middle
moreover in my first post there are two error messages from web containers Tomcat and Glassfish