Whitespace before JVM argument prevents JBoss from starting
Issue
If I have white-space before a JVM argument in my host.xml's <jvm-options>, JBoss does not start and I receive the error message below.
<server name="server-one" group="main-server-group">
<jvm name="default">
<jvm-options>
<option value=" -XX:HeapDumpPath=/tmp/"/>
</jvm-options>
</jvm>
</server>
17:01:26,218 INFO [org.jboss.as.process.Server:server-one.status] (ProcessController-threads - 3) JBAS012017: Starting process 'Server:server-one'
[Server:server-one] Listening for transport dt_socket at address: 8787
[Server:server-one] Error: Could not find or load main class -XX:HeapDumpPath=.tmp.
17:01:26,766 INFO [org.jboss.as.process.Server:server-one.status] (reaper for Server:server-one) JBAS012010: Process 'Server:server-one' finished with an exit status of 1
Environment
- Red Hat JBoss Enterprise Application Platform
- 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
