You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by steve2727 <st...@hotmail.com> on 2010/05/16 19:05:11 UTC

Any help for a total newbie with installation?

Hi, hope somebody can help me

I've been trying to install Apache Geronimo but have been hitting an issue I
can't resolve when I attempt to run the server.

I am hitting the same problem on the jetty7 version on Ubuntu 9 and both the
Windows Vista Jetty7 and Tomcat6 versions so I'm clearly getting something
pretty fundamental wrong

I have installed Java Runtime 6 (on both Ubuntu and Windows) but when I
attempt to run the server with factory settings (in the command window,
'geronimo run') it fails when trying to start up the SSL connector, saying
that the keystore geronimo-default is locked and to unlock it from the admin
console. However seeing as the admin console is accessed when the web server
is running...

I have found a few forum posts about issues in old builds of geronimo in
this area but nothing about anything this basic

Other that the factory default configuration I have also tried setting the
SSL plugin not to load but this causes futher errors.

If somebody could help me work out what I'm managing to get wrong it would
be much appreciated!

Thanks

Steve
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p821834.html
Sent from the Users mailing list archive at Nabble.com.

Re: Any help for a total newbie with installation?

Posted by Kevan Miller <ke...@gmail.com>.
Sounds like a problem with your JAVA_HOME or JRE_HOME setting.

On Ubuntu, I use:

export JAVA_HOME=/usr/lib/jvm/java-6-sun

What's your output from ./geronimo.sh run? Should see something like:

$ ./geronimo.sh run
Using GERONIMO_HOME:   /home/kevan/geronimo-tomcat6-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun/jre
Booting Geronimo Kernel (in Java 1.6.0_16)...
Starting Geronimo Application Server v2.2
...

--kevan

On May 16, 2010, at 1:05 PM, steve2727 wrote:

> 
> Hi, hope somebody can help me
> 
> I've been trying to install Apache Geronimo but have been hitting an issue I
> can't resolve when I attempt to run the server.
> 
> I am hitting the same problem on the jetty7 version on Ubuntu 9 and both the
> Windows Vista Jetty7 and Tomcat6 versions so I'm clearly getting something
> pretty fundamental wrong
> 
> I have installed Java Runtime 6 (on both Ubuntu and Windows) but when I
> attempt to run the server with factory settings (in the command window,
> 'geronimo run') it fails when trying to start up the SSL connector, saying
> that the keystore geronimo-default is locked and to unlock it from the admin
> console. However seeing as the admin console is accessed when the web server
> is running...
> 
> I have found a few forum posts about issues in old builds of geronimo in
> this area but nothing about anything this basic
> 
> Other that the factory default configuration I have also tried setting the
> SSL plugin not to load but this causes futher errors.
> 
> If somebody could help me work out what I'm managing to get wrong it would
> be much appreciated!
> 
> Thanks
> 
> Steve
> -- 
> View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p821834.html
> Sent from the Users mailing list archive at Nabble.com.


Re: Any help for a total newbie with installation?

Posted by Kevan Miller <ke...@gmail.com>.
On May 18, 2010, at 3:19 PM, steve2727 wrote:

> 
> Try as I might I cannot get the 'Using JRE_HOME :' line on startup to report
> anything other than a blank, regardless if it is unset or explicitly set.
> Following the above instructions reports both versions correctly (although
> mine are '1.6.0_15') but unsetting JRE_HOME and trying again results in a
> blank Using JRE_HOME line and the same failure
> 
> However if this missing JRE_HOME is indicating the root of the problem it
> gives me something to go on more than before so I can investigate further,
> so thanks for that

Interesting... FYI, somebody showed up on IRC with the same problem on Ubuntu. I wasn't at my computer, at the time, so didn't talk to them.

What version of Ubuntu are you using? I'm on 9.04.

$ /usr/lib/jvm/java-6-sun/bin/java -version
java version "1.6.0_16"

So, slightly different version than yours, IIRC, but don't see that making much difference.

Have you tried using the gsh command, instead?

$ ./gsh geronimo/start-server

Even if that works for you, would still like to get to the bottom of this issue...

--kevan

Re: Any help for a total newbie with installation?

Posted by steve2727 <st...@hotmail.com>.
Try as I might I cannot get the 'Using JRE_HOME :' line on startup to report
anything other than a blank, regardless if it is unset or explicitly set.
Following the above instructions reports both versions correctly (although
mine are '1.6.0_15') but unsetting JRE_HOME and trying again results in a
blank Using JRE_HOME line and the same failure

However if this missing JRE_HOME is indicating the root of the problem it
gives me something to go on more than before so I can investigate further,
so thanks for that
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p827249.html
Sent from the Users mailing list archive at Nabble.com.

Re: Any help for a total newbie with installation?

Posted by Kevan Miller <ke...@gmail.com>.
On May 17, 2010, at 2:04 AM, steve2727 wrote:

> 
> echo $JRE_HOME returns the following:
> 
> /usr/lib/jvm/java-6-sun/jre/
> 
> Is this not what geronimo is trying to use?

Based on your previous email:

On May 16, 2010, at 4:56 PM, steve2727 wrote:

> Using GERONIMO_HOME:   /usr/geronimo-jetty7-javaee5-2.2
> Using GERONIMO_TMPDIR: var/temp
> Using JRE_HOME:      

That wasn't your JRE_HOME setting, previously... Or else something strange is going on...

You should have seen something like:

$ ./geronimo.sh run
Using GERONIMO_HOME:   /home/kevan/geronimo-tomcat6-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun//jre

Something is wrong with your java installation or your environment variable settings. 

Does the following work for you?


$ /usr/lib/jvm/java-6-sun/bin/java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

$ /usr/lib/jvm/java-6-sun/jre/bin/java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

$ unset JRE_HOME

$ export JAVA_HOME=/usr/lib/jvm/java-6-sun/

$ ./geronimo.sh run
Using GERONIMO_HOME:   /home/kevan/geronimo-tomcat6-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun//jre
...

--kevan

Re: Any help for a total newbie with installation?

Posted by steve2727 <st...@hotmail.com>.
echo $JRE_HOME returns the following:

/usr/lib/jvm/java-6-sun/jre/

Is this not what geronimo is trying to use?

Thx
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p822853.html
Sent from the Users mailing list archive at Nabble.com.

Re: Any help for a total newbie with installation?

Posted by Kevan Miller <ke...@gmail.com>.
On May 16, 2010, at 4:56 PM, steve2727 wrote:

> 
> Thanks Kevan
> 
> still have the same results when attempting to run geronimo though
> 
> btw my geronimo gives the following info as I run it (sudo under my account)
> 
> Using GERONIMO_HOME:   /usr/geronimo-jetty7-javaee5-2.2
> Using GERONIMO_TMPDIR: var/temp
> Using JRE_HOME:      
> 
> It always reads Using JRE_HOME: 
> even when JRE_HOME is set

That looks like JRE_HOME is set to "". Which is still not correct.

unset JRE_HOME
./geronimo.sh run

or

export JRE_HOME=/usr/lib/jvm/java-6-sun/jre
./geronimo.sh run

--kevan



Re: Any help for a total newbie with installation?

Posted by steve2727 <st...@hotmail.com>.
Thanks Kevan

still have the same results when attempting to run geronimo though

btw my geronimo gives the following info as I run it (sudo under my account)

Using GERONIMO_HOME:   /usr/geronimo-jetty7-javaee5-2.2
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:      

It always reads Using JRE_HOME: 
even when JRE_HOME is set
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p822248.html
Sent from the Users mailing list archive at Nabble.com.

Re: Any help for a total newbie with installation?

Posted by Kevan Miller <ke...@gmail.com>.
On May 16, 2010, at 3:50 PM, steve2727 wrote:

