-
1. Re: Possible to inherit a profile in AS 7 domain mode?
dbschofield Jul 13, 2011 8:07 PM (in response to dbschofield)Looking at the schema file jboss_7_0.xsd it appears that I should be able to use
<include profile="default"/>
So I added the following to the domain.xml
<profile name="new_profile">
<include profile="default"/>
</profile>in anticipation of having a new profile exactly like the default profile that I could start adding new subsystems to. When I start the domain controller I get the following exception:
[Host Controller] 18:33:24,570 ERROR [stderr] (Controller Boot Thread) Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration
[Host Controller] 18:33:24,570 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)
[Host Controller] 18:33:24,570 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:296)
[Host Controller] 18:33:24,571 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
[Host Controller] 18:33:24,571 ERROR [stderr] (Controller Boot Thread) ... 1 more
[Host Controller] 18:33:24,571 ERROR [stderr] (Controller Boot Thread) Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[520,2]
[Host Controller] 18:33:24,571 ERROR [stderr] (Controller Boot Thread) Message: Profile has no subsystem configurations
[Host Controller] 18:33:24,571 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.parsing.DomainXml.parseProfiles(DomainXml.java:484)
[Host Controller] 18:33:24,572 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.parsing.DomainXml.readDomainElement(DomainXml.java:192)
[Host Controller] 18:33:24,572 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.parsing.DomainXml.readElement(DomainXml.java:90)
[Host Controller] 18:33:24,572 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.parsing.DomainXml.readElement(DomainXml.java:82)
[Host Controller] 18:33:24,572 ERROR [stderr] (Controller Boot Thread) at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)
[Host Controller] 18:33:24,573 ERROR [stderr] (Controller Boot Thread) at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
[Host Controller] 18:33:24,573 ERROR [stderr] (Controller Boot Thread) at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)
[Host Controller] 18:33:24,573 ERROR [stderr] (Controller Boot Thread) ... 3 moreI added a subsystem just to see what I would get.
<profile name="new_profile">
<include profile="default"/>
<subsystem xmlns="urn:jboss:domain:ee:1.0"/>
</profile>This time the domain controller started up fine and I see my new profile in the console. However all the subsystems I would expect to be included from the default profile are not their. The console tells me "No manageable subsystems exist."
Any insight into properly including another profile would be greatly appreciated or have I stumbled upon a possible bug?
-
2. Re: Possible to inherit a profile in AS 7 domain mode?
kabirkhan Jul 14, 2011 4:20 AM (in response to dbschofield)We are discussing how best to deal with inherited/included profiles:
http://lists.jboss.org/pipermail/jboss-as7-dev/2011-June/002804.html
http://lists.jboss.org/pipermail/jboss-as7-dev/2011-July/002874.html
So although a /profile=new_profile:read-resource returns nothing you should see the i when doing a /profile=default:read-resource, and when doing a /host=master/server=your-server-using-new-profile. (I probably did not get the addresses 100% right but hope it makes sense anyway :-) )
-
3. Re: Possible to inherit a profile in AS 7 domain mode?
max.charas Sep 18, 2012 7:37 AM (in response to kabirkhan)Hey!
Does anyone know what happened to this?
I'm trying this in Jboss as 7.1.2 but the schema is not happy about the <include> inside a profile.
Best regards,
Max