Eclipse even Tomcat error solution

Source: Internet
Author: User

Thanks for the blog post of the elder brothers. Like http://blog.csdn.net/starhosea/article/details/43759561.


I can use it yesterday, it seems that after creating a dynamic Web project, I see that there are too many projects on the left, and I have deleted some items that I don't want to use, including a "Servers" I thought I didn't know when to build it manually. And then run the project you want to use the wrong time Resource '/servers ' does not exist

Baidu, said the new server is good, and then found that the building server again start,

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8B/62/wKiom1hLk7vDsWuvAABBHAyqCaM652.png-wh_500x0-wm_3 -wmp_4-s_258903095.png "style=" Float:none; "title=" 1.png "alt=" Wkiom1hlk7vdswuvaabbhayqcam652.png-wh_50 "/>

Most of the situation on the web is that when you add Tomcat to the preferences, the path is incorrect, such as a number of paths after re-mounting the tomcat. But I'm not in the situation.

Also found to say let Windows Preferences→server→runtime environment right box to remove and then re-add, or there will be this mistake, thanks to the opening mentioned this blog post

Solutions on the network are:
1. Turn off eclipse
2. In the Catalog
{workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
Under Delete:
org.eclipse.wst.server.core.prefs 
org.eclipse.jst.server.tomcat.core.prefs

3. Restart Eclipse to create a new server again

However, when a new server is restarted after the error, or in the console that column server point new or right-click Start will

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8B/5E/wKioL1hLk7yAFJvMAACDBS772jM235.png-wh_500x0-wm_3 -wmp_4-s_4112302300.png "style=" Float:none; "title=" 2.png "alt=" Wkiol1hlk7yafjvmaacdbs772jm235.png-wh_50 "/>

As mentioned in the opening blog post, it is still problematic to copy all files under the Config directory of the Tomcat installation directory to the Tomcat configuration folder under servers in the project directory. And then ran from the command line to this directory, with

cacls [filename]/t/g administrators:f users:f

The file permissions are all set to the administrator and the user can fully control. Refresh the project in Eclipse and then report the error.


It's almost hopeless at this point. Configuration is not ready to do development, in accordance with online methods are tried or dead or alive to get bad, I want to change careers? Suddenly someone initiated the QQ phone, swept a glance found ... The perfection of the ... Pull into the discussion group. Finally and he in a space, although not talking and no egg use, but the feeling of the world suddenly bright, and full of morale and vitality. So


Restart server again, click "Details" found changed, yesterday encountered this error, details are corrupt or incomplete, is the project directory in the Tomcat configuration directory does not need to use the Catalina.policy files, and now has a file, although the error is the same, but after opening the details found that "the document after the root element of the tag must be formatted correctly"

This is a good thing to do!! This is obviously a problem with the contents of the file, continue Baidu, there are blog posts that "The reason for this error is that there is no root node." in other words, in addition to the initial declaration in the XML file, the content of the body is placed in a root node. Then open the XML file in the configuration directory, Before the seemingly changed Server.xml, opened and found, before the other tutorials to do JSP and servlet test, did not understand that people want to server.xml in the root node inside add content tag, and I was directly added to the end of the full text. So I reported this mistake. Delete this content tag, then refresh in Eclipse and run. hahaha haha

Eclipse even Tomcat error solution

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.