Monday, June 05, 2006

Glassfish and Invalid URL Pattern

I was attempting to deploy WebLearn to the Glassfish application server and was gettting the error "Invalid URL Pattern" for /site/* which is used in various places in our web.xml configuration file. It turns out Glassfish doesn't like extra whitespace in it's url-patterns and we had things like: <url-pattern>   /site/* </url-pattern> when they need to be: <url-pattern>/site/*</url-pattern> I've got the web.xml fixed on WebLearn and will push it across to Bodington at shortly.

1 comment:

Randy said...

Oh my achin' bacon - I just spent hours whacking myself on the side of the head because an app would not deploy because of whitespace in the mapping. Your little comment REALLY helped - thanks!