简体   繁体   中英

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.

This was a url-pattern supported by Spring and other web servlet containers such as Jetty but has since been marked as a bug and fixed in the AS2 Connector. You can download the latest version to run on JBoss.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM