Saturday, May 2, 2009

facelets and jboss 5.0.1

jboss 5 has lots of problems (i've read somewhere... that @Resource is bugged...)... tonight i've found that facelets 1.1.14 doesn't work on this application server... it's required (as shown here) a simple hack:

unjar facelets to get tag libraries definitions, put them under WEB-INF/tags of the war file, register them in the web.xml as a context parameter:

<description>Hack to let facelets in JB5 :(</description>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/tags/jsf-ui.taglib.xml;/WEB-INF/tags/jsf-core.taglib.xml;/WEB-INF/tags/jsf-html.taglib.xml;</param-value>
</context-param>

this hack doesn't affect deployment under glassfish, but it's quite boring... btw, also glassfish logs this NullPointer... but they are not blocking issues (even if they're shown as FATAL).

No comments: