On Jun 16, 2007, at 8:37 AM, Vivian Steller wrote:

Hello, 
I"ve installed unzipped geronimo-tomcat6-jee5-2.0-M6 on Mac OS X and tried starting the app server.

I get the following exception:

13:14:09,682 INFO  [OpenEJB] Auto-deploying ejb MEJB: EjbDeployment(deployment-id=MEJBGBean/MEJB, container-id=null)
13:14:10,639 INFO  [OpenEJB] Using directory /opt/geronimo-tomcat6-jee5-2.0-M6-rc1/var/temp for stateful session passivation
13:14:11,746 ERROR [[/]] "Restricted listeners property file not found
13:14:15,205 INFO  [MailGBean] JavaMail session bound to ger:/MailSession
13:14:16,925 ERROR [SecurityInitializer] Error registering interceptor
java.lang.NullPointerException
        at org.apache.geronimo.security.SubjectId.hashCode(SubjectId.java:79)
        at java.util.Hashtable.put(Hashtable.java:401)
        at org.apache.geronimo.security.ContextManager.registerSubject(ContextManager.java:269)
        at org.apache.geronimo.corba.security.ServerSecurityInterceptor.<init>(ServerSecurityInterceptor.java:70)
        at org.apache.geronimo.corba.security.SecurityInitializer.post_init(SecurityInitializer.java:117)
        at org.apache.yoko.orb.OBCORBA.ORB_impl.initialize(ORB_impl.java:397)
        at org.apache.yoko.orb.OBCORBA.ORB_impl.setParameters(ORB_impl.java:1060)
        at org.apache.yoko.orb.OBCORBA.ORB_impl.set_parameters(ORB_impl.java:1463)
        at org.omg.CORBA.ORB.init(ORB.java:197)
...

(There are some more Exceptions..)

Anyone had the same error?
Btw I'm running JVM 1.5.0_07 on Mac OS X 10.4.9

Hi Vivian,
There's a problem in your environment settings -- either your JRE_HOME or JAVA_HOME setting is incorrect. As a result, the java ext or endorsed dirs (I don't remember which) is not being configured properly before java is invoked. I'm assuming that you're using geronimo.sh (or startup.sh) to start geronimo (which I recommend).

$ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
$ ./geronimo.sh run
Using GERONIMO_BASE:   /Users/kevan/geronimo/server/trunk/target/geronimo-jetty6-jee5-2.0-SNAPSHOT
Using GERONIMO_HOME:   /Users/kevan/geronimo/server/trunk/target/geronimo-jetty6-jee5-2.0-SNAPSHOT
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
...

--kevan