grails War部署错误

时间:2013-02-25 11:29:41

标签: java tomcat grails tomcat7

我正在使用Tomcat7.0.20并且使用grails 1.3.7 我正在部署war文件时收到此错误。

  

2013年2月25日上午1:54:57 org.apache.catalina.startup.HostConfig deployWAR       信息:部署Web应用程序归档IH-core.war       2013年2月25日上午1:55:35 org.apache.catalina.core.ContainerBase addChildInternal       严重:ContainerBase.addChild:开始:       org.apache.catalina.LifecycleException:无法启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ IH-core]]           在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)           在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)           在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)           在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)           在org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)           在org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)           在org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)           在org.apache.catalina.startup.HostConfig.check(HostConfig.java:1363)           在org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:294)           在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)           在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)           在org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1242)           at org.apache.catalina.core.ContainerBase $ ContainerBackgroundProcessor.processChildren(ContainerBase.java:1400)           at org.apache.catalina.core.ContainerBase $ ContainerBackgroundProcessor.processChildren(ContainerBase.java:1410)           在org.apache.catalina.core.ContainerBase $ ContainerBackgroundProcessor.run(ContainerBase.java:1389)           在java.lang.Thread.run(Thread.java:662)       引起:java.lang.NoSuchMethodError:org.apache.tomcat.util.http.mapper.Mapper.addWrapper(Ljava / lang / String; Ljava / lang / Object; ZZ)V           at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3173)           at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3130)           在org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1301)           在org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390)           在org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896)           在org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322)           在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)           在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)           在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)           在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)           ......还有15个       2013年2月25日上午1:55:35 org.apache.catalina.startup.HostConfig deployWAR       严重:部署Web应用程序存档IH-core.war时出错       java.lang.IllegalStateException:ContainerBase.addChild:start:org.apache.catalina.LifecycleException:无法启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ IH-core]]           在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:816)           在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)           在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)           在org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)           在org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)           在org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)           在org.apache.catalina.startup.HostConfig.check(HostConfig.java:1363)           在org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:294)           在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)           在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)           在org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1242)           at org.apache.catalina.core.ContainerBase $ ContainerBackgroundProcessor.processChildren(ContainerBase.java:1400)           at org.apache.catalina.core.ContainerBase $ ContainerBackgroundProcessor.processChildren(ContainerBase.java:1410)           在org.apache.catalina.core.ContainerBase $ ContainerBackgroundProcessor.run(ContainerBase.java:1389)           在java.lang.Thread.run(Thread.java:662)

请帮助我找到解决方案。

1 个答案:

答案 0 :(得分:1)

如果我没记错的话,请检查config.groovy中的servlet版本设置。

您的错误似乎与Grails中某些内容引用的某些tomcat代码有关。