FileNotFoundException when using Facelets tagfile

前端 未结 1 990
你的背包
你的背包 2021-01-24 13:07

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:



        
相关标签:
1条回答
  • 2021-01-24 13:16

    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.

    0 讨论(0)
提交回复
热议问题