[jboss-jira] [JBoss JIRA] (WFLY-3419) beans in module jars are not discovered except the first jar in module

Petr Sakař (JIRA) issues at jboss.org
Fri May 30 05:43:15 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-3419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Petr Sakař updated WFLY-3419:
-----------------------------

    Description: 
CDI does not scan module with multiple jars. Only first jar is scanned.

Workaround is to package everything in single jar file.

To reproduce:
{CODE}
#download attached files
#download and unzip wildfly
cd wildfly-9.0.0.Alpha1-SNAPSHOT #or other version > 8.0.0
unzip ../module.multiplejars.zip
cp ../servlet-cdi-test3.war standalone/deployments/
./bin/standalone.sh
# observe deployment fails
# stop server
unzip ../module.ok.zip
./bin/standalone.sh
# observe deployment succeeds
{CODE}

The same scenario succeeds in both cases on EAP 6.2.x.

module.ok.zip was created from module.multiplejars.zip by merging jar files into single one


> beans in module jars are not discovered except the first jar in module
> ----------------------------------------------------------------------
>
>                 Key: WFLY-3419
>                 URL: https://issues.jboss.org/browse/WFLY-3419
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: CDI / Weld
>    Affects Versions: 8.0.0.Final, 8.1.0.Final
>            Reporter: Petr Sakař
>            Assignee: Jason Greene
>
> CDI does not scan module with multiple jars. Only first jar is scanned.
> Workaround is to package everything in single jar file.
> To reproduce:
> {CODE}
> #download attached files
> #download and unzip wildfly
> cd wildfly-9.0.0.Alpha1-SNAPSHOT #or other version > 8.0.0
> unzip ../module.multiplejars.zip
> cp ../servlet-cdi-test3.war standalone/deployments/
> ./bin/standalone.sh
> # observe deployment fails
> # stop server
> unzip ../module.ok.zip
> ./bin/standalone.sh
> # observe deployment succeeds
> {CODE}
> The same scenario succeeds in both cases on EAP 6.2.x.
> module.ok.zip was created from module.multiplejars.zip by merging jar files into single one



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)



More information about the jboss-jira mailing list