> 
> Hi David
> 
> I am using Geronimo 2.2
> java -version:
> java version "1.6.0_15"
> Java (TM) SE Runtime Environment
> Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)
> 
> $JAVA_HOME:
> 
> /usr/lib/jvm/java-6-sun
> 
> (JRE_HOME is the same)

That's not a valid JRE_HOME setting. 

Unset JRE_HOME or set it to a correct value. E.g:

export JRE_HOME=/usr/lib/jvm/java-6-sun/jre/

--kevan

Re: Any help for a total newbie with installation?

Posted by steve2727 <st...@hotmail.com>.
Hi David

I am using Geronimo 2.2
java -version:
java version "1.6.0_15"
Java (TM) SE Runtime Environment
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)

$JAVA_HOME:

/usr/lib/jvm/java-6-sun

(JRE_HOME is the same)

Stack trace to follow ASAP
-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p822134.html
Sent from the Users mailing list archive at Nabble.com.

Re: Any help for a total newbie with installation?

Posted by steve2727 <st...@hotmail.com>.
Stack Trace:

Starting org.apache.ger...2010-05-16 20:43:47,985 WARN  [log] FAILED
GeronimoSelectChannelSSLListener@0.0.0.0:8443:
org.apache.geronimo.management.geronimo.KeystoreIsLocked: Keystore
'geronimo-default' is locked; please use the keystore page in the admin
console to unlock it
2010-05-16 20:43:47,986 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/jetty7/2.2/car?ServiceModule=org.apache.geronimo.configs/jetty7/2.2/car,j2eeType=GBean,name=JettySSLConnector"
org.apache.geronimo.management.geronimo.KeystoreIsLocked: Keystore
'geronimo-default' is locked; please use the keystore page in the admin
console to unlock it
	at
org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLContext(FileKeystoreManager.java:344)
	at
org.apache.geronimo.jetty7.connector.GeronimoSelectChannelSSLListener.createSSLContext(GeronimoSelectChannelSSLListener.java:45)
	at
org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:609)
	at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
	at
org.apache.geronimo.jetty7.connector.JettyConnector.doStart(JettyConnector.java:196)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525)
	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:175)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525)
	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:175)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
	at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
	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:130)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
	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$$3d667c0b.startConfiguration(<generated>)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
2010-05-16 20:43:48,032 WARN  [log] FAILED
GeronimoSelectChannelSSLListener@0.0.0.0:8443:
org.apache.geronimo.management.geronimo.KeystoreIsLocked: Keystore
'geronimo-default' is locked; please use the keystore page in the admin
console to unlock it
2010-05-16 20:43:48,039 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/jetty7/2.2/car?ServiceModule=org.apache.geronimo.configs/jetty7/2.2/car,j2eeType=GBean,name=JettySSLConnector"
org.apache.geronimo.management.geronimo.KeystoreIsLocked: Keystore
'geronimo-default' is locked; please use the keystore page in the admin
console to unlock it
	at
org.apache.geronimo.security.keystore.FileKeystoreManager.createSSLContext(FileKeystoreManager.java:344)
	at
org.apache.geronimo.jetty7.connector.GeronimoSelectChannelSSLListener.createSSLContext(GeronimoSelectChannelSSLListener.java:45)
	at
org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:609)
	at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
	at
org.apache.geronimo.jetty7.connector.JettyConnector.doStart(JettyConnector.java:196)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
	at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
	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:130)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
	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$$3d667c0b.startConfiguration(<generated>)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
[***************                         ]  38%   9s Startup failed            
org.apache.geronimo.kernel.config.LifecycleException: start of
org.apache.geronimo.configs/jetty7/2.2/car failed
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
	at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
	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:130)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
	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$$3d667c0b.startConfiguration(<generated>)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
	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:190)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
	... 15 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Configuration org.apache.geronimo.configs/jetty7/2.2/car failed to start due
