]
Stuart Douglas reassigned AS7-3280:
-----------------------------------
Assignee: Stuart Douglas (was: David Lloyd)
Dependency attribute optional="true" is ignored for
deployment modules
----------------------------------------------------------------------
Key: AS7-3280
URL:
https://issues.jboss.org/browse/AS7-3280
Project: Application Server 7
Issue Type: Bug
Components: Class Loading
Affects Versions: 7.1.0.CR1b
Reporter: Robert Reimann
Assignee: Stuart Douglas
Setting optional="true" on a deployment module dependency in
jboss-deployment-structure.xml is ignored. Allthough the dependency is declared as
optional the dependent WAR fails when the optional dependency isn't present.
The issue is not limited to subdeployment dependencyies (as described in AS7-2832) or
additional dependencies (as described in
https://community.jboss.org/message/646012). Even
the simple form of optional dependency inclusion fails for deployment modules:
{code:xml}
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="org.apache.log4j" />
<module name="deployment.not-yet-existing.jar"
optional="true" />
</dependencies>
</deployment>
</jboss-deployment-structure>
{code}
{code}
07:05:02,550 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774:
Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.module.spec.service."deployment.not-yet-existing.jar".main
(missing)
dependents: [service
jboss.deployment.unit."jboss-as-log4jdemo.war".POST_MODULE, service
jboss.module.service."deployment.jboss-as-log4jdemo.war".main]
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: