Bug 1039699
Summary: | [GSS] (6.2.x) Cannot use deployments with same runtime-name in a domain | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | dereed | |
Component: | Domain Management | Assignee: | Brian Stansberry <brian.stansberry> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> | |
Severity: | urgent | Docs Contact: | Russell Dickenson <rdickens> | |
Priority: | unspecified | |||
Version: | 6.2.0 | CC: | bmaxwell, cdewolf, emuckenh, jawilson, myarboro, nziakova, smumford, tim.einmahl | |
Target Milestone: | CR1 | |||
Target Release: | EAP 6.2.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
The code used to parse a domain.xml file was incorrectly validating that all runtime-name configuration values were unique across all deployments in the domain. This was incorrect, as these values only need to be unique within a set of deployments mapped to a server group.
Using two deployments with the same runtime-name in the domain (for example, two different versions of the same deployment) would result in a fatal boot error if the domain controller was restarted, with output like this in the host controller log:
JBAS010932: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
...
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1348,9]
...
Message: JBAS014664: An element of this type named 'foo' has already been declared
The scope of XML parser validation of runtime-name uniqueness has been limited to an individual server group. Post-parsing validation of the management configuration model has also been improved to exclude deployments marked as not enabled. Restarting a domain controller whose config includes two deployments with the same runtime-name now works.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1040621 (view as bug list) | Environment: | ||
Last Closed: | 2014-02-24 20:14:16 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1040621 | |||
Bug Blocks: | 1027004, 1040681 |
Description
dereed
2013-12-09 20:16:13 UTC
Copy/paste error in the error message in the previous comment (that error was from a test with a different runtime-name). The actual error message is "An element of this type named 'bar' has already been declared" for the listed test case. The BZ 983980 fix also introduces a regression in the behavior of standalone servers. The check for a unique runtime name should only involve deployments that are enabled. Marking for inclusion in the 6.2.1 Release Notes documentation. Verified with 6.2.1.CP.CR1-patch. |