SpringSource Tool Suite (STS): how to run a server and Java project through the IDE?

I am using the latest version of SpringSource Tool Suite (STS). I created a Java project. My code has an Ant build file that contains a WAR. I have Tomcat 6.0.24 installed locally on my Mac 10.6.3. Can someone tell me how I deploy my project to the server from the IDE and as such configure debugging using breakpoints?

Thanks - Dave

+8
sts-springsourcetoolsuite springsource
source share
1 answer

Here is what you need to do:

  • Open the server view inside the STS.
  • Create a new Tomcat instance and point it to the locally installed Tomcat. (Alternatively, you can use a pre-installed instance of tcServer, which is essentially Tomcat with a few extra things like Spring Insight).
  • Right-click your project and select "Configure → Convert to Form Face ...
  • In the dialog that appears, select "Dynamic Web Module"
  • Now you can drag the project onto the server instance.
  • After that, right-click on the server instance and select "Debug"

Here you can find more detailed instructions: http://www.ibm.com/developerworks/library/os-eclipse-tomcat/index.html

+8
source share

All Articles