Results 1 to 3 of 3

Thread: Roo shell command: how-to fix Test Errors

Hybrid View

  1. #1

    Default Roo shell command: how-to fix Test Errors

    I ran "perform test -e" and got 9 test Errors. In looking at the trace, here are the excerpts:

    java.lang.IllegalStateException: Failed to load ApplicationContext
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager' defined in class path resource [META-INF/spring/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'entityManagerFactory' defined in class path resource [META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
    ....
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'entityManagerFactory' defined in class path resource [META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
    ....
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
    ....
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
    ...
    Caused by: org.hibernate.MappingException: Could not determine type for: com.demoapp.Business, at table: business, for columns: [org.hibernate.mapping.Column(coupon_list)]
    ...
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager' defined in class path resource [META-INF/spring/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'entityManagerFactory' defined in class path resource [META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory

    How can I get back to the problem errors and fix them or to examine what was entered via the Roo shell...using Roo shell commands?

    Many Thanks

  2. #2
    Join Date
    Mar 2010
    Posts
    8

    Default

    Quote Originally Posted by mtam View Post
    or to examine what was entered via the Roo shell...using Roo shell commands?
    In your project root dir there should be a file called roo.log containing all the commands entered in the rool shell.

  3. #3

    Default RE: Compile errors....

    Thank you very much for the info.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •