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

  • Roo and wavemaker

    We are trying to create the web interface using wavemaker while creating the business logic with Roo.

    However, we have problems when integrating the Roo-generated code within Wavemaker.

    Is anyone else trying to do the same as we do?

    Do you plan to integrate wavemaker with Roo shortly?

    Regarding the issues, we can't configure wavemaker to get it starts the application correctly: it can't find the EntityManager to autowired it in the corresponding classes:

    Code:
    <The sample java service operation has failed> (thread 28 invoke XXXX.sampleJavaOperation) 
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'package.XXXX': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0
    	at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:341)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:374)
    	at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:140)
    	at org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59)
    	at org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$afterReturning$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$2$1ea6722c(AbstractDependencyInjectionAspect.aj:89)
    	at package.XXXX.<init>(XXXX.java:22)
    	at package.XXXX_Roo_Entity.entityManager_aroundBody0(XXXX_Roo_Entity.aj:62)
    Last edited by jbbarquero; May 26th, 2011, 10:51 AM.

  • #2
    Where in your spring context files is the EntityManager and Datasource being declared?

    Comment


    • #3
      Originally posted by jbbarquero View Post
      We are trying to create the web interface using wavemaker while creating the business logic with Roo.

      However, we have problems when integrating the Roo-generated code within Wavemaker.

      Is anyone else trying to do the same as we do?

      Do you plan to integrate wavemaker with Roo shortly?
      There's nothing planned of this nature, but by all means log a new feature request and we'll see how many people vote for it.

      Comment


      • #4
        SOLVED:

        It was a problem with the JPA version. Thanks to Brad for the interest and Daniel (a colleague) for the resolution.

        The error was: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getShare dCacheMode()Ljavax/persistence/SharedCacheMode;

        It seems is a method that didn't exist in JPA 1.0 but was added in JPA 2.0. The JAR file included by Wavemaker belongs to the version 1 of JPA: persistence-api-1.0.2.jar.

        We find a clue in this forum: http://stackoverflow.com/questions/3...-v2-to-jpa-2-0.

        Created a JIRA ticket: https://jira.springsource.org/browse/ROO-2468. I hope

        Comment


        • #5
          Hi to all.

          Please, we are REALLY interested about how to do that. And I'm sure there is a lot of people also interested on how to integrate Spring Roo domain entities with WaveMaker.

          Please, could you explain the main steps that are necessary to communicate both worlds?

          Thanks a lot in advance

          Comment

          Working...
          X