war部署到Tomee中启动报错如何解决?

fleamboy 2013-10-09 03:12:28
war部署到Tomee中启动报错,但是同一个项目部署在weblogic或者websphere中都正常,这是什么原因呢?
INFO: ------------------------- localhost -> /WebxfireService
十月 09, 2013 11:56:43 上午 org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebxfireService]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module WebxfireService: 26
at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1903)
at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1073)
at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module WebxfireService: 26
at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:766)
at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:192)
at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1901)
... 18 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
at org.apache.xbean.asm.ClassReader.readClass(Unknown Source)
at org.apache.xbean.asm.ClassReader.accept(Unknown Source)
at org.apache.xbean.asm.ClassReader.accept(Unknown Source)
at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:965)
at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:123)
at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:136)
at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:63)
at org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:52)
at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:758)
... 20 more

十月 09, 2013 11:56:43 上午 org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive /opt/apache-tomee-plus-1.5.2/webapps/WebxfireService.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebxfireService]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
...全文
436 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
Defonds 2013-10-09
Tomee 没玩过。放在 tomcat 下头能行不
回复
失落夏天 2013-10-09
想一想Eclipse中的环境和tomcat中的环境哪些不一样。。
回复
全能码农-ss 2013-10-09
tomcat的jdk选的什么版本?
回复
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2013-10-09 03:12
社区公告
暂无公告