geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chi runhua <chirun...@gmail.com>
Subject Re: [jira] Commented: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME
Date Wed, 27 Oct 2010 03:26:51 GMT
The patch was applied to G30 cause JAVA_AGENT is quoted in the geronimo
script. And the exec statement is as followed:.

/opt/sun/jdk1.6.0_18/jre/bin/java -Xmx256m -XX:MaxPermSize=128m
-javaagent:/home/jeffchi/Documents/Geronimo/test/Document and
setting/g30/lib/agent/transformer.jar -Dkaraf.startLocalConsole=true
-Dkaraf.startRemoteShell=false
-Dorg.apache.geronimo.home.dir=/home/jeffchi/Documents/Geronimo/test/Document
and setting/g30 -Dkaraf.home=/home/jeffchi/Documents/Geronimo/test/Document
and setting/g30 -Dkaraf.base=/home/jeffchi/Documents/Geronimo/test/Document
and setting/g30
-Djava.util.logging.config.file=/home/jeffchi/Documents/Geronimo/test/Document
and setting/g30/etc/java.util.logging.properties
-Djava.endorsed.dirs=/home/jeffchi/Documents/Geronimo/test/Document and
setting/g30/lib/endorsed:/opt/sun/jdk1.6.0_18/jre/lib/endorsed
-Djava.ext.dirs=/home/jeffchi/Documents/Geronimo/test/Document and
setting/g30/lib/ext:/opt/sun/jdk1.6.0_18/jre/lib/ext
-Djava.io.tmpdir=var/temp -classpath
/home/jeffchi/Documents/Geronimo/test/Document and
setting/g30/lib/commons-cli.jar:/home/jeffchi/Documents/Geronimo/test/Document
and
setting/g30/lib/geronimo-cli.jar:/home/jeffchi/Documents/Geronimo/test/Document
and
setting/g30/lib/geronimo-hook.jar:/home/jeffchi/Documents/Geronimo/test/Document
and
setting/g30/lib/geronimo-main.jar:/home/jeffchi/Documents/Geronimo/test/Document
and
setting/g30/lib/geronimo-rmi-loader.jar:/home/jeffchi/Documents/Geronimo/test/Document
and setting/g30/lib/karaf-jaas-boot.jar
org.apache.geronimo.cli.daemon.DaemonCLI

If I put quotation marks over each argument, the server starts up
successfully.  However, each of variables in geronimo script is written as
"$GERONIMO_HOME" or so.


Could anyone shed any light on me?

Jeff



And I found out another problem in the geronimo script is

On Tue, Oct 26, 2010 at 5:49 PM, Shawn Jiang (JIRA) <jira@apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924909#action_12924909]
>
> Shawn Jiang commented on GERONIMO-5661:
> ---------------------------------------
>
> There's a similar issue that was fixed in 22 branch before.   I guess the
> fix there could also fix this problem.
>
> https://issues.apache.org/jira/browse/GERONIMO-4389
>
> > Geronimo fails to start when there is a whitespace in Geronimo_HOME
> > -------------------------------------------------------------------
> >
> >                 Key: GERONIMO-5661
> >                 URL: https://issues.apache.org/jira/browse/GERONIMO-5661
> >             Project: Geronimo
> >          Issue Type: Bug
> >      Security Level: public(Regular issues)
> >          Components: commands
> >    Affects Versions: 3.0
> >         Environment: Ubuntu 9.04+Sun JDK 1.6.0_18
> >            Reporter: Chi Runhua
> >
> > Geronimo 2.2.1 works fine when there is a whitespace within GERONIMO_HOME
> while G3.0 fails to start.
> >
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > jeffchi@ubuntu:~/Documents/Geronimo/test/Document and setting/g30/bin$
> ./geronimo run
> > Using GERONIMO_HOME:   /home/jeffchi/Documents/Geronimo/test/Document and
> setting/g30
> > Using GERONIMO_TMPDIR: var/temp
> > Using JRE_HOME:        /opt/sun/jdk1.6.0_18/jre
> > Exception in thread "main" java.lang.NoClassDefFoundError: and
> > Caused by: java.lang.ClassNotFoundException: and
> >       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> >       at java.security.AccessController.doPrivileged(Native Method)
> >       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> >       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >       at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> > Could not find the main class: and.  Program will exit.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Mime
View raw message