tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Tomee 7.0.0-M3 drop in war configuration
Date Wed, 04 May 2016 12:56:30 GMT
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 <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-05-04 14:42 GMT+02:00 ravi sankar <sankar_ravi_c@yahoo.co.in>:

> 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(LifecycleBase.java:153)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoSuchMethodError:
> javax.persistence.PersistenceContext.synchronization()Ljavax/persistence/SynchronizationType;
>         at
> org.apache.openejb.config.PersistenceContextAnnFactory$DirectPersistenceContext.synchronization(PersistenceContextAnnFactory.java:118)
>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildPersistenceContext(AnnotationDeployer.java:4579)
>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.buildAnnotatedRefs(AnnotationDeployer.java:3980)
>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2907)
>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1946)
>         at
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:375)
>         at
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:416)
>         at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1022)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1214)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1094)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>         ... 10 more
>
>
>
>
>
> On Wednesday, 4 May 2016 5:17 PM, Romain Manni-Bucau <
> rmannibucau@gmail.com> wrote:
>
>
> http://tomee.apache.org/manual-installation.html openejb can be replaced
> by tomee for the war name
> Le 4 mai 2016 09:14, "ravi sankar" <sankar_ravi_c@yahoo.co.in.invalid> a
> écrit :
>
> Hi ,
> Can some point me to the documentation for Tomee 7.0.0 drop in war
> configuration.
>
> Thanks,Ravi
>
>
>
>

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