Quantcast

[jira] [Created] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Created] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
----------------------------------------------------------------------

                 Key: GERONIMO-6284
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
             Project: Geronimo
          Issue Type: Sub-task
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 3.0-beta-1
         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
            Reporter: Russell E Glaue
            Priority: Minor


Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...

Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
- remove GERONIMO_HOME/etc
- remove GERONIMO_HOME/var
- create the empty file GERONIMO_HOME/var

Start the Geronimo instance as follows:
{noformat:borderStyle=solid}
linux$ cd /opt/geronimo3/gserv1
linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
{noformat}

Create a second repository for the new instance
- mkdir {{gserv1/repository}}
- Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
{noformat:borderStyle=solid}
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
 <environment>
  <moduleId>
   <groupId>org.example.configs</groupId>
    <artifactId>myrepo</artifactId>
    <version>2.2</version>
    <type>car</type>
  </moduleId>
  <dependencies>
   <dependency>
    <groupId>org.apache.geronimo.framework</groupId>
    <artifactId>j2ee-system</artifactId>
    <version>2.2</version>
    <type>car</type>
   </dependency>
  </dependencies>
  <hidden-classes/>
  <non-overridable-classes/>
 </environment>
 <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
   <attribute name="root">gserv1/repository/</attribute>
   <attribute name="resolveToServer">false</attribute>
   <reference name="ServerInfo">
    <name>ServerInfo</name>
   </reference>
 </gbean>
 <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
  <reference name="Repository">
   <name>Repo2</name>
  </reference>
 </gbean>
</module>
{noformat}


Deploy the repository.xml file
{noformat:borderStyle=solid}
linux$ cd /opt/geronimo3
linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
{noformat}

The following error results:
{noformat:borderStyle=solid}
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0_25/jre
2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}

Issue: deployer is referencing GERONIMO_HOME/var/config

Solution: deployer should reference GERONIMO_SERVER/var/config




--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213061#comment-13213061 ]

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

There is a problem I am not able to pinpoint in the Java code in which the a "ServerInstanceData" class is passed to the "LocalAttributeManager", such that the shell path to config.xml and config-substitution.properties is a full path of GERONIMO_HOME/var/config/... when instead it should be GERONIMO_SERVER/var/config/....

If a relative path to config.xml and config-substitution.properties is given to LocalAttributeManager, it does the right thing by resolving it with serverInfo.resolveServer() which resolves according to org.apache.geronimo.server.dir . So the problem is definitely that the incorrect path of GERONIMO_HOME/var/config... is being passed in to LocalAttributeManager.

If I specify the org.apache.geronimo.config.file and org.apache.geronimo.config.substitutions.file properties with the correct paths, then the previously recorded error does not occur.

However, the new repository still cannot be created via deploy.

{noformat:borderStyle=solid}
[ger@server geronimo3]$ env GERONIMO_SERVER=gserv1 GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=gserv1/var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=gserv1/var/config/config-substitution.properties" bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0_25/jre
org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:316)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:290)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:125)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:82)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Caused by: org.osgi.framework.BundleException: Exception in org.apache.geronimo.kernel.osgi.ConfigurationActivator.start() of bundle org.apache.geronimo.framework.rmi-naming.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:311)
        ... 7 more
Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: More then one GBean was found with type 'org.apache.geronimo.kernel.config.ConfigurationManager': [?#org.apache.geronimo.kernel.config.ConfigurationManager] matches: [org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager, org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager]
        at org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(BasicRegistry.java:161)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:293)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:288)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:341)
        at org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(ConfigurationActivator.java:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        ... 11 more
{noformat}

               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213094#comment-13213094 ]

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

It turns out that the previous command causes LocalAttributeManager and others to create "/opt/geronimo3/gserv1/gserv1/var/config/" directory.
When I created an empty file at "/opt/geronimo3/gserv1/gserv1" and reissue the command, I get this error.

Without the two java properties, they want GERONIMO_HOME/var/config
With the two java proeprties, they want GERONIMO_SERVER/{property-name}
If I remove the "gserv1/..." in the values of the properties, they want to look for them as GERONIMO_HOME/var/config/... again.

This might indicate the path resolution logic is not quite right.

{noformat:borderStyle=solid}
[ger@linux7 geronimo3]$ env GERONIMO_SERVER=/opt/geronimo3/gserv1 GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=gserv1/var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=gserv1/var/config/config-substitution.properties" /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0_25/jre
2012-02-21 17:20:19,057 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/gserv1/gserv1/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/gserv1/gserv1/var/config/config-substitution.properties
2012-02-21 17:20:19,062 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/gserv1/gserv1/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:83)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-21 17:20:21,748 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/gserv1/gserv1/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/gserv1/gserv1/var/config/config-substitution.properties
2012-02-21 17:20:21,751 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/gserv1/gserv1/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:83)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:718)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:83)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:527)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        ... 6 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car failed to start due to the following reasons:
  The service ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager did not start because Unable to create directory for list:/opt/geronimo3/gserv1/gserv1/var/config
