[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21004#action_21004
 ] 

Hudson CI server commented on MAGNOLIA-2608:
--------------------------------------------

Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/blue.gif! 
[magnolia_main-trunk 
#671|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/671/]
     add an empty lib dir to avoid at least the NPE in freemarker taglib 
loading (, not fixed anyway)


> Tag library support in freemarker does't work with expanded jars
> ----------------------------------------------------------------
>
>                 Key: MAGNOLIA-2608
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2608
>             Project: Magnolia
>          Issue Type: Bug
>          Components: templating
>    Affects Versions: 4.0 M2
>            Reporter: Fabrizio Giustina
>            Assignee: Fabrizio Giustina
>
> freemarker can't load tag libraries when magnolia (magnolia/trunk) is run 
> inside eclipse. The magnolia webapp is run from the eclipse workspace, 
> without copying resources to a standard webapp layout (WEB-INF/lib doesn't 
> exists and taglib modules are not jarred).
> Unfortunately freemarker looks for taglib in a WEB-INF/lib folder explicitly 
> and dies with a NPE if the folder is missing:
> Caused by: java.lang.NullPointerException
>       at 
> freemarker.ext.jsp.TaglibFactory.getLocationsFromLibJars(TaglibFactory.java:290)
>       at 
> freemarker.ext.jsp.TaglibFactory.getMoreTaglibLocations(TaglibFactory.java:206)
>       at freemarker.ext.jsp.TaglibFactory.get(TaglibFactory.java:163)
> .. or simply complains about the missing taglib if an empty WEB-INF/lib 
> directory is created:
> freemarker.template.TemplateModelException: Could not find webapp resource 
> /cms-taglib
>       at freemarker.ext.jsp.TaglibFactory.loadTaglib(TaglibFactory.java:432)
>       at freemarker.ext.jsp.TaglibFactory.access$300(TaglibFactory.java:106)
>       at freemarker.ext.jsp.TaglibFactory$Taglib.load(TaglibFactory.java:414)
> (tried by simply adding the demo-project dependency to the empty webapp)
> unfortunately really annoying during development... 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to