Tomcat -> GlassFish: Leading/Trailing Spaces in URL This entry is based on this forum thread Problem : Trimming of leading/trailing spaces in a <url-pattern> in web.xml is not allowed by servlet specification. GlassFish enforces this constraint, while Tomcat and WebLogic. Thus, the deployment of a web app using a <url-pattern> with leading/trailing spaces will fail on GlassFish. Solution : Remove leading/trailing spaces from web.xml. |