java.io.IOException: Unable to create directory for list:/opt/geronimo3/gserv1/gserv1/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:83)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)

  The service ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager did not start because org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager did not start.

        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:493)
        ... 8 more
{noformat}


If I specify the full path in the values of the two properties, then I receive the error output reported in the previous comment.

{noformat:borderStyle=solid}
[ger@linux7 geronimo3]$ env GERONIMO_SERVER=/opt/geronimo3/gserv1 GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=/opt/geronimo3/gserv1/var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=/opt/geronimo3/gserv1/var/config/config-substitution.properties" /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0_25/jre
org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:316)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:290)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:125)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:82)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Caused by: org.osgi.framework.BundleException: Exception in org.apache.geronimo.kernel.osgi.ConfigurationActivator.start() of bundle org.apache.geronimo.framework.rmi-naming.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:311)
        ... 7 more
Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: More then one GBean was found with type 'org.apache.geronimo.kernel.config.ConfigurationManager': [?#org.apache.geronimo.kernel.config.ConfigurationManager] matches: [org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager, org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager]
        at org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(BasicRegistry.java:161)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:293)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:288)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:341)
        at org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(ConfigurationActivator.java:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        ... 11 more
{noformat}




               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214259#comment-13214259 ]

Forrest Xia commented on GERONIMO-6284:
---------------------------------------

The new repo plan you need to update like this:

<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
 <environment>
  <moduleId>
   <groupId>org.example.configs</groupId>
    <artifactId>myrepo</artifactId>
    <version>2.2</version>
    <type>car</type>
  </moduleId>
  <dependencies>
   <dependency>
    <groupId>org.apache.geronimo.framework</groupId>
    <artifactId>j2ee-system</artifactId>
    <type>car</type>
   </dependency>
  </dependencies>
  <hidden-classes/>
  <non-overridable-classes/>
 </environment>
 <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
   <attribute name="root">repository/</attribute>
   <attribute name="resolveToServer">true</attribute>
   <reference name="ServerInfo">
    <name>ServerInfo</name>
   </reference>
 </gbean>
 <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
  <reference name="Repository">
   <name>Repo2</name>
  </reference>
 </gbean>
</module>

Then you can deploy the new geronimo configurationstore into folder GERONIMO_HOME/gserv1/repository
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Assigned] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Forrest Xia reassigned GERONIMO-6284:
-------------------------------------

    Assignee: Forrest Xia
   

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214817#comment-13214817 ]

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

I was able to successfully deploy the plan to a Geronimo install with no configured instances.

I tested a few different configured plans and determined the problem with the currently documented plan was the version number of "2.2" in the org.apache.geronimo.framework j2ee-system dependency. Once that was removed, I was able to deploy the wiki documented plan.

However, when deploying the cviewer-3.0.0.0.war in GERONIMO-6285 to the second repository, it failed on load operation. It did deploy to the primary repository and load successfully.

Here is the plan for my second repository
{noformat:borderStyle=solid}
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
 <environment>
  <moduleId>
   <groupId>org.example.configs.repo2</groupId>
    <artifactId>myrepo2</artifactId>
    <version>2.2</version>
    <type>car</type>
  </moduleId>
  <dependencies>
   <dependency>
    <groupId>org.apache.geronimo.framework</groupId>
    <artifactId>j2ee-system</artifactId>
    <type>car</type>
   </dependency>
  </dependencies>
  <hidden-classes/>
  <non-overridable-classes/>
 </environment>
 <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
   <attribute name="root">repo2/</attribute>
   <attribute name="resolveToServer">true</attribute>
   <reference name="ServerInfo">
    <name>ServerInfo</name>
   </reference>
 </gbean>
 <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
  <reference name="Repository">
   <name>Repo2</name>
  </reference>
 </gbean>
</module>
{noformat}

Here is the output from attempting to deploy the war to the second repository
{noformat:borderStyle=solid}
[root@server geronimo3-beta]# bin/deploy -port 1099 list-targets
Using GERONIMO_HOME:   /opt/geronimo3-beta
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
Available Targets:
  org.apache.geronimo.framework/j2ee-system/3.0-beta-1/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-beta-1/car,j2eeType=ConfigurationStore,name=Local
  org.example.configs.repo2/myrepo2/2.2/car?ServiceModule=org.example.configs.repo2/myrepo2/2.2/car,j2eeType=ConfigurationStore,name=Local2

[root@server geronimo3-beta]# bin/deploy -port 1099 deploy --targets "Local2" cviewer-3.0.0.0.war
Using GERONIMO_HOME:   /opt/geronimo3-beta
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
2012-02-23 09:58:38,418 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Operation failed: load of com.ibm.wasce.samples/cviewer/3.0.0.0/car failed
        URL [mvn:com.ibm.wasce.samples/cviewer/3.0.0.0/car] could not be resolved.
        URL [mvn:com.ibm.wasce.samples/cviewer/3.0.0.0/car] could not be resolved.

        at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:168)
        at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:124)
        at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:171)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)

[root@server geronimo3-beta]# bin/deploy -port 1099 deploy cviewer-3.0.0.0.war
Using GERONIMO_HOME:   /opt/geronimo3-beta
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
    Deployed com.ibm.wasce.samples/cviewer/3.0.0.0/car @ /cviewer
{noformat}

               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214859#comment-13214859 ]

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

I was able to deploy the repository for the Geronimo instance with a simple work-around.

The work-around is to copy a config.xml and config-substitutions.properties to GERONIMO_HOME/var/config.
Apparently the deployer code looks to see if those are there, and it causes problems if they do not exist.
However, if they exist, but you are deploying with a GERONIMO_SERVER defined, they are checked but not modified.
I do not know if these config files are actually read. And if they are read, there will be a problem if the GERONIMO_SERVER/var/config/{file} are not the same files as the deployer looks for in GERONIMO_HOME/var/config/{file}

Also, though I was able to deploy/install a war to the second repository for the Geronimo instance, it did not successfully load. This is the same error as reported in the previous commend.


None the less, here is how I successfully deployed the second repository for a Geronimo instance. Also following is the procedure and error message in deploying the WAR.

Repository plan:
{noformat:borderStyle=solid}
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
 <environment>
  <moduleId>
   <groupId>org.example.configs.gserv1</groupId>
    <artifactId>gserv1repo</artifactId>
    <version>2.2</version>
    <type>car</type>
  </moduleId>
  <dependencies>
   <dependency>
    <groupId>org.apache.geronimo.framework</groupId>
    <artifactId>j2ee-system</artifactId>
    <type>car</type>
   </dependency>
  </dependencies>
  <hidden-classes/>
  <non-overridable-classes/>
 </environment>
 <gbean name="gserv1" class="org.apache.geronimo.system.repository.Maven2Repository">
   <attribute name="root">repository/</attribute>
   <attribute name="resolveToServer">true</attribute>
   <reference name="ServerInfo">
    <name>ServerInfo</name>
   </reference>
 </gbean>
 <gbean name="Localgserv1" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
  <reference name="Repository">
   <name>gserv1</name>
  </reference>
 </gbean>
</module>
{noformat}

Setup:
- To setup a Geronimo instance, follow the procedures in https://cwiki.apache.org/confluence/display/GMOxDOC30/Running+multiple+Geronimo+instances
- remove GERONIMO_HOME/etc
- remove GERONIMO_HOME/var
- Start the gserv1 instance with: {{cd $GERONIMO_HOME; env GERONIMO_SERVER=gserv1 bin/geronimo run}} (The patch from GERONIMO-6275 is needed)

Workaround:
{noformat:borderStyle=solid}
[root@server geronimo3]# mkdir -p $GERONIMO_HOME/var/config
[root@server geronimo3]# cp -p $GERONIMO_SERVER/var/config/config.xml $GERONIMO_HOME/var/config/config.xml
[root@server geronimo3]# cp -p $GERONIMO_SERVER/var/config/config-substitutions.properties $GERONIMO_HOME/var/config/config-substitutions.properties
{noformat}

Plan Deployment:
{noformat:borderStyle=solid}
[root@server geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 deploy gserv1/repository.xml
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
    Deployed org.example.configs.gserv1/gserv1repo/2.2/car

[root@server geronimo3]# diff var/config/config.xml gserv1/var/config/config.xml
262a263
>     <module name="org.example.configs.gserv1/gserv1repo/2.2/car"/>
[root@server geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 list-targets
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
Available Targets:
  org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationStore,name=Local
  org.example.configs.gserv1/gserv1repo/2.2/car?ServiceModule=org.example.configs.gserv1/gserv1repo/2.2/car,j2eeType=ConfigurationStore,name=Localgserv1
{noformat}

WAR Deployment:
{noformat:borderStyle=solid}
[root@server geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 deploy --targets "Localgserv1" cviewer-3.0.0.0.war
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
2012-02-23 11:04:58,573 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Operation failed: load of com.ibm.wasce.samples/cviewer/3.0.0.0/car failed
        URL [mvn:com.ibm.wasce.samples/cviewer/3.0.0.0/car] could not be resolved.
        URL [mvn:com.ibm.wasce.samples/cviewer/3.0.0.0/car] could not be resolved.

        at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:168)
        at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:124)
        at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:171)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:64)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
{noformat}


Conclusions:
 - the proper config files are ultimately used
 - however, the deployer code still expects to see GERONIMO_HOME/var/config/...

Resolutions:
 - the deployer code needs to be changed to instead "expect" GERONIMO_SERVER/var/config
 - the ability to deploy to the second repository must be addressed


               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215356#comment-13215356 ]

Forrest Xia commented on GERONIMO-6284:
---------------------------------------

Hi Russell,

See change http://svn.apache.org/viewvc?view=rev&rev=1291886 for how to fix the start failure when deploying to the new target.

Thanks for continuous testing.

Forrest
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217227#comment-13217227 ]

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

Excellent!
With the one-line change, works to deploy and undeploy in geronimo-tomcat7-javaee6-3.0-SNAPSHOT-20111220.

However, it only works if there exists:
- GERONIMO_HOME/var/config.xml
- GERONIMO_HOME/var/config/config-substitution.properties

And setting the {{org.apache.geronimo.config.file}} and {{org.apache.geronimo.config.substitutions.file}} properties in this scenario...
- as relative paths: Geronimo looks for them relative to GERONIMO_HOME, when it should be GERONIMO_SERVER
- as full paths: produces an error


I illustrate this here:


with GERONIMO_HOME/var/config/{config-files} missing
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# mv var var1
[root@server /opt/geronimo3]# touch var
[root@server /opt/geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
2012-02-27 09:24:54,672 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,680 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:24:54,684 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,706 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,710 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:24:54,712 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}


with GERONIMO_HOME/var/config/{config-files} missing, and defining the config-file properties with absolute paths:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# env GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=/opt/geronimo3/gserv1/var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=/opt/geronimo3/gserv1/var/config/config-substitution.properties" GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:316)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:290)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:125)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:82)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Caused by: org.osgi.framework.BundleException: Exception in org.apache.geronimo.kernel.osgi.ConfigurationActivator.start() of bundle org.apache.geronimo.framework.rmi-naming.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:311)
        ... 7 more
Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: More then one GBean was found with type 'org.apache.geronimo.kernel.config.ConfigurationManager': [?#org.apache.geronimo.kernel.config.ConfigurationManager] matches: [org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager, org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager]
        at org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(BasicRegistry.java:161)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:293)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:288)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:341)
        at org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(ConfigurationActivator.java:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        ... 11 more
{noformat}



with GERONIMO_HOME/var/config/{config-files} missing, and defining the config-file properties with relative paths:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# env GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=var/config/config-substitution.properties" GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/carUsing GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
2012-02-27 09:33:36,514 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,622 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,639 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,643 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,652 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,654 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,657 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,660 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}


with GERONIMO_HOME/var/config/{config-files} restored:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# rm -f var
[root@server /opt/geronimo3]# mv var1 var
[root@server /opt/geronimo3]# ls -1 var/config/config*
var/config/config-substitutions.properties
var/config/config.xml
[root@server /opt/geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
    Module com.ibm.wasce.samples/cviewer/3.0.0.0/car unloaded.
    Module com.ibm.wasce.samples/cviewer/3.0.0.0/car uninstalled.

    Undeployed com.ibm.wasce.samples/cviewer/3.0.0.0/car
{noformat}

               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Issue Comment Edited] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217227#comment-13217227 ]

Russell E Glaue edited comment on GERONIMO-6284 at 2/27/12 3:38 PM:
--------------------------------------------------------------------

Excellent!
With the one-line change, works to deploy and undeploy in geronimo-tomcat7-javaee6-3.0-SNAPSHOT-20111220.

However, it only works if there exists:
- GERONIMO_HOME/var/config.xml
- GERONIMO_HOME/var/config/config-substitutions.properties

And setting the {{org.apache.geronimo.config.file}} and {{org.apache.geronimo.config.substitutions.file}} properties in this scenario...
- as relative paths: Geronimo looks for them relative to GERONIMO_HOME, when it should be GERONIMO_SERVER
- as full paths: produces an error


I illustrate this here:


with GERONIMO_HOME/var/config/{config-files} missing
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# mv var var1
[root@server /opt/geronimo3]# touch var
[root@server /opt/geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
2012-02-27 09:24:54,672 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,680 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:24:54,684 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,706 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,710 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:24:54,712 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}


with GERONIMO_HOME/var/config/{config-files} missing, and defining the config-file properties with absolute paths:
{noformat:borderStyle=solid}
[root@rglaue7 geronimo3]# env GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=/opt/geronimo3/gserv1/var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=/opt/geronimo3/gserv1/var/config/config-substitutions.properties" GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:316)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:290)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:125)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:82)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Caused by: org.osgi.framework.BundleException: Exception in org.apache.geronimo.kernel.osgi.ConfigurationActivator.start() of bundle org.apache.geronimo.framework.rmi-naming.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:311)
        ... 7 more
Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: More then one GBean was found with type 'org.apache.geronimo.kernel.config.ConfigurationManager': [?#org.apache.geronimo.kernel.config.ConfigurationManager] matches: [org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager, org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager]
        at org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(BasicRegistry.java:161)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:293)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:288)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:341)
        at org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(ConfigurationActivator.java:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        ... 11 more

{noformat}



with GERONIMO_HOME/var/config/{config-files} missing, and defining the config-file properties with relative paths:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# env GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=var/config/config-substitutions.properties" GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
2012-02-27 09:33:36,514 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:33:36,622 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,639 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:33:36,643 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,652 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:33:36,654 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,657 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:33:36,660 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}


with GERONIMO_HOME/var/config/{config-files} restored:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# rm -f var
[root@server /opt/geronimo3]# mv var1 var
[root@server /opt/geronimo3]# ls -1 var/config/config*
var/config/config-substitutions.properties
var/config/config.xml
[root@server /opt/geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
    Module com.ibm.wasce.samples/cviewer/3.0.0.0/car unloaded.
    Module com.ibm.wasce.samples/cviewer/3.0.0.0/car uninstalled.

    Undeployed com.ibm.wasce.samples/cviewer/3.0.0.0/car
{noformat}

               
      was (Author: rglaue):
    Excellent!
With the one-line change, works to deploy and undeploy in geronimo-tomcat7-javaee6-3.0-SNAPSHOT-20111220.

However, it only works if there exists:
- GERONIMO_HOME/var/config.xml
- GERONIMO_HOME/var/config/config-substitution.properties

And setting the {{org.apache.geronimo.config.file}} and {{org.apache.geronimo.config.substitutions.file}} properties in this scenario...
- as relative paths: Geronimo looks for them relative to GERONIMO_HOME, when it should be GERONIMO_SERVER
- as full paths: produces an error


I illustrate this here:


with GERONIMO_HOME/var/config/{config-files} missing
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# mv var var1
[root@server /opt/geronimo3]# touch var
[root@server /opt/geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
2012-02-27 09:24:54,672 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,680 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:24:54,684 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,706 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:24:54,710 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
2012-02-27 09:24:54,712 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}


with GERONIMO_HOME/var/config/{config-files} missing, and defining the config-file properties with absolute paths:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# env GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=/opt/geronimo3/gserv1/var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=/opt/geronimo3/gserv1/var/config/config-substitution.properties" GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
org.apache.geronimo.kernel.config.LifecycleException: load of org.apache.geronimo.framework/rmi-naming/3.0-SNAPSHOT/car failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:316)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:290)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.loadConfiguration(KernelConfigurationManager.java:125)
        at org.apache.geronimo.system.main.MainBridge.loadPersistentConfigurations(MainBridge.java:82)
        at org.apache.geronimo.system.main.MainBridge.execute(MainBridge.java:57)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Caused by: org.osgi.framework.BundleException: Exception in org.apache.geronimo.kernel.osgi.ConfigurationActivator.start() of bundle org.apache.geronimo.framework.rmi-naming.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:311)
        ... 7 more
Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: More then one GBean was found with type 'org.apache.geronimo.kernel.config.ConfigurationManager': [?#org.apache.geronimo.kernel.config.ConfigurationManager] matches: [org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager, org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-system/3.0-SNAPSHOT/car,j2eeType=ConfigurationManager,name=ConfigurationManager]
        at org.apache.geronimo.kernel.basic.BasicRegistry.getGBeanInstance(BasicRegistry.java:161)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:293)
        at org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.java:288)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:341)
        at org.apache.geronimo.kernel.osgi.ConfigurationActivator.start(ConfigurationActivator.java:56)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        ... 11 more
{noformat}



with GERONIMO_HOME/var/config/{config-files} missing, and defining the config-file properties with relative paths:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# env GERONIMO_OPTS="-Dorg.apache.geronimo.config.file=var/config/config.xml -Dorg.apache.geronimo.config.substitutions.file=var/config/config-substitution.properties" GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/carUsing GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
2012-02-27 09:33:36,514 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,622 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,639 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,643 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,652 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,654 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
2012-02-27 09:33:36,657 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitution.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitution.properties
2012-02-27 09:33:36,660 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
        at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
        at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
        at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
        at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
        at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
        at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
        at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
        at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
        at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
        at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
        at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
Main not found
{noformat}


with GERONIMO_HOME/var/config/{config-files} restored:
{noformat:borderStyle=solid}
[root@server /opt/geronimo3]# rm -f var
[root@server /opt/geronimo3]# mv var1 var
[root@server /opt/geronimo3]# ls -1 var/config/config*
var/config/config-substitutions.properties
var/config/config.xml
[root@server /opt/geronimo3]# env GERONIMO_SERVER=gserv1 bin/deploy -port 1199 undeploy com.ibm.wasce.samples/cviewer/3.0.0.0/car
Using GERONIMO_HOME:   /opt/geronimo3
Using GERONIMO_SERVER: /opt/geronimo3/gserv1
Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
Using JRE_HOME:        /usr/jdk1.6.0/jre
Username: system
Password: *******
    Module com.ibm.wasce.samples/cviewer/3.0.0.0/car unloaded.
    Module com.ibm.wasce.samples/cviewer/3.0.0.0/car uninstalled.

    Undeployed com.ibm.wasce.samples/cviewer/3.0.0.0/car
{noformat}

                 

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218262#comment-13218262 ]

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

Regarding the change http://svn.apache.org/viewvc?view=rev&rev=1291886 for fixing the start failure, if a user creates multiple repositories, in G3.0 they must additionally add the repository to the {{org.ops4j.pax.url.mvn.defaultRepositories}} property file of {{etc/org.ops4j.pax.url.mvn.cfg}} every time.

This is going to be an additional step the user will now have to take in order to add multiple repositories.
I will update the documentation to reflect this.

               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218283#comment-13218283 ]

Forrest Xia commented on GERONIMO-6284:
---------------------------------------

Thank you for helping updating the document. so can we close this jira?
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218288#comment-13218288 ]

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

What about the errors I reported in the 27/Feb comment when the properties {{org.apache.geronimo.config.file}} and {{org.apache.geronimo.config.substitutions.file}} are passed in on the command line?


               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218299#comment-13218299 ]

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

Also, Geronimo still has the failure that occurs if {{GERONIMO_HOME/var/config/...}} config files do not exist when deploying a new repository to a Geronimo instance, even though those files are never used?
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219249#comment-13219249 ]

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

Since it is now possible to deploy to multiple instances, this jira is no longer a show-stopper.
Should we file the two remaining issues into another jira?

               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219938#comment-13219938 ]

Forrest Xia commented on GERONIMO-6284:
---------------------------------------

No need to open another jira, let's just use this one for the remaining issues:
1. GERONIMO_HOME/var folder must exist, otherwise deployment cannot succeed
2. geronimo properties: org.apache.geronimo.config.file and org.apache.geronimo.config.substitutions.file cannot be set to function

#1 has been fixed via 3.0-beta@1295477, 3.0 trunk@1295483

#2 will be investigated later

               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219988#comment-13219988 ]

Forrest Xia commented on GERONIMO-6284:
---------------------------------------

#2 is a wrong usage to those two properties. The two properties can only be used for starting the server, not for deploy commands.

You can try to set them before server start, and see if it works.

So basically, the problem mentioned in this jira are all fixed by now, please close it after verification. thanks!
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220091#comment-13220091 ]

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

Setting those properties before server start works.

If those properties are only to be used in startup and not with the deployer, then this jira is resolved.

Thanks Forrest.
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Resolved] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russell E Glaue resolved GERONIMO-6284.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
   

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>             Fix For: 3.0-beta-2
>
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (GERONIMO-6284) Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/GERONIMO-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220096#comment-13220096 ]

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

I will update the multiple repository documentation accordingly.
               

