idea创建多modules项目后,tomcat启动失败

发布于 2022-09-05 03:30:27 字数 6987 浏览 13 评论 0

我的项目目录创建之后,如下图所示 :

clipboard.png

但是启动tomcat后提示报错,如下图所示:

clipboard.png

/Users/zhangwei/Library/apache-tomcat-8.5.13/bin/catalina.sh run
[2017-06-29 09:50:05,057] Artifact awbeciweb:war exploded: Server is not connected. Deploy is not available.
29-Jun-2017 21:50:10.742 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.13
29-Jun-2017 21:50:10.747 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Mar 27 2017 14:25:04 UTC
29-Jun-2017 21:50:10.748 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.13.0
29-Jun-2017 21:50:10.748 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Mac OS X
29-Jun-2017 21:50:10.748 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.12.5
29-Jun-2017 21:50:10.748 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          x86_64
29-Jun-2017 21:50:10.748 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
29-Jun-2017 21:50:10.749 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_121-b13
29-Jun-2017 21:50:10.749 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
29-Jun-2017 21:50:10.749 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /Users/zhangwei/Library/Caches/IntelliJIdea2017.1/tomcat/Unnamed_awbeciroot
29-Jun-2017 21:50:10.749 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /Users/zhangwei/Library/apache-tomcat-8.5.13
29-Jun-2017 21:50:10.750 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/zhangwei/Library/Caches/IntelliJIdea2017.1/tomcat/Unnamed_awbeciroot/conf/logging.properties
29-Jun-2017 21:50:10.750 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
29-Jun-2017 21:50:10.750 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
29-Jun-2017 21:50:10.750 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1111
29-Jun-2017 21:50:10.750 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
29-Jun-2017 21:50:10.750 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
29-Jun-2017 21:50:10.751 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
29-Jun-2017 21:50:10.751 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
29-Jun-2017 21:50:10.751 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
29-Jun-2017 21:50:10.751 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/zhangwei/Library/Caches/IntelliJIdea2017.1/tomcat/Unnamed_awbeciroot
29-Jun-2017 21:50:10.751 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Users/zhangwei/Library/apache-tomcat-8.5.13
29-Jun-2017 21:50:10.751 ?? [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/zhangwei/Library/apache-tomcat-8.5.13/temp
29-Jun-2017 21:50:10.752 ?? [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/zhangwei/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
29-Jun-2017 21:50:10.845 ?? [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8089"]
29-Jun-2017 21:50:10.867 ?? [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
29-Jun-2017 21:50:10.869 ?? [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
29-Jun-2017 21:50:10.870 ?? [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
29-Jun-2017 21:50:10.870 ?? [main] org.apache.catalina.startup.Catalina.load Initialization processed in 382 ms
29-Jun-2017 21:50:10.893 ?? [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
29-Jun-2017 21:50:10.893 ?? [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.13
29-Jun-2017 21:50:10.899 ?? [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8089"]
29-Jun-2017 21:50:10.904 ?? [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
29-Jun-2017 21:50:10.906 ?? [main] org.apache.catalina.startup.Catalina.start Server startup in 35 ms
Connected to server
[2017-06-29 09:50:11,363] Artifact awbeciweb:war exploded: Artifact is being deployed, please wait...
[2017-06-29 09:50:11,392] Artifact awbeciweb:war exploded: Error during artifact deployment. See server log for details.
29-Jun-2017 21:50:20.904 ?? [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /Users/zhangwei/Library/Caches/IntelliJIdea2017.1/tomcat/Unnamed_awbeciroot/conf/Catalina/localhost/ROOT.xml
29-Jun-2017 21:50:21.190 ?? [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /Users/zhangwei/Library/Caches/IntelliJIdea2017.1/tomcat/Unnamed_awbeciroot/conf/Catalina/localhost/ROOT.xml has finished in 285 ms
29-Jun-2017 21:50:21.190 ?? [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /Users/zhangwei/Library/apache-tomcat-8.5.13/webapps/manager
29-Jun-2017 21:50:21.214 ?? [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /Users/zhangwei/Library/apache-tomcat-8.5.13/webapps/manager has finished in 24 ms

请问下如何解决!!!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

腹黑女流氓 2022-09-12 03:30:27

问题解决了,把tomcat8.5.13换成8.5.16就可以了

小兔几 2022-09-12 03:30:27

有可能是Servlet的包没导进去

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文