You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Chi Runhua (JIRA)" <ji...@apache.org> on 2010/10/26 03:42:21 UTC

[jira] Created: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

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.


Re: [jira] Commented: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by chi runhua <ch...@gmail.com>.
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) <ji...@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.
>
>

[jira] Commented: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925298#action_12925298 ] 

Shawn Jiang commented on GERONIMO-5661:
---------------------------------------

Patch applied to trunk@r1027852.   Thanks Viola.

Chi RunHua,

Could you please verify if this JIRA could be closed ?





> 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
>            Assignee: viola.lu
>         Attachments: G5661.patch
>
>
> 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.


[jira] Commented: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925679#action_12925679 ] 

Shawn Jiang commented on GERONIMO-5661:
---------------------------------------

Thanks Viola, the additional patch was applied in trunk@r1028173

> 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
>            Assignee: viola.lu
>         Attachments: G5661.patch, G5661_ALL.patch
>
>
> 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.


[jira] Updated: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated GERONIMO-5661:
-------------------------------

    Attachment: G5661_ALL.patch

I find out that deploy, client have the same problem, so update all files.
Pls apply it.Thanks.

> 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
>            Assignee: viola.lu
>         Attachments: G5661.patch, G5661_ALL.patch
>
>
> 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.


[jira] Closed: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "Chi Runhua (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chi Runhua closed GERONIMO-5661.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

The problem is fixed now.

thanks a lot.

> 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
>            Assignee: viola.lu
>             Fix For: 3.0
>
>         Attachments: G5661.patch, G5661_ALL.patch
>
>
> 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.


[jira] Assigned: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu reassigned GERONIMO-5661:
----------------------------------

    Assignee: viola.lu

> 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
>            Assignee: viola.lu
>
> 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.


[jira] Updated: (GERONIMO-5661) Geronimo fails to start when there is a whitespace in Geronimo_HOME

Posted by "viola.lu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

viola.lu updated GERONIMO-5661:
-------------------------------

    Attachment: G5661.patch

pls review it, thanks

> 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
>            Assignee: viola.lu
>         Attachments: G5661.patch
>
>
> 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.