Announcement Announcement Module
Collapse
No announcement yet.
Roo 1.1.2.RELEASE & 1.1.3.RELEASE - WebApp won't run Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ps3ud0nym
    started a topic Roo 1.1.2.RELEASE & 1.1.3.RELEASE - WebApp won't run

    Roo 1.1.2.RELEASE & 1.1.3.RELEASE - WebApp won't run

    All of the followings worked...

    Code:
    project --topLevelPackage xx.xxx.xxxx
    persistence setup --provider HIBERNATE --database POSTGRES --databaseName xxx --userName xxx --password xxx
    database reverse engineer --package ~.domain --schema public 
    controller all --package ~.web
    perform tests
    perform package
    perform eclipse
    quit
    ...until

    Code:
    mvn tomcat:run
    It threw some exceptions which is too long to post (see attachment). Using an older nightly build of 1.1.2 prerelease worked. Any ideas?

  • ps3ud0nym
    replied
    Another way to get around the exception is to edit the property hibernate.hbm2ddl.auto in persistence.xml and set the value to something different than validate.

    Code:
    <property name="hibernate.hbm2ddl.auto" value="none"/>

    Leave a comment:


  • ps3ud0nym
    replied
    Hi,

    thank you for your reply. However apparently the mapping generated by Roo is not in a java file but in an AspectJ file. According to the comment I am not supposed to fiddle with it?

    Code:
    // WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
    PS:
    Adding the column definition to the Java file did help.
    Last edited by ps3ud0nym; May 11th, 2011, 08:18 AM.

    Leave a comment:


  • Wesker317
    replied
    Hi, from your log, this seems to be the problem :

    Caused by: org.hibernate.HibernateException: Wrong column type in public.fct_dct_dictionary for column dct_iso_code. Found: bpchar, expected: varchar(3)

    You can try something like this to solve the problem
    http://cedar715.wordpress.com/2009/1...d-varchar2255/

    Leave a comment:

Working...
X