Intellij Ideas Ultimate Tomcat 7未启动我的项目

发布于 2025-02-04 11:39:00 字数 3027 浏览 3 评论 0原文

我已经解决了Grails Project的Groovy的所有问题,但是该项目并没有从我的Intellij想法开始。

这是我陷入困境3天的错误。

该项目可以通过Grails run-app命令在8080上运行正常。 我使用Grails 2.4.4,Tomcat 7,因为该项目是一个旧项目,Java 1.7,因为2.4.4 Grails与1.7 JDK和SDKMAN最有效地在MacOS 12.4上管理我的Java配置

|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
.......................................................     [copy] Copying 1 file to /Users/paradox/Developer/contractualprojects/yoska/kona-coach/target/work
..
|Running Grails application
Error |
2022-06-05 16:36:46,385 [Tomcat-startStop-1] ERROR core.ContainerBase  - A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/kona-coach]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:188)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/kona-coach]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    ... 6 more
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
    at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:90)
    at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1546)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1268)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more

Error |
Server failed to start: Failed to start component [StandardServer[-1]]

Process finished with exit code 1```

I have resolved all issues of the Groovy on grails project but the project is not starting in my intellij idea.

This is the error I am stuck at for 3 days now.

The project runs fine with grails run-app command on port 8080
I am using grails 2.4.4, tomcat 7 because the project is an old project, java 1.7 because 2.4.4 grails works best with 1.7 jdk and sdkman to manage my java configurations over a macos 12.4

|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
.......................................................     [copy] Copying 1 file to /Users/paradox/Developer/contractualprojects/yoska/kona-coach/target/work
..
|Running Grails application
Error |
2022-06-05 16:36:46,385 [Tomcat-startStop-1] ERROR core.ContainerBase  - A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/kona-coach]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:188)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/kona-coach]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    ... 6 more
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
    at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:90)
    at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1546)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1268)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more

Error |
Server failed to start: Failed to start component [StandardServer[-1]]

Process finished with exit code 1```

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文