Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2
-
Fix Version/s: 1.2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
In web.xml inserted:
<servlet-mapping>
<servlet-name>xxx.Xxxyyy.Yyy/zzz</servlet-name>
<url-pattern>xxx.Xxxyyy.Yyy/zzz</url-pattern>
</servlet-mapping>
On deploy in Tomcat or Glassfish: bad uri-pattern
Please, change from "xxx.Xxxyyy.Yyy/zzz" to "/xxx.Xxxyyy.Yyy/zzz"
P.S.
The url-pattern specification:
- 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.
GwtWebInfProcessor.java (r10046)
124 servletMapping.addContent( servletName );
125 Element urlPattern = new Element( "url-pattern", ns );
-126 urlPattern.setText( d.getPath() );
+126 urlPattern.setText( "/"+d.getPath() );
127 servletMapping.addContent( urlPattern );
128 webapp.addContent( insertAfter, servletMapping );