mardi 16 juin 2015

Invalid url-pattern in web.xml

The web.xml for the rssbus AS2 connector web application uses the invalid url-pattern /**

<web-resource-collection>
  <web-resource-name>Appuser Resource</web-resource-name>
  ...
  <url-pattern>/**</url-pattern>
  <url-pattern>/*</url-pattern>
</web-resource-collection>

JBoss 6 throws a deployment exception:

 Deployment "vfs:///C:/Java/jboss-6.1.0.Final/server/default/deploy/rssbus.war"
 is in error due to the following reason(s): java.lang.IllegalArgumentException:
 1: URLPatternList item: /** matches: /*

Is this just a bug or does it work with some containers? The application file (war) is more than six months old and I can not imagine this has not been discovered (and fixed) yet.

Aucun commentaire:

Enregistrer un commentaire