users@glassfish.java.net

Re: Invalid URL-PATTERN when deploying application

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 Apr 2008 15:43:53 PDT

Though not obvious from the web.xml snippet you've provided, it seems that your URL pattern has leading and trailing spaces, which is what the deployment code (rightfully) complains about.

Can you remove them and redeploy?

The deployment code must not trim any URL patterns (to make them legal), since that would violate the servlet spec. See this comment about "url-patternType" in the web.xml schema:

  The container must preserve all characters including whitespaces.
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=271108