7 Replies Latest reply on Oct 18, 2008 9:19 PM by Val Sw

    seam generate with Oracle XE

    hamid ullah Newbie
      I am new to Seam and trying to generate entities from Oracle tables resides in Oracle XE. I have done all prerequisite successfully, but when I run seam generate, it return success but I don't see any entities generated.

      Here is output from seam generate


      Buildfile: ....\jboss-seam-2.1.0.CR1\seam-gen\build.xml

      init:

      init-properties:
           [echo] C:/Work/Apps/jboss-4.2.3.GA

      validate-workspace:

      validate-project:

      init-generate:

      generate-model:
           [echo] Reverse engineering database using JDBC driver C:/Work/Apps/OracleXE/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar
           [echo] project=C:/work/Dev/test_apps/test
           [echo] model=com.test.entity
      [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
      [hibernate] 1. task: hbm2java (Generates a set of .java files)
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.cfg.Environment <clinit>
      [hibernate] INFO: Hibernate 3.2.4.sp1
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.cfg.Environment <clinit>
      [hibernate] INFO: hibernate.properties not found
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.cfg.Environment buildBytecodeProvider
      [hibernate] INFO: Bytecode provider name : cglib
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.cfg.Environment <clinit>
      [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.cfg.reveng.OverrideRepository addFile
      [hibernate] INFO: Override file: C:\work\Dev\test_apps\test\resources\seam-gen.reveng.xml
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: Using Hibernate built-in connection pool (not for production use!)
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: Hibernate connection pool size: 20
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: autocommit mode: false
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:xe
      [hibernate] 17-Oct-2008 9:45:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
      [hibernate] INFO: connection properties: {user=test, password=****}
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0XE
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.dialect.Dialect <init>
      [hibernate] INFO: Using dialect: org.hibernate.dialect.OracleDialect
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
      [hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
      [hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Automatic session close at end of transaction: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC batch size: 15
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC batch updates for versioned data: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Scrollable result sets: enabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JDBC3 getGeneratedKeys(): disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Connection release mode: auto
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Default schema: test
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Default batch fetch size: 1
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Generate SQL with comments: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Order SQL updates by primary key: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Order SQL inserts for batching: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
      [hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
      [hibernate] INFO: Using ASTQueryTranslatorFactory
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Query language substitutions: {}
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: JPA-QL strict compliance: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Second-level cache: enabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Query cache: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory createCacheProvider
      [hibernate] INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Optimize cache for minimal puts: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Structured second-level cache entries: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Statistics: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Default entity-mode: pojo
      [hibernate] 17-Oct-2008 9:45:04 PM org.hibernate.cfg.SettingsFactory buildSettings
      [hibernate] INFO: Named query checking : enabled
      [hibernate] 17-Oct-2008 9:45:05 PM org.hibernate.connection.DriverManagerConnectionProvider close
      [hibernate] INFO: cleaning up connection pool: jdbc:oracle:thin:@localhost:1521:xe
      [hibernate] 17-Oct-2008 9:45:05 PM org.hibernate.tool.Version <clinit>
      [hibernate] INFO: Hibernate Tools 3.2.2.GA
      [javaformatter] Java formatting of 0 files completed. Skipped 0 file(s).

      generate-ui:
           [echo] Building project 'test' to generate views and controllers

      init:

      compile:
          [javac] Compiling 1 source file to C:\work\Dev\test_apps\test\exploded-archives\test.jar

      copyclasses:

      jar:
           [copy] Copying 1 file to C:\work\Dev\test_apps\test\exploded-archives\test.jar\META-INF
           [copy] Copying 1 file to C:\work\Dev\test_apps\test\exploded-archives\test.jar
      [hibernate] Executing Hibernate Tool with a JPA Configuration
      [hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
      [hibernate] 17-Oct-2008 9:45:06 PM org.hibernate.cfg.annotations.Version <clinit>
      [hibernate] INFO: Hibernate Annotations 3.3.0.GA
      [hibernate] 17-Oct-2008 9:45:06 PM org.hibernate.ejb.Version <clinit>
      [hibernate] INFO: Hibernate EntityManager 3.3.1.GA
      [hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
      [hibernate] 3. task: generic exportertemplate: view/view.page.xml.ftl
      [hibernate] 4. task: generic exportertemplate: view/edit.xhtml.ftl
      [hibernate] 5. task: generic exportertemplate: view/edit.page.xml.ftl
      [hibernate] 6. task: generic exportertemplate: src/EntityList.java.ftl
      [hibernate] 7. task: generic exportertemplate: view/list.page.xml.ftl
      [hibernate] 8. task: generic exportertemplate: src/EntityHome.java.ftl
      [hibernate] 9. task: generic exportertemplate: view/layout/menu.xhtml.ftl
      [javaformatter] Java formatting of 1 files completed. Skipped 0 file(s).
           [echo] Type 'seam restart' and go to http://localhost:8080/test

      generate:

      BUILD SUCCESSFUL
      Total time: 5 seconds
      ------------------------------------------------------------------------