Connecting Tomcat server to Eclipse

后端 未结 12 1779
忘掉有多难
忘掉有多难 2021-01-04 10:04

I am trying to use Tomcat 6.0 as a web development server within SpringSource Tool Suite 2.7.1. I create a runtime, download tomcat, create a server, etc as per these instru

相关标签:
12条回答
  • 2021-01-04 10:41

    None of the above answers provide proper concrete solution. I faced exactly same issue and i figured out a very simple solution.

    • Open Eclipse and remove all entries of Apache server

    • Delete Servers from explorer tab, delete Tomcat from server explorer window, delete server from Window > Preferences > Server > Apache tomcat, delete it, also delete servers folder inside EclipseProjects.

    • Place Apache tomcat folder outside the project folder anywhere you wish to, you can place in Eclipse_Projects folder but not inside EclipseProjects/projectxyz/.

    • Now add server in eclipse the usual way and give path of this new location.

    This should work!

    0 讨论(0)
  • 2021-01-04 10:41

    this could happen if you probably used previous tomcat server in eclipse, so deleting server and its configuration and creating another one will make it work .

    0 讨论(0)
  • 2021-01-04 10:43

    Or you may delete the servers configuration, and configure the server again. This works when you may have changed the directory of the server.

    0 讨论(0)
  • 2021-01-04 10:44

    I have faced the same problem.

    Solution: In Project Explorer--> Servers(right click) --> Run As --> Run Configurations(click) --> (Select "Tomcat v7.0 Server at localhost") --> Arguments(tab) --> Working directory(bottom of window) --> others : (click workspace) --> select the "boostraps.jar" from -->Server.

    Eg., My workspace.MY path is:

    Project Explorer --> Servers(right click) --> Run As --> Run Configurations(click) --> (Select "Tomcat v7.0 Server at localhost") --> Arguments(tab) --> Working directory(bottom of window) --> others : (click workspace) --> /home/ciprus//Servers --> click apply.

    0 讨论(0)
  • 2021-01-04 10:47

    You might want to check/manually edit your path by going into server properities:

    In Servers view,

    1) double-click on Tomcat server.

    2) Then click on Overview of Tomcat settings appears.

    3) "Open launch configuration" then Classpath

    4) Edit User Entries here

    0 讨论(0)
  • 2021-01-04 10:50

    same problem in my case also i solved::

    just remove your older tomacat server and add tomcat 8.0 version only

    0 讨论(0)
提交回复
热议问题