Announcement Announcement Module
Collapse
No announcement yet.
Roo, mongo and jsf Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo, mongo and jsf

    If I do:

    // Spring Roo 1.2.0.RELEASE [rev 39eb957] log opened at 2012-01-19 15:36:18
    project --topLevelPackage com.novexinc.mg --projectName mg
    mongo setup
    entity mongo --class ~.domain.Customer --testAutomatically
    field string --fieldName custName
    field date --fieldName startDate --type java.util.Date
    repository mongo --interface ~.repository.CustomerRepository --entity ~.domain.Customer
    web mvc setup
    web mvc all --package com.novexinc.mg.web
    quit

    Runs fine..

    However, if I do:
    project --topLevelPackage com.novexinc.mg --projectName mg
    mongo setup
    entity mongo --class ~.domain.Customer --testAutomatically
    field string --fieldName custName
    field date --fieldName startDate --type java.util.Date
    repository mongo --interface ~.repository.CustomerRepository --entity ~.domain.Customer
    web jsf setup --implementation APACHE_MYFACES --library PRIMEFACES
    web jsf all --package com.novexinc.mg.web
    quit


    I get:
    javax.servlet.UnavailableException: org.springframework.orm.jpa.support.OpenEntityMana gerInViewFilter

  • #2
    Got it working.. in the generated web.xml, I commented out:
    <filter>
    <filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
    <filter-class>org.springframework.orm.jpa.support.OpenEnti tyManagerInViewFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

    Comment


    • #3
      JSF scaffolding was really meant for JPA entities but if you have t working for Mongo with this simple change, please raise an improvement request and I can include it for 1.3.0.M1.

      Comment

      Working...
      X