geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell E Glaue (Commented) (JIRA)" <>
Subject [jira] [Commented] (GERONIMO-6287) Server instance which created by gogo command "deploy:new-server-instance "can't be started
Date Wed, 28 Mar 2012 15:37:25 GMT


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:
+        //?? repository folder needed by karaf, but don't know why ?

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
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:
+        //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

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

> --------------------------------------------------------------------------------------------
>                 Key: GERONIMO-6287
>                 URL:
>             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 ./ 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/ run -l
> 5. But failed to start:
> Error launching framework: java.lang.IllegalArgumentException: Property karaf.framework
must be set in the etc/ 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:!default.jspa
For more information on JIRA, see:


View raw message