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

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条)

报告相同问题?

悬赏问题

  • ¥15 mmo能不能做客户端怪物
  • ¥15 osm下载到arcgis出错
  • ¥15 Dell g15 每次打开eiq portal后3分钟内自动退出
  • ¥200 使用python编写程序,采用socket方式获取网页实时刷新的数据,能定时print()出来就行。
  • ¥15 matlab如何根据图片中的公式绘制e和v的曲线图
  • ¥15 我想用Python(Django)+Vue搭建一个用户登录界面,但是在运行npm run serve时报错了如何解决?
  • ¥15 QQ邮箱过期怎么恢复?
  • ¥15 登录他人的vue项目显示服务器错误
  • ¥15 (标签-android|关键词-app)
  • ¥15 comsol仿真压阻传感器