Maven 2.x GWT Plugin

bad uri-pattern in web.xml

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2
  • Fix Version/s: 1.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
batal added a comment -

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 );

Show
batal added a comment - 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 );
Hide
nicolas de loof added a comment -

Completed: At revision: 11426

Show
nicolas de loof added a comment - Completed: At revision: 11426

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: