[
https://jira.jboss.org/jira/browse/JBAS-7736?page=com.atlassian.jira.plug...
]
Brian Stansberry commented on JBAS-7736:
----------------------------------------
This is due to the following in MergedJBossWebMetaDataDeployer.deploy()
// Augment with meta data from fragments and annotations from the corresponding
JAR
for (String jar : order)
{
WebFragmentMetaData webFragmentMetaData = webFragments.get(jar);
if (webFragmentMetaData == null)
{
webFragmentMetaData = new WebFragmentMetaData();
}
key = AnnotationMetaDataDeployer.WEB_ANNOTATED_ATTACHMENT_NAME + ":" +
jar;
WebMetaData jarAnnotatedMetaData = unit.getAttachment(key, WebMetaData.class);
if ((isComplete || webFragmentMetaData.isMetadataComplete()) &&
jarAnnotatedMetaData != null)
{
// Discard @WebFilter, @WebListener and @WebServlet
jarAnnotatedMetaData.setFilters(null);
jarAnnotatedMetaData.setFilterMappings(null);
jarAnnotatedMetaData.setListeners(null);
jarAnnotatedMetaData.setServlets(null);
jarAnnotatedMetaData.setServletMappings(null);
}
if (jarAnnotatedMetaData != null)
{
// Merge annotations corresponding to the JAR
webFragmentMetaData.augment(jarAnnotatedMetaData, null, true);
}
// Merge fragment meta data according to the conflict rules
try
{
mergedFragmentMetaData.augment(webFragmentMetaData, specMetaData, false); //
PROBLEM IS HERE!!!
}
catch (Exception e)
{
DeploymentException.rethrowAsDeploymentException("Deployment error
processing fragment for JAR: " + jar, e);
}
}
The line marked above with // PROBLEM IS HERE!!! results in this, which clears the
distributable status from specMetaData:
public void augment(WebCommonMetaData webFragmentMetaData, WebCommonMetaData
webMetaData, boolean resolveConflicts)
{
// Distributable
if (!resolveConflicts && webFragmentMetaData.getDistributable() == null
&& webMetaData != null)
{
webMetaData.setDistributable(null);
}
weld-numberguess example doesn't work with jboss-6.0.0.M2 in
cluster
--------------------------------------------------------------------
Key: JBAS-7736
URL:
https://jira.jboss.org/jira/browse/JBAS-7736
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: JBossAS-6.0.0.M2
Environment: JBoss AS 6.0.0.M2, Weld 1.0.1 CR2
Reporter: Martin Gencur
Session replication doesn't work in WELD using JBoss AS 6.0.0.M2. More description
how to run weld-numberguess example in cluster is in linked issue (except using JBoss AS
6.0.0.M2 instead of 6.0.0.M1).
Additional tested configurations:
1) JBoss 6.0.0.M1 updated with current trunk of WELD (works fine !!)
2) JBoss 6.0.0.M2 updated with current trunk of WELD - doesn't work, after going to
second browser to test session replication the application starts from scratch and
doesn't continue with current session. The jboss AS's console doesn't output
any error message
3) JBoss 6.0.0.M2 updated with WELD 1.0.1 CR2 - the same as 2)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira