You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Rex Wang (JIRA)" <ji...@apache.org> on 2010/03/24 09:23:27 UTC
[jira] Commented: (GERONIMO-5204) var/security/keystores seems to
be a required directory, but is not being created for custom assemblies
[ https://issues.apache.org/jira/browse/GERONIMO-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849100#action_12849100 ]
Rex Wang commented on GERONIMO-5204:
------------------------------------
This is not caused by the recent keystore updates. I found 2.1.4 also has this problem.
It is caused by:
<gbean name="KeystoreManager" class="org.apache.geronimo.security.keystore.FileKeystoreManager">
<attribute name="keystoreDir">var/security/keystores</attribute>
<reference name="ServerInfo"><name>ServerInfo</name></reference>
<references name="KeystoreInstances">
<pattern>
<type>Keystore</type>
</pattern>
</references>
</gbean>
in j2ee-security plan.
> var/security/keystores seems to be a required directory, but is not being created for custom assemblies
> -------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-5204
> URL: https://issues.apache.org/jira/browse/GERONIMO-5204
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Affects Versions: 2.1.5, 2.2.1
> Reporter: Kevan Miller
> Assignee: Rex Wang
> Priority: Blocker
> Fix For: 2.1.5, 2.2.1
>
>
> Looks like there's a problem with customer assemblies. I'm guessing due to recent keystore updates.
> I created a custom assembly using the following command:
> deploy/assemble --artifact testserver --groupId org.foo org.apache.geronimo.configs/activemq-broker/2.1.5-SNAPSHOT/car org.apache.geronimo.assemblies/geronimo-boilerplate-minimal/2.1.5-SNAPSHOT/jar
> When I untarred and started the server, I got the following error:
> ./geronimo.sh run
> Using GERONIMO_HOME: /Users/kevan/geronimo/server/branches/2.1/assemblies/geronimo-tomcat6-javaee5/target/geronimo-tomcat6-javaee5-2.1.5-SNAPSHOT/var/temp/testserver-1.0
> Using GERONIMO_TMPDIR: var/temp
> Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
> Booting Geronimo Kernel (in Java 1.6.0_17)...
> Starting Geronimo Application Server v2.1.5-SNAPSHOT
> [******************* ] 49% 1s Loading org.apache.ger...2010-03-23 20:30:06,050 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.framework/j2ee-security/2.1.5-SNAPSHOT/car?ServiceModule=org.apache.geronimo.framework/j2ee-security/2.1.5-SNAPSHOT/car,j2eeType=GBean,name=KeystoreManager"
> java.lang.IllegalStateException: FileKeystoreManager must have a root that's a valid readable directory (not /Users/kevan/geronimo/server/branches/2.1/assemblies/geronimo-tomcat6-javaee5/target/geronimo-tomcat6-javaee5-2.1.5-SNAPSHOT/var/temp/testserver-1.0/var/security/keystores)
> at org.apache.geronimo.security.keystore.FileKeystoreManager.doStart(FileKeystoreManager.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
> at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
> at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:563)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d9b283b7.startConfiguration(<generated>)
> at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:206)
> at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:89)
> at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
> at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
> [******************* ] 49% 1s Startup failed
> org.apache.geronimo.kernel.config.LifecycleException: start of org.apache.geronimo.framework/j2ee-security/2.1.5-SNAPSHOT/car failed
> at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:580)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
> at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
> at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d9b283b7.startConfiguration(<generated>)
> at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:206)
> at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:89)
> at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
> at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
> Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
> at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
> at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:563)
> ... 16 more
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.framework/j2ee-security/2.1.5-SNAPSHOT/car failed to start due to the following reasons:
> The service ServiceModule=org.apache.geronimo.framework/j2ee-security/2.1.5-SNAPSHOT/car,j2eeType=GBean,name=KeystoreManager did not start because FileKeystoreManager must have a root that's a valid readable directory (not /Users/kevan/geronimo/server/branches/2.1/assemblies/geronimo-tomcat6-javaee5/target/geronimo-tomcat6-javaee5-2.1.5-SNAPSHOT/var/temp/testserver-1.0/var/security/keystores)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
> ... 18 more
> Once I created the var/security/keystores directory, I was able to start the server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.