请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

tomcat运行有错误

E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\bin\catalina.bat run
[2018-06-12 09:38:39,532] Artifact permission:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\28941\.IntelliJIdea2018.1\system\tomcat\Unnamed_permission"
Using CATALINA_HOME:   "E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50"
Using CATALINA_TMPDIR: "E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_172"
Using CLASSPATH:       "E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\bin\bootstrap.jar;E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:50113', transport: 'socket'
12-Jun-2018 21:38:40.836 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.50
12-Jun-2018 21:38:40.839 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Feb 7 2018 20:06:05 UTC
12-Jun-2018 21:38:40.839 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.50.0
12-Jun-2018 21:38:40.839 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
12-Jun-2018 21:38:40.839 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_172\jre
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_172-b11
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\28941\.IntelliJIdea2018.1\system\tomcat\Unnamed_permission
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\28941\.IntelliJIdea2018.1\system\tomcat\Unnamed_permission\conf\logging.properties
12-Jun-2018 21:38:40.840 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
12-Jun-2018 21:38:40.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50113,suspend=y,server=n
12-Jun-2018 21:38:40.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:C:\Users\28941\.IntelliJIdea2018.1\system\captureAgent\debugger-agent.jar=file:/C:/Users/28941/AppData/Local/Temp/capture5166.props
12-Jun-2018 21:38:40.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
12-Jun-2018 21:38:40.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
12-Jun-2018 21:38:40.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
12-Jun-2018 21:38:40.841 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\28941\.IntelliJIdea2018.1\system\tomcat\Unnamed_permission
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50
12-Jun-2018 21:38:40.842 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\temp
12-Jun-2018 21:38:40.842 信息 [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: C:\Program Files\Java\jdk1.8.0_172\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_172\bin;E:\Program Files\curl\bin;E:\Program Files\nodejs\;C:\Program Files (x86)\VanDyke Software\Clients\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;D:\Resource\Go\\bin;;D:\Program Files\Microsoft VS Code\bin;C:\Users\28941\AppData\Roaming\npm;C:\Program Files (x86)\VanDyke Software\Clients\;C:\Users\28941\go\bin;.
12-Jun-2018 21:38:40.990 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
12-Jun-2018 21:38:41.008 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
12-Jun-2018 21:38:41.010 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
12-Jun-2018 21:38:41.013 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
12-Jun-2018 21:38:41.013 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 677 ms
12-Jun-2018 21:38:41.046 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
12-Jun-2018 21:38:41.047 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.50
12-Jun-2018 21:38:41.060 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
12-Jun-2018 21:38:41.071 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
12-Jun-2018 21:38:41.074 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 61 ms
Connected to server
[2018-06-12 09:38:41,248] Artifact permission:war exploded: Artifact is being deployed, please wait...
12-Jun-2018 21:38:44.109 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[2018-06-12 09:38:44,187] Artifact permission:war exploded: Artifact is deployed successfully
[2018-06-12 09:38:44,187] Artifact permission:war exploded: Deploy took 2,940 milliseconds
12-Jun-2018 21:38:51.070 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\webapps\manager
12-Jun-2018 21:38:51.203 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12-Jun-2018 21:38:51.216 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\webapps\manager has finished in 145 ms

这是Tomcat运行出现的日志信息

正在回答 回答被采纳积分+3

3回答

Jimin 2018-06-13 12:00:32

404错误,可以很确切的说,是请求错了,后台接口还没处理。你看看你项目是不是配置的/permission,而使用/进行请求的?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕烨璇凝 #1
    好的,我再尝试一下
    回复 有任何疑惑可以回复我~ 2018-06-13 12:02:48
  • 提问者 慕烨璇凝 #2
    老师,运行起来还是不行,tomcat里面配置的是 / 的,但是运行起来就是404,能远程帮我调试一下么?
    回复 有任何疑惑可以回复我~ 2018-06-13 14:32:39
  • Jimin 回复 提问者 慕烨璇凝 #3
    你是手动放到tomcat里运行的?如果是,把ROOT当做主目录应该就可以了,ROOT文件夹下直接是你项目的代码,不包含permission一层
    回复 有任何疑惑可以回复我~ 2018-06-13 15:46:36
提问者 慕烨璇凝 2018-06-13 11:57:14

https://img1.sycdn.imooc.com//szimg/5b2095e50001382808960353.jpg当时就是这个显示,感觉有点像是lomback的问题

0 回复 有任何疑惑可以回复我~
Jimin 2018-06-12 23:58:20

你好,这日志里没看见有什么错误啊?你指的是什么,是贴错了?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕烨璇凝 #1
    [2018-06-12 09:38:44,187] Artifact permission:war exploded: Deploy took 2,940 milliseconds
    12-Jun-2018 21:38:51.070 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\webapps\manager
    12-Jun-2018 21:38:51.203 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    12-Jun-2018 21:38:51.216 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\Tomcat\apache-tomcat-8.0.50\apache-tomcat-8.0.50\webapps\manager has finished in 145 ms
    
    最后这一块感觉有问题,运行起来和视频对不上
    回复 有任何疑惑可以回复我~ 2018-06-13 11:06:35
  • Jimin 回复 提问者 慕烨璇凝 #2
    咱们机器不同,配置不同,使用的组件版本可能也不同,因此日志也不会完全相同的。你说你遇到的具体的错吧~
    回复 有任何疑惑可以回复我~ 2018-06-13 11:14:22
  • 提问者 慕烨璇凝 回复 Jimin #3
    就是运行起来是404,视频是500,错误不同
    回复 有任何疑惑可以回复我~ 2018-06-13 11:48:39
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信