[
http://jira.jboss.com/jira/browse/JBAS-5240?page=all ]
Mladen Turk reopened JBAS-5240:
-------------------------------
In general both posix and windows scripts are broken if
JAVA_OPTS contains quoted param.
export JAVA_OPTS=-Djboss.foo="some param"
./run.sh
Exception in thread "main" java.lang.NoClassDefFoundError:
value
Caused by: java.lang.ClassNotFoundException: value
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
This is caused by -Djboss.java.opts="$(JAVA_OPTS)"
so if JAVA_OPTS contains quoted string one has invalid
command line cause its evaluated to:
-Djboss.java.opts="-server -Djboss.foo="some value""
So you have value" as main class, and that sucks :)
The solution would be to escape the $JAVA_OPTS for usage
in -Djboss.java.opts.
log $JAVA_OPTS in boot.log, by setting the 'jboss.java.opts'
environment variable at start-up
---------------------------------------------------------------------------------------------
Key: JBAS-5240
URL:
http://jira.jboss.com/jira/browse/JBAS-5240
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Other
Affects Versions: JBossAS-5.0.0.Beta4, JBossAS-4.2.2.GA
Reporter: Galder Zamarreno
Assigned To: Galder Zamarreno
Priority: Critical
Fix For: JBossAS-5.0.0.CR1, JBossAS-4.2.3.GA
To help remote support, AS should by default log command line options
within boot.log as explained in " Logging command line options in boot.log"
section in
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossBootLogging
Thoughts?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira