今天在配置服务器,并且安装完成,tomocat服务器也正常运行的情况下,点击login,界面显示HTTP Status 404,这让我百思不得其解,于是就开始了我的分析之路:错误如图(不过404的界面似乎都长这样)
1:查看tomocat服务器是否正常运行,查看web服务器的运行时长,发现刷新时间正常;
2:查看login时打开的html界面login.html是否存在,找到相应路径下查看login.html,单独以浏览器的方式打开正常;
3:以可视化的界面打开tomocat或者直接在logs中查看日志,直接查看错误原因;
2017-6-27 14:23:23 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 严重: The web application [/gpsweb] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 2017-6-27 14:23:23 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/gpsweb] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak. 2017-6-27 14:23:23 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/gpsweb] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak. 2017-6-27 14:23:23 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 2017-6-27 14:23:23 org.apache.jk.common.ChannelSocket init 信息: JK:
出现如图所示原因,E:Program Files (x86)tomcatconfCatalinalocalhost,找到如下路径,删除下面两个xml文件,重启tomocat
4:出现如下错误:
驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接
则应该查看数据库端口是否能通。sql server 的端口为1433 cmd--telnet ip 1433,查看1433端口。
如果无法确认是否为数据库链接问题,则可以通过修改jdbc文件链接到其他1433端口通的数据库,查看服务能否正常启动
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“java.lang.RuntimeException: Could not generate DH keypair”。 at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1368) at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1412) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1058) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:833) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:716) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.commons.dbcp.B