Eclipse: cannot create a server using the selected type

Source: Internet
Author: User

When you install the Tomcat server in eclipse, the error "cannot create a server using the selected type" is returned ".

Cause: the previously installed Tomcat directory has changed.

Solution: window-> preferences-> server-> runtime environment, change the Tomcat directory to which you installed it, and save the settings so that you can create a Tomcat server.

There is another way:
In the current workspace, enter the path/. Metadata/. plugins/org. Eclipse. Core. runtime/. settings. Remember that it is not the path of the eclispe program.

Remove the org. Eclipse. WST. server. Core. prefs and org. Eclipse. JST. server. tomcat. Core. prefs files.

Then restart eclipse.

I personally think that the first method is more convenient and intuitive.
In fact, the cause of this problem is also very simple, that is, the original service path has been specified, because the original Tomcat error or its reasons, you cannot specify the server path again, the first method is to re-specify the file in the IDE environment, and the second method is to delete the file in the storage path. If you re-specify the path, no error will be reported, and this file will be re-created in the IDE environment. Ultimately, the purpose is the same.

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.