Tomcat debugging and running (view exception information)

Source: Internet
Author: User

Although many people know that the bin directory in the Tomcat directory structure has two batch processing files: startup and shutdown. With these two files, we can start and stop the Tomcat server. However, sometimes we find that when you double-click the startup. bat batch processing command, a black screen suddenly flash, and then it is closed, resulting in a failure to start the server.

The reason for the situation described above is that the configuration in the tomcat configuration file is faulty. However, as we started earlier, we cannot see the specific error and cause. In this case, you can use another method to start Tomcat to clearly display the error information for future viewing.

Its execution file: another batch processing file (Catalina. BAT) under the bin directory ). The specific method is to run cd in the bin directory, type the command: Catalina debug, and then type run. That is to say, start the server in the form of debugging, so that as long as there is an error message next time, the window will not be closed, we can also clearly see the error information, so as to find the error source.

Related Article

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.