[jboss-jira] [JBoss JIRA] (AS7-4642) mechanism to load tag libraries from module
Tomaz Cerar (JIRA)
jira-events at lists.jboss.org
Mon Jan 21 08:48:22 EST 2013
[ https://issues.jboss.org/browse/AS7-4642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749187#comment-12749187 ]
Tomaz Cerar commented on AS7-4642:
----------------------------------
I think this is just matter of configuring classloading trough jboss-deployment-structure.xml
take a look at https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
You would need something like this:
{noformat}
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<module name="my.module.that.has.tlds" >
<resources>
<resource-root path="jar-with-tlds-.jar" >
<filter>
<exclude path="path/to/tld/folder/**" />
</filter>
</resource-root>
</resources>
</module>
</deployment>
{noformat}
this would be bit different if you deploy ear app, but it should be something between this lines
> mechanism to load tag libraries from module
> -------------------------------------------
>
> Key: AS7-4642
> URL: https://issues.jboss.org/browse/AS7-4642
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Web
> Affects Versions: 7.1.1.Final
> Reporter: Ivica Loncar
> Assignee: Remy Maucherat
> Priority: Critical
> Labels: modules, tag, taglib, tld
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> tag libraries are scanned only if they appear in jar inside WEB-INF/lib or are defined in tld under WEB-INF.
> The simplest scenario to explain why this is a problem: portlet 2 defines standard portlet taglib, but the classes in this file come from concrete implementations. Currently I see no way to use 2 different portals in a portable way.
> Please provide a way to notify a relevant subsystem for web applications that specific module contains a .tld.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list