Announcement Announcement Module
Collapse
No announcement yet.
Packaging WAR makes jpa setup fail with Roo 1.2.0.RELEASE Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Packaging WAR makes jpa setup fail with Roo 1.2.0.RELEASE

    Is there any reason that, with Spring Roo 1.2.0.RELEASE [rev 39eb957], if I specify packaging WAR, I can't add a jpa setup?

    Code:
    roo> project --topLevelPackage org.obliquid.jsf1 --java 6  --packaging WAR
    Created ROOT/pom.xml
    Created ROOT/src/main/resources
    Created ROOT/src/main/resources/log4j.properties
    roo> jpa setup --database H2_IN_MEMORY --provider HIBERNATE 
    File '/home/stefano/workspace/jsf/appo/src/main/resources/META-INF/spring/applicationContext.xml' does not exist
    The workaround is just don't set packaging WAR and then it works.

    Regards,
    Stivlo

  • #2
    Have you checked the JIRA? This sort of problem could be fixed in the Roo nightlies.

    Comment


    • #3
      This is working as designed. You've specified that you want a WAR artifact, but you also want to put persistence code in your web project, which Roo does not allow. If you want to do a Roo 1.1.x style application, do not specify a packaging value. This option is used is intended to be used in multi-module Maven projects

      Comment

      Working...
      X