Eclipse - Tomcat 7 - java.lang.IndexOutOfBoundsException on publish

后端 未结 4 1426
时光取名叫无心
时光取名叫无心 2021-02-18 18:32

I have a Webproject using maven and when I try to deploy it to Tomcat 7, I get the following message:

Publishing failed
Could not publish to the server.
java.lan         


        
4条回答
  •  误落风尘
    2021-02-18 18:47

    Lets try once the way it is mentioned below. so please delete the previous installation. Step 1 Create a new Server run time (Window -> Preferences -> Server -> Runtime Environments). Step 2 Add Server to Eclipse (Window -> Show View -> Servers) add a new server configuration (right-click and select New -> Server) but DO NOT ADD ANY PROJECTS TO IT. Step 3 Open Server Overview page Double click the new server configuration to bring up the Server Overview page where we set port and time out for the Server. Step 4

    Under Server Locations select Use Tomcat installation. Save.

    You should be able to start your server now. Now add your project to the server and you're ready to go.

提交回复
热议问题