I\'m trying to run the example ch05 from the \"Core JavaServer Faces\" Book (http://horstmann.com/corejsf/)
After logging in I get the following message:
I was experiencing the same problem, my project (Glassfish 4 + Spring + EJB 3 + JSF 2.2 + Custom Tags) was running fine on my local Glassfish and on a staging server, but on Production it was throwing an exception TagException: /WEB-INF/templates/common.xhtml @38,33 <app:div> null
.
After a lot of debugging we found out the problem. If your Glassfish have more than one virtual server configured and your project is deployed and associated with 2 or more, the JSF lib reads the sources files through the current host name you are accessing it, however for custom facelets tags it reads through a different virtual server (probably a bug) and throws a FileNotFoundException
(suppressed by TagException
).
If you configure your deployed project to only one virtual server, this problem does not occur.