无法访问网站了
来源:10-6 Eclipse远程调试下
姜岑
2020-02-22
在配置 wechat 之前还是可以访问网站的,
问题 1 : 这次不知道哪里配置错误, 服务器上的 tomcat 是处于运行状态, 但是访问不了. 在 logs 中 catalina.out 显示如下错误 :
22-Feb-2020 15:44:23.524 INFO [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: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
22-Feb-2020 15:44:23.799 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
22-Feb-2020 15:44:23.810 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
22-Feb-2020 15:44:23.868 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1213 ms
22-Feb-2020 15:44:23.923 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
22-Feb-2020 15:44:23.923 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.51
Debugger failed to attach: handshake failed - received >POST http://ch< - expected >JDWP-Handshake<
Debugger failed to attach: handshake failed - received >CONNECT check.< - expected >JDWP-Handshake<
Debugger failed to attach: recv failed during handshake: Resource temporarily unavailable
Debugger failed to attach: recv failed during handshake: Resource temporarily unavailable
查了一下好像是 关于jdwp端口与http服务端口的问题, 不太明白, 辛苦老师帮忙看一下.
问题 2 : 还有就是之前页面中显示 ??? , 我查看了一下, 都添加了
<meta charset="utf-8"
每个页面都有, 这个是什么问题
写回答
1回答
-
同学好,先回答问题2,问题2是因为你spring解析静态html页面的时候,编码不一致,你可以在ide右键相关的html页面,看看属性里面该页面的编码是否为utf8,如果是,参考
https://blog.csdn.net/qq_35495339/article/details/92578254
进行处理。不是请改成utf8
第一个问题的话,主要看看你先前改了啥,换个端口看看能否解决问题?
012020-02-26
相似问题