简体   繁体   中英

Eclipse Java EE and tomcat6 server

I installed Eclipse and tomcat6 service on windows 8

i get the tomcat front page at localhost:8080 and in server tab in eclipse it says "Tomcat v6.0 at localhost Started, Syncronized" however im unable to run any of my imported projects on server.

Right click on server -> add and remove... -> There are no resources that can be added

Right click on project -> Properties -> Facets, Dynamic web module is checked

in project properties, in targeted runtimes i only get option for tomcat7 and if i click show all runtimes it will show 6.0 but it's diabled and cannot be selected.

Does this mean i have to uninstall 6 and install 7 instead or what? all the project files are from school so i dont know about them but i dont remember anyone saying that i need to install newer version...

Trying to run on server just brings up server selection without possibility to use existing server...

It has to do with the Dynamic Web Module Version. Tomcat 6 supports upto version 2.5 if I am right. So upgrade to use a newer tomcat (By the way tomcat 6 is very old and you should use at least 8) or use an older Dynamic Web Module Version.

I had some troubles to install Eclipse with tomcat 6. The problem was that the server was not compatible with the Dynamic Web.

For that reason download a new version of the server. Just change the parameters and you will run your app. Also be sure about you have the JDK that you need installed.

Last version of Apache Tomcat: https://tomcat.apache.org/download-90.cgi

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