> Cannot deploy to multiple instances, deploy expects GERONIMO_HOME/var/
> ----------------------------------------------------------------------
>
>                 Key: GERONIMO-6284
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6284
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues)
>          Components: deployment
>    Affects Versions: 3.0-beta-1
>         Environment: Linux x86, Red Hat Enterprise Linux Server release 5.4 (Tikanga)
>            Reporter: Russell E Glaue
>            Assignee: Forrest Xia
>            Priority: Minor
>              Labels: geronimo
>             Fix For: 3.0-beta-2
>
>
> Cannot deploy to a Geronimo Instance. Deploy expects GERONIMO_HOME/var/...
> Create a new Geronimo instance as documented in https://cwiki.apache.org/GMOxDOC30/running-multiple-geronimo-instances.html
> - remove GERONIMO_HOME/etc
> - remove GERONIMO_HOME/var
> - create the empty file GERONIMO_HOME/var
> Start the Geronimo instance as follows:
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3/gserv1
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/geronimo run
> {noformat}
> Create a second repository for the new instance
> - mkdir {{gserv1/repository}}
> - Create {{gserv1/repository.xml}} as documented in https://cwiki.apache.org/GMOxDOC30/configuring-multiple-repositories.html
> {noformat:borderStyle=solid}
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>  <environment>
>   <moduleId>
>    <groupId>org.example.configs</groupId>
>     <artifactId>myrepo</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>   </moduleId>
>   <dependencies>
>    <dependency>
>     <groupId>org.apache.geronimo.framework</groupId>
>     <artifactId>j2ee-system</artifactId>
>     <version>2.2</version>
>     <type>car</type>
>    </dependency>
>   </dependencies>
>   <hidden-classes/>
>   <non-overridable-classes/>
>  </environment>
>  <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">
>    <attribute name="root">gserv1/repository/</attribute>
>    <attribute name="resolveToServer">false</attribute>
>    <reference name="ServerInfo">
>     <name>ServerInfo</name>
>    </reference>
>  </gbean>
>  <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">
>   <reference name="Repository">
>    <name>Repo2</name>
>   </reference>
>  </gbean>
> </module>
> {noformat}
> Deploy the repository.xml file
> {noformat:borderStyle=solid}
> linux$ cd /opt/geronimo3
> linux$ env JAVA_HOME=/usr/jdk1.6.0 GERONIMO_SERVER=gserv1 /opt/geronimo3/bin/deploy -port 1199 deploy /opt/geronimo3/gserv1/repository.xml
> {noformat}
> The following error results:
> {noformat:borderStyle=solid}
> Using GERONIMO_HOME:   /opt/geronimo3
> Using GERONIMO_SERVER: /opt/geronimo3/gserv1
> Using GERONIMO_TMPDIR: /opt/geronimo3/gserv1/var/temp
> Using JRE_HOME:        /usr/jdk1.6.0_25/jre
> 2012-02-21 15:33:44,695 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,704 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,708 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:555)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
> at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
> at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:45)
> at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:301)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,719 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=AttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> 2012-02-21 15:33:44,722 ERROR [LocalAttributeManager] Caught exception java.io.FileNotFoundException: /opt/geronimo3/var/config/config-substitutions.properties (Not a directory) trying to write properties file /opt/geronimo3/var/config/config-substitutions.properties
> 2012-02-21 15:33:44,724 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/online-deployer/3.0-SNAPSHOT/car,j2eeType=AttributeStore,name=ServerAttributeManager"
> java.io.IOException: Unable to create directory for list:/opt/geronimo3/var/config
> at org.apache.geronimo.system.configuration.LocalAttributeManager.ensureParentDirectory(LocalAttributeManager.java:607)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.load(LocalAttributeManager.java:352)
> at org.apache.geronimo.system.configuration.LocalAttributeManager.doStart(LocalAttributeManager.java:561)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:1000)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:569)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:466)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:220)
> at org.apache.geronimo.system.osgi.BootActivator.start(BootActivator.java:70)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
> at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
> at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
> at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
> at org.apache.geronimo.main.FrameworkLauncher.launchOSGiFramework(FrameworkLauncher.java:185)
> at org.apache.geronimo.main.FrameworkLauncher.launch(FrameworkLauncher.java:166)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:47)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:32)
> Main not found
> {noformat}
> Issue: deployer is referencing GERONIMO_HOME/var/config
> Solution: deployer should reference GERONIMO_SERVER/var/config

--
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

       
Loading...