[jboss-jira] [JBoss JIRA] (AS7-4303) domain/host.xml cannot be parsed when a <variable> is defined under <jvm><environment-variables>

Michael Voegele (JIRA) jira-events at lists.jboss.org
Tue Mar 27 08:46:48 EDT 2012


Michael Voegele created AS7-4303:
------------------------------------

             Summary: domain/host.xml cannot be parsed when a <variable> is defined under <jvm><environment-variables>
                 Key: AS7-4303
                 URL: https://issues.jboss.org/browse/AS7-4303
             Project: Application Server 7
          Issue Type: Bug
          Components: Server
    Affects Versions: 7.1.1.Final
         Environment: Win
            Reporter: Michael Voegele
            Assignee: Jason Greene


Executing following dmr operation is successful:
{code:xml}
{
    "operation" => "add",
    "address" => [
        ("host" => "master"),
        ("server-config" => "server-1"),
        ("jvm" => "default")
    ]
    "java-home" => "C:/eplatform/java/jdk1.7.0",
    "heap-size" => "128m",
    "max-heap-size" => "256m",
    "permgen-size" => "64m",
    "max-permgen-size" => "128m",
    "stack-size" => "512k",
    "environment-variables" => [{"foo" => "bar"}]
}
{code}

and results in following xml:
{code:xml}
<jvm name="default" java-home="C:/eplatform/java/jdk1.7.0">
    <heap size="128m" max-size="256m"/>
    <permgen size="64m" max-size="128m"/>
    <stack size="512k"/>
    <environment-variables>
        <variable name="foo" value="bar"/>
    </environment-variables>
</jvm>
{code}

but the server (domain mode) cannot be (re)started anymore and results in following exception:
{code}
[Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[51,21]
[Host Controller] Message: JBAS014789: Unexpected element '{urn:jboss:domain:1.2}variable' encountered
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list