-
1. Re: Create profile via CLI
jaikiran Sep 9, 2011 5:52 AM (in response to chrishiner)1 of 1 people found this helpfulIt throws
[Host Controller] Caused by: java.lang.IllegalArgumentException
[Host Controller] at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:124) [jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
[Host Controller] at org.jboss.dmr.ModelNode.keys(ModelNode.java:1085) [jboss-dmr-1.0.0.Final.jar:1.0.0.Final]
[Host Controller] at org.jboss.as.controller.parsing.DomainXml.writeProfile(DomainXml.java:502) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
trying to get the subsystems for the profile. Looks like a bug.
-
2. Re: Create profile via CLI
chrishiner Sep 13, 2011 9:49 AM (in response to jaikiran)AS7-1801 created.
-
3. Re: Create profile via CLI
chrishiner Sep 13, 2011 12:30 PM (in response to chrishiner)From http://community.jboss.org/thread/172245, workaround using a batch:
batch
/profile=exampleprofile:add()
/profile=exampleprofile/subsystem=ee:add()
run-batch
-
4. Re: Create profile via CLI
mustaq.pradhan Feb 18, 2013 8:50 PM (in response to chrishiner)Is there a way to create a profile based on another existing profile, something like /profile=dummy:add(includes=ha)? [as on your post]
I get "Operation 'add' does not expect any property."
-
5. Re: Create profile via CLI
chrishiner Feb 21, 2013 11:24 AM (in response to mustaq.pradhan)There used to be an option to do that but it looks like it disappeared from the XML schema between jboss-as-config_1_0.xsd and jboss-as-config_1_1.xsd.
It had some limitations, such as you couldn't override subsystem configurations from the included profile.
I just create the entire profile and related server configuration programmatically through the CLI from scratch for each deployment.