Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2395

Seam: seam-gen reverse engineering fails on IBM VM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP 5.0.0.CR1, EAP 5.0.0.CR3
    • Seam
    • Release Notes
    • Hide

      upgrade to SR5 edition of IBM JDK 1.6.0

      Show
      upgrade to SR5 edition of IBM JDK 1.6.0

    Description

      In a newly created project, launching "seam generate" fails with ExporterException.

      [user01@rhel01-seamhell seam]$ ./seam generate
      SEAM_HOME: /home/user01/jharting/jboss-eap-5.0/seam
      Using seam-gen sources from: /home/user01/jharting/jboss-eap-5.0/seam/seam-gen
      Buildfile: /home/user01/jharting/jboss-eap-5.0/seam/seam-gen/build.xml

      init:

      init-properties:
      [echo] /home/user01/jharting/jboss-eap-5.0/jboss-as

      validate-workspace:

      validate-project:

      init-generate:

      generate-model:
      [echo] Reverse engineering database using JDBC driver /mnt/jqa/home/jharting/mysql-connector-java-5.1.6-bin.jar
      [echo] project=/home/user01/jharting/workspace/seamIMBTest
      [echo] model=com.example
      [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
      [hibernate] 1. task: hbm2java (Generates a set of .java files)
      [hibernate] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
      [hibernate] log4j:WARN Please initialize the log4j system properly.
      [hibernate] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
      [hibernate] To get the full stack trace run ant with -verbose
      [hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while processing Entity: com.example.Vehicle with template pojo/Pojo.ftl
      [hibernate] freemarker.core.InvalidReferenceException: Expression property.value.identifierGeneratorStrategy is undefined on line 5, column 132 in pojo/GetPropertyAnnotation.ftl.

      BUILD FAILED
      /home/user01/jharting/jboss-eap-5.0/seam/seam-gen/build.xml:1375: org.hibernate.tool.hbm2x.ExporterException: Error while processing Entity: com.example.Vehicle with template pojo/Pojo.ftl

      Total time: 4 seconds

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: