Tomcat service cannot be started

Source: Internet
Author: User

In the second half of last year, the company decided to invest manpower, material resources, and "follow the trend" to do big data research and apply it to subsequent projects. Therefore, we must be familiar with Java.
Let's get a Java EE development environment first. JDK and JRE are installed. In fact, JRE already exists under JDK. If it is installed on the server, you only need to install JRE, and then configure the environment variables:

New: JAVA_HOME: D: \ Java \ jdk1.7 % JAVA_HOME % \ bin;

Install Tomcat and startup. bat, shutdown. bat is normal, and then want to start and close the compressed version of Tomcat into a Windows service for processing, execute service. bat install prompts that the service is successfully created, but fails to start the service. The system log prompts:

I used to have no problem with Windows 2003 on my desktop. How can I get started with Windows on Windows? First, you can call the service normally. there is no problem with the configuration of bat, that is, the environment variable. Compared with the two operating systems, it seems that the most likely problem is the permission issue during installation. Uninstall the installed service. bat remove, and then run cmd.exe as an administrator. Switch to the directory where service. bat is located and run service. bat install to reinstall the Tomcat service. HoHo, which can be started and disabled normally.
Because it is a development environment, we can configure a Super User admin to manage Tomcat through "http: // localhost: 8080. Go to the conf folder under the Tomcat root directory and open "tomcat-users.xml" for editing:

 

After restarting Tomcat, you can use admin to manage Tomcat.


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.