Hi Mike,
I'm not too sure how Eclipse starts and manages Tomcat.
Dario, I seem to recall you mentioning this exact situation in your
Tomcat/OpenEJB article. Do you happen to have any insight?
-David
On Apr 1, 2008, at 3:29 AM, Mike Otto wrote:
Hello
I am testing out openejb 3.0 beta 2 release with tomcat 6.0.16 and
jdk 1.6.0_05
openejb.war and ejb-examples-1.0.war work fine as long as I start
tomcat
manually in bin/catalina.bat
Starting tomcat in eclipse leads to a error (see below)
in server.xml
<Listener className="org.apache.openejb.loader.OpenEJBListener"/>
I guess this is because
StandardServer server = (StandardServer)ServerFactory.getServer();
is null in this context. But I don't know why.
Any hints?
Best Regards, Mike
java.lang.NullPointerException
at
org.apache.openejb.loader.OpenEJBListener.init(OpenEJBListener.java:
79)
at
org
.apache
.openejb.loader.OpenEJBListener.lifecycleEvent(OpenEJBListener.java:
62)
at
org
.apache
.catalina
.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org
.apache.catalina.core.StandardServer.initialize(StandardServer.java:
770)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
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.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
java.lang.reflect.InvocationTargetException