Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-156

Roo generated web app does not work correctly in tomcat and dm Server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC1
    • Fix Version/s: 1.0.0.RC1
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Using Roo from HEAD (July 15th) at r184, I generated a simple web application using the following script:

      create project org.springsource.cddb.domain
      install jpa -database HYPERSONIC_IN_MEMORY -provider HIBERNATE
      new persistent class jpa -name ~.CompactDisc
      add field string -fieldName title -notNull
      add field string -fieldName artist -notNull
      install finder -finderName findCompactDiscsByTitleLike
      install finder -finderName findCompactDiscsByArtistLike
      new controller automatic ~.CompactDiscController

      (note it's slightly unusual in that the Controller is in the same package as the domain entity)

      mvn jetty:run works perfectly
      mvn package, and then deploying the war file to either vanilla tomcat or dm Server fails. The home page comes up correctly, but following any of the links under "CompactDisc" (e.g. Create new CompactDisc) fails with a 404: The requested resource (/domain/compactdisc/form) is not available.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              adrian.colyer Adrian Colyer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: