Do you like to use ECLIPSE+TOMCAT programming?!

Source: Internet
Author: User

Configuring Tomcat in Eclipse is a disaster!

Open source software does give developers great freedom, but it also brings extra hassle. Eclipse+tomcat is just one of them. I was fortunate to have met N times, in the n+1 times, had to write the author thought after.

Working with friends to do a Web project, we solved all the eclipse+tomcat problems at the beginning and the code worked well. One day the friend re-installed the operating system. ......

He broke down and looked for me. I feel familiar with the problems, but I've tried all sorts of things, and I haven't solved them. He is very impatient, QQ remote connection, also is not helping. Well, finally, two hours later, we're done.

Afterwards summarized, two questions.

(i) When configuring the server, specify "Tomcat's installation directory" and change "Deploy path" to "WebApps" (it may not be necessary on your machine, but it is best to choose this when you have a problem)

(b) Always keep in mind that the "Context root" of each Web project is configured correctly.

The following are for reference:

Postscript:

In fact, we were walking on the right path at first, but the strange mistake disturbed our thinking and we gradually deviated to the wrong track.

Later, I realized that it should not be based on the "right" hypothesis.

"Brother, can you start Tomcat directly?"--"Why did the window flash away?"

"Don't just double-click, run Startup.bat in cmd."--Finally, Tomcat needs "Java_home".

"By, I Eclipse has already started."--"but Tomcat needs ah, you installed the system, the first step should be with the java_home, you pit, I misjudged."

"Also, open tomcat-users.xml configuration, enter Tomcat Manager"--"I wipe, ..."--"Configure context Root"

----------------------

Sometimes, a small problem may affect your enthusiasm for programming. (This may be the only mistake of open source software.)

For example, the following two graphs:

An editable, non-editable, of course not due to the difference between "WebApps" and "Wtpwebapps".

Maybe you're going to be angry. You'll also delete the server and add another one. This will cause another problem that frustrates you. (Open source software products are like this, there are a variety of plug-ins, configuration. But the old hands have to rummage to find the right place.)

Let's talk about the solution that can't be edited above. Look at the picture description:

Look at the picture to understand, too lazy to organize the language, in short, the server contains the project, you can not edit. Clean up and edit.

The other problem mentioned above cannot be reproduced on my machine, I would simply say:

A friend after you delete the server, you can no longer add Tomcat. This time you need to go to the "Runtime environments" to edit.

Do you like to use ECLIPSE+TOMCAT programming?!

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.