You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Tina Li (Created) (JIRA)" <ji...@apache.org> on 2012/02/24 10:47:54 UTC

[jira] [Created] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

Server instance which created by gogo command "deploy:new-server-instance "can't be started 
--------------------------------------------------------------------------------------------

                 Key: GERONIMO-6287
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: commands, osgi
    Affects Versions: 3.0-beta-1
         Environment: JDK6 SR10
Redhat 6.1 x86_64 GNU/Linux
Build: 2012.02.23-14:54:05.382+0800
            Reporter: Tina Li
            Priority: Minor


Steps:

1. Start geronimo successfully using ./geronimo.sh run 
2. Using gogo command to create a new instance named inst1:
 geronimo> deploy:new-server-instance  inst1
Connection established
Server created
3.Change the PortOffset of the new instance
4. Try to start the server instance:
$ export GERONIMO_SERVER=inst1
$ bin/geronimo.sh run -l
5. But failed to start:
Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Updated] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

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

Tina Li updated GERONIMO-6287:
------------------------------

    Environment: 
JDK6 SR10
Redhat 6.1 x86_64 GNU/Linux
Build: 2012.02.23

  was:
JDK6 SR10
Redhat 6.1 x86_64 GNU/Linux
Build: 2012.02.23-14:54:05.382+0800

    
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Priority: Minor
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Assigned] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

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

xiezhi reassigned GERONIMO-6287:
--------------------------------

    Assignee: xiezhi
    
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Assignee: xiezhi
>            Priority: Minor
>         Attachments: gogoCommand.patch
>
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Commented] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

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

Shawn Jiang commented on GERONIMO-6287:
---------------------------------------

The patch https://issues.apache.org/jira/secure/attachment/12437839/new-instance+30.patch in GERONIMO-5164 could serve as a base to fix this.

The patch will also create/copy etc/repository to a new instance.
                
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Assignee: xiezhi
>            Priority: Minor
>         Attachments: gogoCommand.patch
>
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Issue Comment Edited] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

Posted by "Russell E Glaue (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240477#comment-13240477 ] 

Russell E Glaue edited comment on GERONIMO-6287 at 3/28/12 3:40 PM:
--------------------------------------------------------------------

I agree with the patch GERONIMO-5164/new-instance+30.patch

It creates/copies {{var}} and {{etc}}
And only creates {{repository}}

With changes provided in GERONIMO-6270, the {{repository}} directory gets created automatically on server startup if it does not exist.

I would remove the comment in the patch that reads:
{code}
+        //?? repository folder needed by karaf, but don't know why ?
{code}

Karaf requires a repository local to the base path of the geronimo server instance. Karaf specifically looks for it on startup. It is intended that it be used for artifacts locally deployed to this geronimo instance being created - we do not want to deploy instance specific artifacts to the bootstrap repository which is shared among all instances in a multi-instance run-time configuration.
We describe reasoning in the Geronimo 30 docs: https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html

We have the {{o.a.g.server.dir/repository}} configured in o.a.g.server.dir/etc/org.ops4j.pax.url.mvn.cfg as:
{code}
org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/repository@snapshots,file:${karaf.base}/repository@snapshots
{code}
Karaf looks for artifacts to deploy from one repository if the server is a single server, or two repositories if the server is one of multiple instances. When running multiple instance {{karaf.home/repository}} is the read-only bootstrap repository, and {{karaf.base/repository}} is the read-write local deploy repository for the specific geronimo instance.

It is not safe for multiple instances to deploy to the same bootstrap repository, as one instance's deployment will be seen by another. So we need to separate out local repositories for each instance to deploy to.

If a comment is desired, I recommend this:
{code}
+        //the repository folder is needed for local deployments, defined in etc/org.ops4j.pax.url.mvn.cfg
+        //we want to deploy artifacts specific to the instance to this local repository, not the shared bootstrap repository
{code}

                
      was (Author: rglaue):
    I agree with the patch GERONIMO-5164/new-instance+30.patch

It creates/copies {{var}} and {{etc}}
And only creates {{repository}}

With changes provided in GERONIMO-6270, the {{repository}} directory gets created automatically on server startup if it does not exist.

I would remove the comment in the patch that reads:
{code}
+        //?? repository folder needed by karaf, but don't know why ?
{code}

Karaf requires a repository local to the base path of the geronimo server instance. Karaf specifically looks for it on startup, but does nothing with it.

We have the {{o.a.g.server.dir/repository}} configured in o.a.g.server.dir/etc/org.ops4j.pax.url.mvn.cfg as:
{code}
org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/repository@snapshots,file:${karaf.base}/repository@snapshots
{code}
Karaf looks for artifacts to deploy from one repository if the server is a single server, or two repositories if the server is one of multiple instances. When running multiple instance {{karaf.home/repository}} is the read-only bootstrap repository, and {{karaf.base/repository}} is the read-write local deploy repository for the specific geronimo instance.

It is not safe for multiple instances to deploy to the same bootstrap repository, as one instance's deployment will be seen by another. So we need to separate out local repositories for each instance to deploy to.

If a comment is desired, I recommend this:
{code}
+        //the repository folder is needed for local deployments, defined in etc/org.ops4j.pax.url.mvn.cfg
+        //we want to deploy artifacts specific to the instance to this local repository, not the shared bootstrap repository
{code}

                  
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Assignee: xiezhi
>            Priority: Minor
>         Attachments: gogoCommand.patch
>
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Commented] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

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

xiezhi commented on GERONIMO-6287:
----------------------------------

I think there is a mistake in the pom.xml of karaf-frame.
                    <instance>
                        <plugin-artifact>
                            <copy-file relative-to="geronimo" dest-dir="">contents/</copy-file>
                            <copy-file relative-to="server" dest-dir="">instance/</copy-file>
                        </plugin-artifact>
                    </instance>
should be corrected to
                    <instance>
                        <plugin-artifact>
                            <copy-file relative-to="server" dest-dir="">contents/</copy-file>
                            <copy-file relative-to="server" dest-dir="">instance/</copy-file>
                        </plugin-artifact>
                    </instance>
                
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Priority: Minor
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Updated] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

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

xiezhi updated GERONIMO-6287:
-----------------------------

    Attachment: gogoCommand.patch

upload my patch.
                
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Assignee: xiezhi
>            Priority: Minor
>         Attachments: gogoCommand.patch
>
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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

       

[jira] [Commented] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started

Posted by "Russell E Glaue (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240477#comment-13240477 ] 

Russell E Glaue commented on GERONIMO-6287:
-------------------------------------------

I agree with the patch GERONIMO-5164/new-instance+30.patch

It creates/copies {{var}} and {{etc}}
And only creates {{repository}}

With changes provided in GERONIMO-6270, the {{repository}} directory gets created automatically on server startup if it does not exist.

I would remove the comment in the patch that reads:
{code}
+        //?? repository folder needed by karaf, but don't know why ?
{code}

Karaf requires a repository local to the base path of the geronimo server instance. Karaf specifically looks for it on startup, but does nothing with it.

We have the {{o.a.g.server.dir/repository}} configured in o.a.g.server.dir/etc/org.ops4j.pax.url.mvn.cfg as:
{code}
org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/repository@snapshots,file:${karaf.base}/repository@snapshots
{code}
Karaf looks for artifacts to deploy from one repository if the server is a single server, or two repositories if the server is one of multiple instances. When running multiple instance {{karaf.home/repository}} is the read-only bootstrap repository, and {{karaf.base/repository}} is the read-write local deploy repository for the specific geronimo instance.

It is not safe for multiple instances to deploy to the same bootstrap repository, as one instance's deployment will be seen by another. So we need to separate out local repositories for each instance to deploy to.

If a comment is desired, I recommend this:
{code}
+        //the repository folder is needed for local deployments, defined in etc/org.ops4j.pax.url.mvn.cfg
+        //we want to deploy artifacts specific to the instance to this local repository, not the shared bootstrap repository
{code}

                
> Server instance which created by gogo command "deploy:new-server-instance "can't be started 
> --------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6287
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6287
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: commands, osgi
>    Affects Versions: 3.0-beta-1
>         Environment: JDK6 SR10
> Redhat 6.1 x86_64 GNU/Linux
> Build: 2012.02.23
>            Reporter: Tina Li
>            Assignee: xiezhi
>            Priority: Minor
>         Attachments: gogoCommand.patch
>
>
> Steps:
> 1. Start geronimo successfully using ./geronimo.sh run 
> 2. Using gogo command to create a new instance named inst1:
>  geronimo> deploy:new-server-instance  inst1
> Connection established
> Server created
> 3.Change the PortOffset of the new instance
> 4. Try to start the server instance:
> $ export GERONIMO_SERVER=inst1
> $ bin/geronimo.sh run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework must be set in the etc/config.properties configuration file
> 6.Check the content under <geronimo_home>/inst1, only /var existed but /etc missing

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