When tomcat is started, it is stuck in INFO: Deploying web application, tomcatdeploying

Source: Internet
Author: User

[Switch] tomcat is always stuck in INFO: Deploying web application, tomcatdeploying

When centos7. + is not familiar with the tomcat project, when it is started, it is suddenly strange that no error is reported, but the website cannot be accessed../shutdown.shBut it cannot end. It always appears:

java.net.ConnectException: Connection refused (Connection refused)    at java.net.PlainSocketImpl.socketConnect(Native Method)    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)    at java.net.Socket.connect(Socket.java:589)    at java.net.Socket.connect(Socket.java:538)    at java.net.Socket.<init>(Socket.java:434)    at java.net.Socket.<init>(Socket.java:211)    at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:498)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:343)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)

 

You must use the kill command to end the process:

ps -aux | grep javakill -9 19562
  • 1
  • 2

After checking the relevant blog, I found that it is actually a security issue of centos7. +. You need to install the jdk source file and find java. security:

In vi/usr/java/default/jre/lib/security/java. securitysecurerandom.source=file:/dev/urandom

Changed:Securerandom. source = file:/dev/./urandom to solve the problem

Original article: http://blog.csdn.net/u014520745/article/details/58134989

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.