Results 1 to 10 of 13

Thread: Why can't I run eclipse spring roo project in sts

Hybrid View

  1. #1

    Default Why can't I run eclipse spring roo project in sts

    I right clicked project -> Run as -> But can't find the tomcat option

    has followed steps up to 2.1.10 in http://static.springsource.org/sprin...beginning.html successfully

    I have to go command prompt to cd the directory then type maven tomcat:run

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,650

    Default

    Hey!

    Did you create the project as a Spring Roo project in STS directly? Or from the command line?
    If you created the project as a Spring Roo project in STS directly, you should be able to drag&drop the project onto a configured Tomcat or tc Server and have it deployed that way.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3

    Default

    created a project as spring roo project in STS and would like to run in STS
    if not any changes I made I will have to drag and drop into Tomcat server to see whether it works

  4. #4
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,650

    Default

    Hey!

    Does it work for you to drag&drop that project into the Tomcat server in your "Servers" view inside STS/Eclipse?
    If not, can you try to create a project from the Spring Template projects (the MVC one, for example) and drag&drop that into the tc Server that should be configured automatically in your STS and showing up in the Servers view as well?

    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  5. #5

    Default

    Quote Originally Posted by Martin Lippert View Post
    Hey!

    Did you create the project as a Spring Roo project in STS directly? Or from the command line?
    If you created the project as a Spring Roo project in STS directly, you should be able to drag&drop the project onto a configured Tomcat or tc Server and have it deployed that way.

    HTH,
    Martin
    when i run tomcat server does it run all the projects in eclipse? I open servers tomcat 7 and can't find my project inside, how do I add the spring roo project and run using that tomcat?


    I tried to drag but doesn't work

    how do you drag and drop the project on tomcat
    Last edited by z080236; Jan 12th, 2013 at 07:38 AM.

  6. #6
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,650

    Default

    Hey!

    Do you have the Tomcat instance configured in your STS/Eclipse so that it appears in your Servers view? Or did you try to drag&drop your project into the configured tc Server instance? (that one should appear automatically in your Servers view when you are using an STS distribution to work from)

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  7. #7

    Default

    Quote Originally Posted by Martin Lippert View Post
    Hey!

    Do you have the Tomcat instance configured in your STS/Eclipse so that it appears in your Servers view? Or did you try to drag&drop your project into the configured tc Server instance? (that one should appear automatically in your Servers view when you are using an STS distribution to work from)

    HTH,
    Martin
    yes i have configured tomcat server , somehow my project looks something like this(it has not been configured to run on web?)



    pizza.JPG

  8. #8
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,650

    Default

    Hey!

    I am a bit confused about how exactly you setup your project. Can you give me detailed steps how to reproduce this problem that you have?

    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •