[jboss-jira] [JBoss JIRA] (WFLY-1854) web-fragment.xml not loaded from a static module
Marek Schmidt (JIRA)
jira-events at lists.jboss.org
Fri Aug 9 03:19:26 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795947#comment-12795947 ]
Marek Schmidt commented on WFLY-1854:
-------------------------------------
Having just this:
{code}
<module name="org.jboss.solder" >
<imports>
<include path="META-INF/**" />
</imports>
</module>
{code}
doesn't work at all, as CDI doesn't work.
Having this:
{code}
<module name="org.jboss.solder" meta-inf="import">
<imports>
<include path="META-INF/**" />
</imports>
</module>
{code}
doesn't seem to have any effect and behaves the same as with just the meta-inf="import".
The https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7 document says about the meta-inf:
{quote}
In general this will not cause any deployment descriptors in META-INF to be processed, with the exception of beans.xml.
{quote}
So it seems that it is either a known issue or by design that only beans.xml works this way.
> web-fragment.xml not loaded from a static module
> ------------------------------------------------
>
> Key: WFLY-1854
> URL: https://issues.jboss.org/browse/WFLY-1854
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.0.0.Alpha3
> Reporter: Marek Schmidt
> Assignee: Stuart Douglas
> Attachments: WFLY-1854.tar
>
>
> Having a custom static module, e.g. org/jboss/solder which contains solder.jar with META-INF/web-fragment.xml with some filters defined (e.g. CatchExceptionFilter)
> and a WAR application, e.g. catch-basic-servlet (on of Solder examples) with jboss-deployment-structure.xml such as
> {code}
> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
> <deployment>
> <dependencies>
> <module name="org.jboss.solder" meta-inf="import"/>
> </dependencies>
> </deployment>
> </jboss-deployment-structure>
> {code}
> The filters defined in the solder's web-fragment.xml don't seem to work, while the same app works fine if the solder.jar is deployed in the WAR in the WEB-INF/lib instead of a static module.
> People seem to assume that whatever works for WEB-INF/lib would also work for a static module. This assumption should either be fulfilled or clearly explained to people if it doesn't hold.
--
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