Spring Roo
  1. Spring Roo
  2. ROO-1300

STS and Datanucleus are upset by projects generated by addon-gwt

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None

      Description

      Run the attached roo script and import the results into STS. When you try to launch the app as a Web Application, or maybe sooner, you'll see the following stack trace. Or at any rate I do.

      2010-08-23 16:22:50,593 [Thread-2] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [/private/tmp/roo-m3/target/extrack-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes/META-INF/spring/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/private/tmp/roo-m3/target/extrack-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes/META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.datanucleus.exceptions.NucleusUserException: Errors were encountered when initialising the specified MetaData. See the nested exceptions for details

        Activity

        Hide
        Christian Dupuis added a comment -

        Ray, I just followed your steps and don't see this error at all.

        The app is working fine for me. I'm using STS 2.5.0.M3, 1.1.0.M3 and GPE M3. I guess we need to get you this new version and see if that fixes the issue on your end.

        Regards, Christian

        Show
        Christian Dupuis added a comment - Ray, I just followed your steps and don't see this error at all. The app is working fine for me. I'm using STS 2.5.0.M3, 1.1.0.M3 and GPE M3. I guess we need to get you this new version and see if that fixes the issue on your end. Regards, Christian
        Hide
        Ray Ryan added a comment -

        Yes, please.

        Show
        Ray Ryan added a comment - Yes, please.
        Hide
        Ray Ryan added a comment -

        We found the STS linked from the M3 blog post:

        http://blog.springsource.com/2010/08/25/spring-roo-1-1-0-m3-released/

        Show
        Ray Ryan added a comment - We found the STS linked from the M3 blog post: http://blog.springsource.com/2010/08/25/spring-roo-1-1-0-m3-released/
        Hide
        Michael von Bodungen added a comment -

        I just downloaded the GA release of STS v2.5.0 and Roo 1.1.0. I ran the expense.roo script. Using Maven you can run the application fine externally. I have imported the app into STS using the "File -> Import -> Existing Maven Project". There are no errors after import. I dragged the project down to the SpringSource tc Server Developer Edition v2.0. When I start the server I get the error mentioned above. Are you sure it was fixed for the GA release? Any idea of what the work around would be?

        2010-10-28 20:44:55,491 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [/Users/vb/Software/springsource/tc-server-developer-2.0.4.RELEASE/spring-insight-instance/wtpwebapps/extrack/WEB-INF/classes/META-INF/spring/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/Users/vb/Software/springsource/tc-server-developer-2.0.4.RELEASE/spring-insight-instance/wtpwebapps/extrack/WEB-INF/classes/META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/MappingException
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

        Show
        Michael von Bodungen added a comment - I just downloaded the GA release of STS v2.5.0 and Roo 1.1.0. I ran the expense.roo script. Using Maven you can run the application fine externally. I have imported the app into STS using the "File -> Import -> Existing Maven Project". There are no errors after import. I dragged the project down to the SpringSource tc Server Developer Edition v2.0. When I start the server I get the error mentioned above. Are you sure it was fixed for the GA release? Any idea of what the work around would be? 2010-10-28 20:44:55,491 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [/Users/vb/Software/springsource/tc-server-developer-2.0.4.RELEASE/spring-insight-instance/wtpwebapps/extrack/WEB-INF/classes/META-INF/spring/applicationContext.xml] : Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/Users/vb/Software/springsource/tc-server-developer-2.0.4.RELEASE/spring-insight-instance/wtpwebapps/extrack/WEB-INF/classes/META-INF/spring/applicationContext.xml] : Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/MappingException at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

          People

          • Assignee:
            Christian Dupuis
            Reporter:
            Ray Ryan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: