简体   繁体   中英

Trouble configuring existing Tomcat6 and Eclipse

I just got the Eclipse Java EE version and tried to configure Tomcat by going to the Window-->preferences-->Server

But when I went to "runtime environment" and gave it the location of the current tomcat directory, it didn't seem to recognize it and didn't let me go to next screen.

Did I do something wrong? The problem is that there are still the red squigly lines in the import statements of servlet libraries. Is there some correct way to refresh the page so I can ensure that Eclipse indeed does not recognize those libraries still?

I have been experiencing similar problems recently, sometimes even Eclipse not listing Apache Tomcat 6.0 among available servers. The solution was go to eclipse's metadata directory:

your_workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/

And delete following files:

org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs

Then restart Eclipse and try again, everything should work. Hope this helps!

Ensure that you're pointing to the real Tomcat root directory which contains the /bin , /conf , /lib , etc folders, not to a directory which contains just apache-tomcat-7.0.11 or something.

Also pay attention to the error/warning message in top of the wizard, if any, right below the title.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM