Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 2180 invoked from network); 24 Mar 2010 09:43:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 09:43:49 -0000 Received: (qmail 24480 invoked by uid 500); 24 Mar 2010 09:43:49 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 24313 invoked by uid 500); 24 Mar 2010 09:43:49 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 24305 invoked by uid 99); 24 Mar 2010 09:43:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 09:43:48 +0000 X-ASF-Spam-Status: No, hits=-1117.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 09:43:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 43DF2234C4DF for ; Wed, 24 Mar 2010 09:43:27 +0000 (UTC) Message-ID: <1623953905.457471269423807276.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Mar 2010 09:43:27 +0000 (UTC) From: "Rex Wang (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Closed: (GERONIMO-5204) var/security/keystores seems to be a required directory, but is not being created for custom assemblies In-Reply-To: <1619632442.448671269391227124.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-5204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rex Wang closed GERONIMO-5204. ------------------------------ Resolution: Fixed rev.926980 for branch 2.1 rev.926991 for branch 2.2 > 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() > 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() > 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.