tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravi sankar <>
Subject Re: Tomee 7.0.0-M3 drop in war configuration
Date Wed, 04 May 2016 13:57:30 GMT
Doc says
Tomcat contains an old non-compliant version of the javax.annotationclasses and these invalid
classes must be updated so OpenEJB can processannotations. Simply, replace the annotations-api.jar
in the Tomcat libdirectory with the updated annotations-api.jar in the OpenEJB war.There is
no annotations-api.jar in lattest tomee.war file
so deleted annotations-api.jar 
Wow!!!It's magic


    On Wednesday, 4 May 2016 11:52 PM, Romain Manni-Bucau <> wrote:

 should be written somewhere on the website but tomcat provides persistence context annotation
in a too old version:
 mv lib/annotations-api.jar lib/annotations-api.jar_
sovles this issue

Romain Manni-Bucau
@rmannibucau |  Blog | Github | LinkedIn | Tomitriber | JavaEE Factory
2016-05-04 15:29 GMT+02:00 ravi sankar <>:

step 1: Downloaded tomcat from
step 2: Downloaded tomee drop in war from
step 3: Renamed tomee-webapp-7.0.0-M3.war to tomee.war and extracted the tomee.war to tomee
folder and copied tomee folder to webapps folder
step 4: Copied tomee-loader.jar from webapps/tomee/lib to tomcat/lib folder
step 5: Added   <Listener className="org.apache.tomee.loader.OpenEJBListener" /> to
step 6: Started tomcat server

Tomcat started with out any errors

Then I deployed following project

Note: eclipse link is jpa provider 

Deployment failed 

    On Wednesday, 4 May 2016 10:56 PM, Romain Manni-Bucau <> wrote:

 org.apache.tomee.loader.OpenEJBListener is the right one yes. feel free to edit the doc page
with the blue pencil button.

Do you have a javaee-api-6* anywhere? this can create this exception otherwise javaee-api-7
should be there and if tomee is installed properly you shouldn't get this exception

Romain Manni-Bucau
@rmannibucau |  Blog | Github | LinkedIn | Tomitriber | JavaEE Factory
2016-05-04 14:42 GMT+02:00 ravi sankar <>:

Looks like the documentation link is for tomee 1.x.x not for tomee7.x.x
documentation says to copy openejb-loder.jar to lib and added <Listener className="org.apache.openejb.loader.OpenEJBListener"/>
to server.xml
I am getting class not found exception "org.apache.openejb.loader.OpenEJBListener"
After copying tomee-loader.jar to lib and adding <Listener className="org.apache.tomee.loader.OpenEJBListener"/> 
I am able to start the server.
But when i try to deploy the application I am getting 

04-May-2016 22:36:01.270 SEVERE [localhost-startStop-2] org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/tomee_embedded]]
        at org.apache.catalina.util.LifecycleBase.start(
        at org.apache.catalina.core.ContainerBase.addChildInternal(
        at org.apache.catalina.core.ContainerBase.addChild(
        at org.apache.catalina.core.StandardHost.addChild(
        at org.apache.catalina.startup.HostConfig.deployWAR(
        at org.apache.catalina.startup.HostConfig$
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/SynchronizationType;
        at org.apache.openejb.config.PersistenceContextAnnFactory$DirectPersistenceContext.synchronization(
        at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildPersistenceContext(
        at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildAnnotatedRefs(
        at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
        at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
        at org.apache.openejb.config.AnnotationDeployer.deploy(
        at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(
        at org.apache.openejb.config.ConfigurationFactory.configureApplication(
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
        at org.apache.catalina.core.StandardContext.startInternal(
        at org.apache.catalina.util.LifecycleBase.start(
        ... 10 more


    On Wednesday, 4 May 2016 5:17 PM, Romain Manni-Bucau <> wrote: openejb can be replaced by tomee for the
war name
Le 4 mai 2016 09:14, "ravi sankar" <> a écrit :

Hi ,
Can some point me to the documentation for Tomee 7.0.0 drop in war configuration.




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message