资讯专栏INFORMATION COLUMN

解决macos下idea创建多modules项目时启动tomcat报错问题

魏明 / 1522人阅读

摘要:

/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
问题一:Maven包缺失


问题一解决办法:在Maven projects上面双击相应的报错包就自动下载maven缺失的包了,好像有其它方法,暂且这么做吧!!! 问题二:Tomcat8.5.13启动报错,换成8.5.16就OK了,可能跟版本兼容性相关吧 问题二:解决办法:换tomcat版本

1.系统环境+jdk+IDE+Tomca​t版本不统一
2.在mac系统安装Apache Tomcat的详细步骤
3.Java一步一步构建web系统 在IDEA下用Maven搭建多模块项目

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/67252.html

相关文章

  • mac安装JAVA开发工具(6)------tomcatIDEA及nginx转发80端口到808

    摘要:及的协作开发在下开发少不了使用系统下的端口是权限才能使用因此使用启动端口时总会出现问题解决方案做端口转发监听端口转发到项目使用端口第一种参考上设置端口转发的方法这种方法可以解决但是每次开机启动都要设置笔者没有写脚本去处理太麻烦所以本人采用第 IDEA Tomcat 及Nginx的协作开发 在mac下开发java 少不了使用tomcat macos系统下的80端口是root权限才能使用...

    Godtoy 评论0 收藏0
  • mac安装JAVA开发工具(6)------tomcatIDEA及nginx转发80端口到808

    摘要:及的协作开发在下开发少不了使用系统下的端口是权限才能使用因此使用启动端口时总会出现问题解决方案做端口转发监听端口转发到项目使用端口第一种参考上设置端口转发的方法这种方法可以解决但是每次开机启动都要设置笔者没有写脚本去处理太麻烦所以本人采用第 IDEA Tomcat 及Nginx的协作开发 在mac下开发java 少不了使用tomcat macos系统下的80端口是root权限才能使用...

    caige 评论0 收藏0
  • Mac ox 使用idea搭建springboot入门程序,启动成功,访问404错误!

    摘要:在创建好的空的中创建新的。其实到目前为止,正常情况下我们入门已经搭建好了,只需执行的入口就可以。例如使用类似上面的包结构。代码如下重新运行一下程序,网址访问后就会看到信息了。 记录工作学习点点滴滴,希望对大家有帮助 问题描述 之前使用windows的idea环境自动搭建springboot并没有出现问题,所以觉得很简单,转移的mac ox平台想着自己也搭建一下springboot的微服...

    awokezhou 评论0 收藏0

发表评论

0条评论

魏明

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<