Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Combine Roo in a Dynamic Web Project

  1. #1
    Join Date
    Jan 2010
    Posts
    1

    Default Combine Roo in a Dynamic Web Project

    When i add Roo nature a to Dynamic Web Projet under STS all
    the roo process is broken due to dependencies errors.

    My final goal is to combine Roo with Spring Remote and i can
    even figure how.

    Roo is simply a astonishing tool but there's a lot to do for us
    to integrate and understand it.

    Thank you !

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Which version of STS? We recommend using STS 2.3.1 which will automatically import Roo projects correctly when you use the "Import Existing Project" option. You shouldn't need to do anything beyond the import command.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    Mar 2006
    Posts
    15

    Default

    I'm using the 2.3 but as i was doing before, creating the project using the Roo console and then import it does not mark the project as Dynamic Web but as a Java.

    My previous process was to export as War using Eclipse.

    How can i export my project as .war since perform package generate a jar ?

    I do really hope we can integrate Roo in our process.

    Regards,
    Robbie

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I suspect you haven't installed a web controller yet.

    If you simply create a new project in Roo and add some entities, fields and tests, the pom.xml will specify the artifact type as JAR. Only when you first use a 'controller' command will the pom.xml be modified to make it a WAR. I'm guessing you imported the project before using 'controller'. Is that the case?

    If so I suggest using one of the 'controller' commands and then re-importing. It should come in as a WAR project and both 'perform package' and 'mvn package' will yield a .war file for you.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  5. #5
    Join Date
    Mar 2006
    Posts
    15

    Default

    You are correct Ben that was the point.

    Our system is totally relying upon Spring Remote so Spring Web
    and controllers are not required.

    I only want to create the war archive containing the Spring App
    with no html at all.

    You have done a promising work at SpringSource by conceptualizing
    a tool like Roo. It's a great challenge to fit all required process to
    complete such a tool.

    'Merci' for taking the time to help us in the first steps

    Best Regards,
    Robert

  6. #6
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    You've very welcome. We're happy to help you on your Roo journey, so don't hesitate to sing out if you need anything else.

    BTW I've created Jira issue https://jira.springsource.org/browse/ROO-525 to update the docs to explain this behaviour better. It's good receiving feedback like this, as it helps us identify areas we can improve the resources.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  7. #7
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Indeed, Roo is initially generating a standard Java project (in pom.xml):

    Code:
    <packaging>jar</packaging>
    It will only convert the project to a Web project when you start generating Web artifacts. I think this makes good sense but needs to be better documented.

    As a workaround you should be able to simply change the packaging in the project pom.xml:

    Code:
    <packaging>war</packaging>
    And then run 'perform eclipse' from Roo shell, or 'mvn eclipse:eclipse' from your normal shell. This should update the Eclipse/STS workspace artifacts and convert the project nature to a dynamic web project without the need to install any of the Roo web artifacts.

    HTH
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  8. #8

    Default

    Quote Originally Posted by Ben Alex View Post
    Which version of STS? We recommend using STS 2.3.1
    Is there a version 2.3.1? I grabbed the Mac versions today and found only 2.3.0. If 2.3.1 is in beta, any timeframe on its release?

    Cheers

    Nik

  9. #9
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Sorry, my mistake. STS 2.3.1 is very close, but 2.3.0 is the latest as of 13 Jan 10.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  10. #10

    Question Want to use servlets without controllers

    Hi Guys,
    This post is almost same what I am looking for.

    Only difference is I want to use Servlets (for GWT, Vaadin) only.
    Without Controllers.
    How to do that? and still able to add new model/domain classes with persistence using Roo afterward.

    Cheers,

Tags for this Thread

Posting Permissions

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