Mr_sswen 2019-07-25 11:06 采纳率: 50%
浏览 2260
已采纳

IDEA+Tomcat8.5运行报错

直接用tomcat8.exe启动能访问到localhost:8080,但是用IDEA运行web项目就报错,试过重装IDEA,修改catalina.sh,都没有解决,web界面是这样的图片说明

idea的报错信息是这样的

D:\Java\Tomcat8.5\apache-tomcat-8.5.43\bin\catalina.bat run
Using CATALINA_BASE: "C:\Users\Administrator.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_431_My"
Using CATALINA_HOME: "D:\Java\Tomcat8.5\apache-tomcat-8.5.43"
Using CATALINA_TMPDIR: "D:\Java\Tomcat8.5\apache-tomcat-8.5.43\temp"
Using JRE_HOME: "D:\Java_jdk"
Using CLASSPATH: "D:\Java\Tomcat8.5\apache-tomcat-8.5.43\bin\bootstrap.jar;D:\Java\Tomcat8.5\apache-tomcat-8.5.43\bin\tomcat-juli.jar"
25-Jul-2019 11:01:38.026 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.43
25-Jul-2019 11:01:38.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 4 2019 20:53:15 UTC
25-Jul-2019 11:01:38.029 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.43.0
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 8.1
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.3
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\Java_jdk\jre
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.7.0_80-b15
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Administrator.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_431_My
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Java\Tomcat8.5\apache-tomcat-8.5.43
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_431_My\conf\logging.properties
25-Jul-2019 11:01:38.030 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
25-Jul-2019 11:01:38.031 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
25-Jul-2019 11:01:38.031 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
25-Jul-2019 11:01:38.031 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
25-Jul-2019 11:01:38.031 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
25-Jul-2019 11:01:38.031 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
25-Jul-2019 11:01:38.032 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
25-Jul-2019 11:01:38.032 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
25-Jul-2019 11:01:38.032 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
25-Jul-2019 11:01:38.032 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator.IntelliJIdea2018.3\system\tomcat\Tomcat_8_5_431_My
25-Jul-2019 11:01:38.032 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\Java\Tomcat8.5\apache-tomcat-8.5.43
25-Jul-2019 11:01:38.033 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\Java\Tomcat8.5\apache-tomcat-8.5.43\temp
25-Jul-2019 11:01:38.033 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0].
25-Jul-2019 11:01:38.033 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
25-Jul-2019 11:01:38.033 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
25-Jul-2019 11:01:38.038 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1c 28 May 2019]
25-Jul-2019 11:01:38.137 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
25-Jul-2019 11:01:38.151 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Jul-2019 11:01:38.176 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
25-Jul-2019 11:01:38.178 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Jul-2019 11:01:38.178 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 507 ms
25-Jul-2019 11:01:38.214 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
25-Jul-2019 11:01:38.214 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.43
25-Jul-2019 11:01:38.222 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
25-Jul-2019 11:01:38.232 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
25-Jul-2019 11:01:38.235 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 56 ms
Connected to server
25-Jul-2019 11:01:48.223 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Java\Tomcat8.5\apache-tomcat-8.5.43\webapps\manager]
25-Jul-2019 11:01:48.507 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Java\Tomcat8.5\apache-tomcat-8.5.43\webapps\manager] has finished in [284] ms

希望有相同错误的老哥看到后能指点一下,这里卡了好久了,万分感激

  • 写回答

3条回答 默认 最新

  • 花径不曾缘客扫 2019-07-25 13:38
    关注

    要么打war包放到Tomcat的webapp目录下要么在项目添加server然后运行

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!