我正在使用oracle java 7在centos7中设置一个新服务器,并且已经尝试了java 8。
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
我尝试过tomcat 7也都给出相同的结果。我相信这是java的错。我保存在webapps中的war文件根本没有部署。我试过通过manager-GUI进行部署,即使这样也不行。我包括了tomcat的日志。
[root@localhost apache-tomcat-8.5.40]# logs
14-May-2019 05:32:41.787 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/apache-tomcat-8.5.40/webapps/docs] has finished in [226] ms
14-May-2019 05:32:41.788 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/apache-tomcat-8.5.40/webapps/examples]
14-May-2019 05:32:42.047 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/apache-tomcat-8.5.40/webapps/examples] has finished in [260] ms
14-May-2019 05:32:42.047 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/apache-tomcat-8.5.40/webapps/host-manager]
14-May-2019 05:32:42.071 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/apache-tomcat-8.5.40/webapps/host-manager] has finished in [23] ms
14-May-2019 05:32:42.071 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/apache-tomcat-8.5.40/webapps/manager]
14-May-2019 05:32:42.091 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/apache-tomcat-8.5.40/webapps/manager] has finished in [20] ms
14-May-2019 05:32:42.105 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
14-May-2019 05:32:42.113 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
14-May-2019 05:32:42.114 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 659 ms
我认为这是Java的错误,但不确定。我需要帮助解决此问题。预先感谢
答案 0 :(得分:0)
如果您使用eclipse运行Tomcat服务器。
双击Eclipse中的tomcat服务器。
在“服务器位置”选项卡中,选择“使用tomcat安装(控制Tomcat位置)”
保存并重新启动服务器。
希望这对您有帮助