我使用jfinal_weixin在本地main启动使用测试自动回复都可以,
但是按教程https://my.oschina.net/jfinal/blog/353062
部署在本地tomcat就不行了。但是发送消息也没有公众号出现故障的提示。
tomcat提示:
- [true], sendfile [true], accept filters [false], random [true].
- 06-Dec-2018 09:41:46.167 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
- 06-Dec-2018 09:41:46.167 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1 11 Sep 2018]
- 06-Dec-2018 09:41:46.383 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
- 06-Dec-2018 09:41:46.815 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
- 06-Dec-2018 09:41:46.837 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
- 06-Dec-2018 09:41:46.837 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
- 06-Dec-2018 09:41:46.837 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1323 ms
- 06-Dec-2018 09:41:46.884 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
- 06-Dec-2018 09:41:46.884 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.35
- 06-Dec-2018 09:41:47.494 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
- 06-Dec-2018 09:41:47.495 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
- 06-Dec-2018 09:41:47.502 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]
- 06-Dec-2018 09:41:47.517 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
- 06-Dec-2018 09:41:47.517 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 680 ms
server.xml设置
- <Host name="localhost" appBase="webapps"
- unpackWARs="true" autoDeploy="true">
- <Context path="" docBase="C:\common\java\apache-tomcat-8.5.35-weixin\www\my_projects" reloadable="false" />
- <!-- SingleSignOn valve, share authentication between web applications
- Documentation at: /docs/config/valve.html -->
- <!--
- <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
- -->
- <!-- Access log processes all example.
- Documentation at: /docs/config/valve.html
- Note: The pattern used is equivalent to using pattern="common" -->
- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
- prefix="localhost_access_log" suffix=".txt"
- pattern="%h %l %u %t "%r" %s %b" />
还有个问题:maven install的时候会有junit的错误,自己加jar也不行,要把测试类先移除,才能install成功。这是什么原因?