JBoss to GlassFish : taglib-location
Recently, I came across the following JBoss -> GlassFish migration
issue involving taglib-location in web.xml. Here is how I dealt with
In a web-application's web.xml,
to provide configuration information for JSP files. The following
fragment works on JBoss 4.3 (or so it was indicated to me)
But on GlassFish v2, the web application's deployment to failed
with the following exception in GlassFish server.log file.
javax.servlet.ServletException: PWC3039: Invalid TLD resource path /WEB-INF/WEB-INF/example-html.tld
To fix error, prefix a / to taglib-location
So is a leading / for taglib-location *required* ? After browsing
through JSP & Servlet specs and xml schema files I interpreted that a
/ is not required but recommended. But I will defer to the Servlet
spec lead for a more definite answer.