You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Mark Aufdencamp <ma...@aufdencamp.com> on 2008/03/19 20:17:22 UTC

Geronimo 2.1 and OS X

Hey Guys,

I've been trying to get 2.1 running on my iBook.  Running into a couple
of problems and could use some help.

1. Safari doesn't like the binary download link.  I grabbed Firefox to
download the 2.1 binary, but would hate to see other Mac user
discouraged from using Geronimo as a result of a bad link to the
download.  I'm not sure why it doesnt like the .tar.gz link, but it
tries to add a .html extension to the file (.tar.gz.html).  I'm willing
to assist on this if I can be of help.

2. I extracted the binary and configured it in MyEclipse as a Geronimo
2.1 server.  When I start the server it dies on the remote-deploy-tomcat
GBean.  (stack trace below)

3. Utilizing the latest OS X 10.4.11 JVM - 1.5.0_13.  I think:) its
apples latest production release.

Thanks

Mark Aufdencamp
Mark@Aufdencamp.com



Module 28/64 org.apache.geronimo.configs/remote-deploy-tomcat/2.1/car   
       15:16:33,876 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="org.apache.geronimo.configs/remote-deploy-tomcat/2.1/car?J2EEApplication=null,WebModule=org.apache.geronimo.configs/remote-deploy-tomcat/2.1/car,j2eeType=JACCManager,name=JACCManager"
java.lang.ExceptionInInitializerError
	at
org.apache.geronimo.security.jacc.ApplicationPolicyConfigurationManager.<init>(ApplicationPolicyConfigurationManager.java:109)
	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:494)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
	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.GBeanInstance.start(GBeanInstance.java:541)
	at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
	at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
	at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
	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:187)
	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:534)
	at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	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.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$92600b12.startConfiguration(<generated>)
	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:156)
	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:67)
	at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
Caused by: java.lang.NullPointerException
	at org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
	at java.util.HashMap.put(HashMap.java:418)
	at java.util.Collections$SynchronizedMap.put(Collections.java:1983)
	at
org.apache.geronimo.security.ContextManager.registerSubject(ContextManager.java:265)
	at
org.apache.geronimo.security.ContextManager.<clinit>(ContextManager.java:69)
	... 38 more



Re: Geronimo 2.1 and OS X

Posted by Kevan Miller <ke...@gmail.com>.
On Mar 19, 2008, at 3:43 PM, René Jansen wrote:

> I wanted to confirm 1), same problem here.
>
> Something funny is going on with Geronimo itself on MacOSX 5.2, Java  
> 1.5:
>
> - on my Intel Macbook Pro, it runs without a hitch
> - on my dual 2.5 Ghz PPC Powermac, it hangs during startup. Like it  
> is waiting for a lock, but: when starting with either java -verbose  
> switched on or debug on, it does finish loading.

Ya, there's a startup deadlock which can occur on the Leopard JSE. I  
get it intermittently on my MacBook Pro. Heard a report, last week,  
that it's been seen on a Linux box, also... Here's a Jira with a bit  
more info -- https://issues.apache.org/jira/browse/GERONIMO-3687

The real cause of the problem is -- http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5088398

I'm able to avoid this by running with jpda (YMMV and it's a bit of a  
pain...). The following has never deadlocked for me:

./geronimo.sh jpda run

I'll start thinking about another work-around (hmm. or I wonder if the  
old work-around has been regressed)...

--kevan

Re: Geronimo 2.1 and OS X

Posted by René Jansen <rv...@xs4all.nl>.
I wanted to confirm 1), same problem here.

Something funny is going on with Geronimo itself on MacOSX 5.2, Java  
1.5:

- on my Intel Macbook Pro, it runs without a hitch
- on my dual 2.5 Ghz PPC Powermac, it hangs during startup. Like it is  
waiting for a lock, but: when starting with either java -verbose  
switched on or debug on, it does finish loading.

René.


On 19 mrt 2008, at 20:17, Mark Aufdencamp wrote:

> Hey Guys,
>
> I've been trying to get 2.1 running on my iBook.  Running into a  
> couple
> of problems and could use some help.
>
> 1. Safari doesn't like the binary download link.  I grabbed Firefox to
> download the 2.1 binary, but would hate to see other Mac user
> discouraged from using Geronimo as a result of a bad link to the
> download.  I'm not sure why it doesnt like the .tar.gz link, but it
> tries to add a .html extension to the file (.tar.gz.html).  I'm  
> willing
> to assist on this if I can be of help.
>
> 2. I extracted the binary and configured it in MyEclipse as a Geronimo
> 2.1 server.  When I start the server it dies on the remote-deploy- 
> tomcat
> GBean.  (stack trace below)
>
> 3. Utilizing the latest OS X 10.4.11 JVM - 1.5.0_13.  I think:) its
> apples latest production release.
>
> Thanks
>
> Mark Aufdencamp
> Mark@Aufdencamp.com
>


Re: Geronimo 2.1 and OS X

Posted by Kevan Miller <ke...@gmail.com>.
On Mar 19, 2008, at 3:17 PM, Mark Aufdencamp wrote:

> Hey Guys,
>
> I've been trying to get 2.1 running on my iBook.  Running into a  
> couple
> of problems and could use some help.
>
> 1. Safari doesn't like the binary download link.  I grabbed Firefox to
> download the 2.1 binary, but would hate to see other Mac user
> discouraged from using Geronimo as a result of a bad link to the
> download.  I'm not sure why it doesnt like the .tar.gz link, but it
> tries to add a .html extension to the file (.tar.gz.html).  I'm  
> willing
> to assist on this if I can be of help.

Hi Mark,
Heh. I've been living with that for a while. I normally download .zip  
images to avoid. There aren't any differences between our .zip and  
tar.gz images.

I have this same problem on other apache project downloads. If there's  
a way to fix, it would be great.

>
>
> 2. I extracted the binary and configured it in MyEclipse as a Geronimo
> 2.1 server.  When I start the server it dies on the remote-deploy- 
> tomcat
> GBean.  (stack trace below)
>
> 3. Utilizing the latest OS X 10.4.11 JVM - 1.5.0_13.  I think:) its
> apples latest production release.
<snip>
>
> Caused by: java.lang.NullPointerException
> 	at org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
> 	at java.util.HashMap.put(HashMap.java:418)
> 	at java.util.Collections$SynchronizedMap.put(Collections.java:1983)
> 	at  
> org 
> .apache 
> .geronimo 
> .security.ContextManager.registerSubject(ContextManager.java:265)
> 	at  
> org 
> .apache 
> .geronimo.security.ContextManager.<clinit>(ContextManager.java:69)
> 	... 38 more

I'm not sure how this applies to your MyEclipse environment, but this  
same error occurs when you try to run Geronimo with a bad JRE_HOME/ 
JAVA_HOME setting. On my Mac, I have the following JAVA_HOME:

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ 
CurrentJDK/Home

--kevan