tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Sébastien Scrève (JIRA) <>
Subject [jira] Created: (OPENEJB-961) Launching OpenEJB with WTP is tricky
Date Wed, 19 Nov 2008 09:39:44 GMT
Launching OpenEJB with WTP is tricky

                 Key: OPENEJB-961
             Project: OpenEJB
          Issue Type: Bug
          Components: tomcat
    Affects Versions: 3.1, 3.0
         Environment: OpenEJB 3.1, Tomcat 5.5, WTP 3.
            Reporter: Jean-Sébastien Scrève

I've been working with OpenEJB, Tomcat 5.5 and WTP for some time and I have a problem regarding
the OpenEJB deployment in Tomcat.

By default, OpenEJB is installed into Tomcat itself and everything works fine.
With WTP, we have the possibility to let the Tomcat installation unchanged and define a Context
that points to our web application. (The context is defined in the server.xml configuration
file). Doing that allows us to put our web application wherever we want.
Currently, defining OpenEJB as a context in Tomcat fails if OpenEJB is not in the Tomcat appBase
directory : an exception is launched at startup :

	at org.apache.openejb.tomcat.loader.OpenEJBListener.lifecycleEvent(
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
	at org.apache.catalina.core.StandardServer.initialize(
	at org.apache.catalina.startup.Catalina.load(
	at org.apache.catalina.startup.Catalina.load(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.catalina.startup.Bootstrap.load(
	at org.apache.catalina.startup.Bootstrap.main(

By defining OpenEJB as a context, I mean adding something like that in the server.xml :
<Context docBase="D:\tempWebApp\openejb-tomcat-webapp-3.1.0" path="" reloadable="false"/>

It appears that OpenEJB looks up for the openejb web app in the appBase of Tomcat only. So
defining the web app in a context does not work properly.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message