to the following reasons:
  The service
ServiceModule=org.apache.geronimo.configs/jetty7/2.2/car,j2eeType=GBean,name=JettySSLConnector
did not start because Keystore 'geronimo-default' is locked; please use the
keystore page in the admin console to unlock it

	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
	... 17 more
Exception in thread "Multicast Discovery Agent Notifier"
java.lang.NoClassDefFoundError:
org/apache/openejb/server/DiscoveryRegistry$ServiceRemovedTask
	at
org.apache.openejb.server.DiscoveryRegistry.serviceRemoved(DiscoveryRegistry.java:129)
	at
org.apache.openejb.server.discovery.MulticastDiscoveryAgent$Listener$2.run(MulticastDiscoveryAgent.java:420)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
org.apache.openejb.server.DiscoveryRegistry$ServiceRemovedTask in
classloader org.apache.geronimo.configs/openejb/2.2/car
	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:422)
	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:256)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 5 more
[***************                         ]  38%   9s Startup failed           
log4j:WARN No appenders could be found for logger
(org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.


However I get the following or similar several times before the startup
process fails completely:

Loading org.apache.ger...2010-05-16 20:43:42,113 ERROR [AbstractEncryption]
Unable to decrypt
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
AES
	at javax.crypto.Cipher.getInstance(DashoA13*..)
	at
org.apache.geronimo.crypto.AbstractEncryption.decrypt(AbstractEncryption.java:74)
	at
org.apache.geronimo.crypto.EncryptionManager.decrypt(EncryptionManager.java:109)
	at
org.apache.geronimo.system.plugin.PluginRepositoryDownloader.loadUserRepositories(PluginRepositoryDownloader.java:122)
	at
org.apache.geronimo.system.plugin.PluginRepositoryDownloader.<init>(PluginRepositoryDownloader.java:80)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
	at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:911)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
	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:130)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
	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$$3d667c0b.startConfiguration(<generated>)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)

So it looks like you were right about the crypto being a problem


-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p822154.html
Sent from the Users mailing list archive at Nabble.com.

Re: Any help for a total newbie with installation?

Posted by David Jencks <da...@yahoo.com>.
Hi Steve,

I personally have never run into this particular problem.  I wonder if there is something odd about the crypto in your java installation.

Could you tell us..

java -version

echo $JAVA_HOME

which geronimo you are using (2.2?)

the stack trace (you might need to include something like -vv in the command line)

BTW for 2.2 I always start the server with bin/gsh geronimo/start-server  as I find it produces more comprehensible output than the scripts most other people seem to like.

thanks
david jencks

On May 16, 2010, at 10:05 AM, steve2727 wrote:

> 
> Hi, hope somebody can help me
> 
> I've been trying to install Apache Geronimo but have been hitting an issue I
> can't resolve when I attempt to run the server.
> 
> I am hitting the same problem on the jetty7 version on Ubuntu 9 and both the
> Windows Vista Jetty7 and Tomcat6 versions so I'm clearly getting something
> pretty fundamental wrong
> 
> I have installed Java Runtime 6 (on both Ubuntu and Windows) but when I
> attempt to run the server with factory settings (in the command window,
> 'geronimo run') it fails when trying to start up the SSL connector, saying
> that the keystore geronimo-default is locked and to unlock it from the admin
> console. However seeing as the admin console is accessed when the web server
> is running...
> 
> I have found a few forum posts about issues in old builds of geronimo in
> this area but nothing about anything this basic
> 
> Other that the factory default configuration I have also tried setting the
> SSL plugin not to load but this causes futher errors.
> 
> If somebody could help me work out what I'm managing to get wrong it would
> be much appreciated!
> 
> Thanks
> 
> Steve
> -- 
> View this message in context: http://apache-geronimo.328035.n3.nabble.com/Any-help-for-a-total-newbie-with-installation-tp821834p821834.html
> Sent from the Users mailing list archive at Nabble.com.