[
https://issues.apache.org/jira/browse/GERONIMO-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
YunFeng Ma updated GERONIMO-3786:
---------------------------------
Attachment: GERONIMO-3786.patch
Hi David, you can reproduce the problem via the following steps:
1. Assembly a server including
org.apache.geronimo.configs/tomcat6/2.1-SNAPSHOT/car via console or gshell
2. Don't delete $GERONIMO_HOME/var/temp/assembly
3. Assembly another server including
org.apache.geronimo.assemblies/geronimo-boilerplate-minimal/2.1-SNAPSHOT/jar
and org.apache.geronimo.configs/axis2/2.1-SNAPSHOT/car via console or
gshell
For the second exported server, you will find the following two lines existed
in var/config/artifact_aliases.properties:
org.apache.geronimo.framework/j2ee-system//car=org.apache.geronimo.framework/client-system/2.1-SNAPSHOT/car
org.apache.geronimo.framework/j2ee-system/2.1-SNAPSHOT/car=org.apache.geronimo.framework/client-system/2.1-SNAPSHOT/car
You are right that the above two lines should exist in
var/config/client_artifact_aliases.properties. The root cause is
org.apache.geronimo.system.plugin.ServerInstanceData. In
$geronimo_src/framework/configs/plugin/src/main/plan/plan.xml, we use name
"artifactAliasesFileName" to set the artifact aliases file attribute of
ServerInstanceData, but the attribute artifactAliasesFileName in
ServerInstanceData is non-readable and non-writable, the value setted in
plan.xml doesn't take effect, all serverinstances use
var/config/artifact_aliases.properties as artifact aliases file name.
The proposed patch fixed:
1. Change attribute name "configSubstitutionsFileName" and
"artifactAliasesFileName" to "configSubstitutionsFile" and "artifactAliasesFile"
2. Clean up the exported path before assembly a server
Please review the patch, thanks.
> Command deploy.bat/sh failed to start in the exported server
> ------------------------------------------------------------
>
> Key: GERONIMO-3786
> URL: https://issues.apache.org/jira/browse/GERONIMO-3786
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1
> Reporter: YunFeng Ma
> Fix For: 2.1
>
> Attachments: GERONIMO-3786.patch
>
>
> In the exported server, command deploy.bat/sh failed to start with error:
> H:\gt2.1\var\temp\--bin\-\bin>deploy --user system --password manager
> list-modules
> Using GERONIMO_BASE: H:\gt2.1\var\temp\--bin\-
> Using GERONIMO_HOME: H:\gt2.1\var\temp\--bin\-
> Using GERONIMO_TMPDIR: var\temp
> Using JRE_HOME: C:\Program Files\IBM\Java50\jre
> 09:44:04,171 ERROR [GBeanInstanceState] Error while starting; GBean is now in
> th
> e FAILED state:
> abstractName="org.apache.geronimo.framework/online-deployer/2.1-
> SNAPSHOT/car?configurationName=org.apache.geronimo.framework/online-deployer/2.1
> -SNAPSHOT/car"
> org.apache.geronimo.kernel.repository.MissingDependencyException: Missing
> depend
> ency: org.apache.geronimo.framework/geronimo-deploy-jsr88/2.1-SNAPSHOT/jar
> at
> org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(Confi
> gurationResolver.java:113)
> at
> org.apache.geronimo.kernel.config.Configuration.buildClassPath(Config
> uration.java:405)
> at
> org.apache.geronimo.kernel.config.Configuration.createConfigurationCl
> asssLoader(Configuration.java:322)
> at
> org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.
> java:267)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
> orAccessorImpl.java:67)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
> onstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanI
> nstance.java:948)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
> (GBeanInstanceState.java:268)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInsta
> nceState.java:102)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.j
> ava:541)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.startGBean(BasicKernel.j
> ava:361)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConf
> iguration(ConfigurationUtil.java:195)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConf
> iguration(ConfigurationUtil.java:159)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.loadBoo
> tConfiguration(MainConfigurationBootstrapper.java:84)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.getMain
> (MainConfigurationBootstrapper.java:57)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(Ma
> inConfigurationBootstrapper.java:38)
> at
> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
> at
> org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31
> )
> java.lang.IllegalStateException: GBean is not running:
> org.apache.geronimo.frame
> work/online-deployer/2.1-SNAPSHOT/car?configurationName=org.apache.geronimo.fram
> ework/online-deployer/2.1-SNAPSHOT/car
> at
> org.apache.geronimo.kernel.basic.BasicKernel.getGBean(BasicKernel.jav
> a:304)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConf
> iguration(ConfigurationUtil.java:197)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConf
> iguration(ConfigurationUtil.java:159)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.loadBoo
> tConfiguration(MainConfigurationBootstrapper.java:84)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.getMain
> (MainConfigurationBootstrapper.java:57)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(Ma
> inConfigurationBootstrapper.java:38)
> at
> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
> at
> org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31
> )
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.