简体   繁体   中英

Issue with deploying applications on Tomcat 7 and 8 from Eclipse Mars EE

I am trying to deploy my Spring application to Tomcat 7 or 8 server (I have both versions installed). Both Tomcat 7 and 8 are installed correctly and are accessible on localhost:8080. In Eclipse Mars EE I added Tomcat 7 and 8 as servers (see the picture below).

在此处输入图片说明

Then I built the project (Maven), opened the Servers tab in Eclipse and clicked on No servers are available . When I want to specify Tomcat 7 (or 8), the field server name is empty (see the picture). The strange thing is that before installing Tomcat 7, this field was filled out and the button Next was available, however in that case there was a message Unknown server.. .

在此处输入图片说明

What am I doing wrong and how to solve this issue?

UPDATE:

I created a new project and refreshed all the settings. Now I am able to see Tomcat 8 in the Servers tab, however when I click Start the following message appears:

在此处输入图片说明

It finally worked. I had to add *jar file when deploying on Server.

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