tomcat启动乱码问题,而且还报404

tomcat启动乱码问题,而且还报404

D:\apache-tomcat-9.0.14\bin\catalina.bat run

[2019-03-18 10:00:00,117] Artifact JDBCMessageBoard:war exploded: Waiting for server connection to start artifact deployment...

Using CATALINA_BASE:   "C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_JDBCMessageBoard"

Using CATALINA_HOME:   "D:\apache-tomcat-9.0.14"

Using CATALINA_TMPDIR: "D:\apache-tomcat-9.0.14\temp"

Using JRE_HOME:        "C:\Program Files\Java\jdk-10.0.1"

Using CLASSPATH:       "D:\apache-tomcat-9.0.14\bin\bootstrap.jar;D:\apache-tomcat-9.0.14\bin\tomcat-juli.jar"

18-Mar-2019 22:00:16.741 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏈嶅姟鍣ㄧ増鏈�:        Apache Tomcat/9.0.14

18-Mar-2019 22:00:16.792 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏋勫缓:          Dec 6 2018 21:13:53 UTC

18-Mar-2019 22:00:16.801 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.14.0

18-Mar-2019 22:00:16.802 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 7

18-Mar-2019 22:00:16.804 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.鐗堟湰:            6.1

18-Mar-2019 22:00:16.804 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 缁�.閫�:          amd64

18-Mar-2019 22:00:16.809 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 鐜鍙橀噺:             C:\Program Files\Java\jdk-10.0.1

18-Mar-2019 22:00:16.810 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 鐗堟湰:           10.0.1+10

18-Mar-2019 22:00:16.812 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.渚涘簲鍟�:            "Oracle Corporation"

18-Mar-2019 22:00:16.813 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_JDBCMessageBoard

18-Mar-2019 22:00:16.813 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:\apache-tomcat-9.0.14

18-Mar-2019 22:00:16.816 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED

18-Mar-2019 22:00:16.817 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED

18-Mar-2019 22:00:16.818 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

18-Mar-2019 22:00:16.819 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_JDBCMessageBoard\conf\logging.properties

18-Mar-2019 22:00:16.820 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

18-Mar-2019 22:00:16.821 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8

18-Mar-2019 22:00:16.823 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=

18-Mar-2019 22:00:16.823 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099

18-Mar-2019 22:00:16.824 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false

18-Mar-2019 22:00:16.826 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_JDBCMessageBoard\jmxremote.password

18-Mar-2019 22:00:16.827 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_JDBCMessageBoard\jmxremote.access

18-Mar-2019 22:00:16.828 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1

18-Mar-2019 22:00:16.829 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048

18-Mar-2019 22:00:16.829 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

18-Mar-2019 22:00:16.830 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=

18-Mar-2019 22:00:16.831 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_JDBCMessageBoard

18-Mar-2019 22:00:16.832 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\apache-tomcat-9.0.14

18-Mar-2019 22:00:16.832 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-9.0.14\temp

18-Mar-2019 22:00:16.833 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.19] using APR version [1.6.5].

18-Mar-2019 22:00:16.833 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

18-Mar-2019 22:00:16.836 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]

18-Mar-2019 22:00:18.202 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1a  20 Nov 2018]

18-Mar-2019 22:00:19.185 淇℃伅 [main] org.apache.coyote.AbstractProtocol.init 鍒濆鍖栧崗璁鐞嗗櫒 ["http-nio-8080"]

18-Mar-2019 22:00:19.564 淇℃伅 [main] org.apache.coyote.AbstractProtocol.init 鍒濆鍖栧崗璁鐞嗗櫒 ["ajp-nio-8009"]

18-Mar-2019 22:00:19.590 淇℃伅 [main] org.apache.catalina.startup.Catalina.load 鏈嶅姟鍣ㄥ湪[8,985]姣鍐呭垵濮嬪寲

18-Mar-2019 22:00:20.549 淇℃伅 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]

18-Mar-2019 22:00:20.551 淇℃伅 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.14]

18-Mar-2019 22:00:20.667 淇℃伅 [main] org.apache.coyote.AbstractProtocol.start 寮�濮嬪崗璁鐞嗗彞鏌刐"http-nio-8080"]

18-Mar-2019 22:00:20.895 淇℃伅 [main] org.apache.coyote.AbstractProtocol.start 寮�濮嬪崗璁鐞嗗彞鏌刐"ajp-nio-8009"]

18-Mar-2019 22:00:20.923 淇℃伅 [main] org.apache.catalina.startup.Catalina.start Server startup in [1,331] milliseconds

[2019-03-18 10:00:21,484] Artifact JDBCMessageBoard:war exploded: Artifact is being deployed, please wait...

Connected to server

18-Mar-2019 22:00:29.461 淇℃伅 [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 鑷冲皯鏈変竴涓狫AR琚壂鎻忕敤浜嶵LD浣嗗皻鏈寘鍚玊LD銆� 涓烘璁板綍鍣ㄥ惎鐢ㄨ皟璇曟棩蹇楄褰曪紝浠ヨ幏鍙栧凡鎵弿浣嗘湭鍦ㄥ叾涓壘鍒癟LD鐨勫畬鏁碕AR鍒楄〃銆� 鍦ㄦ壂鎻忔湡闂磋烦杩囦笉闇�瑕佺殑JAR鍙互缂╃煭鍚姩鏃堕棿鍜孞SP缂栬瘧鏃堕棿銆�

18-Mar-2019 22:00:31.380 淇℃伅 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory 閮ㄧ讲 web 搴旂敤绋嬪簭鐩綍 [D:\apache-tomcat-9.0.14\webapps\manager]

18-Mar-2019 22:00:31.833 璀﹀憡 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,370] milliseconds.

18-Mar-2019 22:00:32.342 淇℃伅 [Catalina-utility-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\apache-tomcat-9.0.14\webapps\manager] has finished in [962] ms

[2019-03-18 10:00:32,371] Artifact JDBCMessageBoard:war exploded: Artifact is deployed successfully

[2019-03-18 10:00:32,372] Artifact JDBCMessageBoa rd:war exploded: Deploy took 10,889 milliseconds

老师这样是不是代表tomcat启动成功了,为什么http://localhost:8080/输入这个地址是404错误呢

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

登陆购买课程后可参与讨论,去登陆

1回答
慕布斯645313 2019-03-19 10:23:22

你使用的是idea吗?你参考一下这个博客,https://blog.csdn.net/u012611878/article/details/80723491,修改tomcat启动中文乱码的问题。

出现404的原因是你的路径写错了,应该访问的是自己的jsp页面,试试在路径后加上/message/list.do试试吧。

  • 提问者 慕粉1469801537 #1
    老师我按照上面改的,重启之后还是乱码啊
    2019-03-19 16:08:43
  • 慕布斯645313 回复 提问者 慕粉1469801537 #2
    我不是老师啊,我还是个学生,我帮你找了一个博客,https://blog.csdn.net/youanyyou/article/details/78992998,你再试试这中方法。
    2019-03-19 17:38:22
  • 提问者 慕粉1469801537 回复 慕布斯645313 #3
    好的,谢谢
    2019-03-19 19:22:34
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
Java数据库开发与实战应用2018版
  • 参与学习           人
  • 提交作业       277    份
  • 解答问题       4297    个

Java数据库开发的必备技能,从流行的MySQL数据库开始,到Java原生的数据库管理接口JDBC的使用,再到常用的数据持久化框架MyBatis,让你向Java工程师的目标又迈进了一步!

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师