1 Reply Latest reply on Jun 20, 2007 9:41 AM by Mike Habich

    seam generate-entities problem

    Mike Habich Newbie

      Hi,
      I seam to have a problem with seam-gen.
      When I run "seam generate-entities" i get the following error( full listing at end):
      [hibernate] java.sql.SQLException: No suitable driver found for system@//localhost:1521/xe

      I run Jboss 4.0.5 seam 1.2.1GA, Oracle 10XE
      Driver jar is ojdbc14.jar. Im using this jdbc string in the SQLDeveloper and it works properly. I made sure jar is in the right place.
      Any ideas?
      Please HELP!!!!!!!!!

      =============================
      Full console listing:
      Microsoft Windows XP [Version 5.1.2600]
      (C) Copyright 1985-2001 Microsoft Corp.

      C:\Documents and Settings\Vor>cd \

      C:\>cd jboss*

      C:\jboss-seam-1.2.1.GA>seam generate-entities
      Buildfile: C:\jboss-seam-1.2.1.GA\seam-gen\build.xml

      validate-workspace:

      validate-project:

      generate-entities:
      [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engi
      neering)
      [hibernate] 1. task: hbm2java (Generates a set of .java files)
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.cfg.Environment
      [hibernate] INFO: Hibernate 3.2.0.cr5
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.cfg.Environment
      [hibernate] INFO: hibernate.properties not found
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.cfg.Environment buildBytecodeP
      rovider
      [hibernate] INFO: Bytecode provider name : cglib
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.cfg.Environment
      [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.cfg.reveng.OverrideRepository
      addFile
      [hibernate] INFO: Override file: C:\Mike\Programing\workspace\newslocal\resource
      s\seam-gen.reveng.xml
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.connection.DriverManagerConnec
      tionProvider configure
      [hibernate] INFO: Using Hibernate built-in connection pool (not for production u
      se!)
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.connection.DriverManagerConnec
      tionProvider configure
      [hibernate] INFO: Hibernate connection pool size: 20
      [hibernate] Jun 19, 2007 9:11:44 PM org.hibernate.connection.DriverManagerConnec
      tionProvider configure
      [hibernate] INFO: autocommit mode: false
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.connection.DriverManagerConnec
      tionProvider configure
      [hibernate] INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: system@/
      /localhost:1521/xe
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.connection.DriverManagerConnec
      tionProvider configure
      [hibernate] INFO: connection properties: {user=system, password=****}
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] WARNING: Could not obtain connection metadata
      [hibernate] java.sql.SQLException: No suitable driver found for system@//localho
      st:1521/xe
      [hibernate] at java.sql.DriverManager.getConnection(Unknown Source)
      [hibernate] at java.sql.DriverManager.getConnection(Unknown Source)
      [hibernate] at org.hibernate.connection.DriverManagerConnectionProvider.getC
      onnection(DriverManagerConnectionProvider.java:110)
      [hibernate] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFacto
      ry.java:76)
      [hibernate] at org.hibernate.cfg.Configuration.buildSettings(Configuration.j
      ava:1929)
      [hibernate] at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBC
      MetaDataConfiguration.java:38)
      [hibernate] at org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration(
      JDBCConfigurationTask.java:82)
      [hibernate] at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(Con
      figurationTask.java:55)
      [hibernate] at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(Hib
      ernateToolTask.java:299)
      [hibernate] at org.hibernate.tool.ant.HibernateToolTask.getProperties(Hibern
      ateToolTask.java:315)
      [hibernate] at org.hibernate.tool.ant.ExporterTask.configureExporter(Exporte
      rTask.java:94)
      [hibernate] at org.hibernate.tool.ant.Hbm2JavaExporterTask.configureExporter
      (Hbm2JavaExporterTask.java:34)
      [hibernate] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java
      :39)
      [hibernate] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToo
      lTask.java:183)
      [hibernate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
      va:275)
      [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
      [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
      [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [hibernate] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
      a:1216)
      [hibernate] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

      [hibernate] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
      faultExecutor.java:40)
      [hibernate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
      )
      [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [hibernate] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [hibernate] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.dialect.Dialect
      [hibernate] INFO: Using dialect: org.hibernate.dialect.OracleDialect
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.transaction.TransactionFactory
      Factory buildTransactionFactory
      [hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.transaction.TransactionManager
      LookupFactory getTransactionManagerLookup
      [hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, us
      e of read-write or transactional second-level cache is not recommended)
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Automatic session close at end of transaction: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Scrollable result sets: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: JDBC3 getGeneratedKeys(): disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Connection release mode: auto
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Default schema:
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Default batch fetch size: 1
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Generate SQL with comments: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Order SQL updates by primary key: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory createQuer
      yTranslatorFactory
      [hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFact
      ory
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.hql.ast.ASTQueryTranslatorFact
      ory
      [hibernate] INFO: Using ASTQueryTranslatorFactory
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Query language substitutions: {}
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: JPA-QL strict compliance: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Second-level cache: enabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Query cache: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory createCach
      eProvider
      [hibernate] INFO: Cache provider: org.hibernate.cache.NoCacheProvider
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Optimize cache for minimal puts: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Structured second-level cache entries: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Statistics: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.cfg.SettingsFactory buildSetti
      ngs
      [hibernate] INFO: Default entity-mode: pojo
      [hibernate] Jun 19, 2007 9:11:45 PM org.hibernate.connection.DriverManagerConnec
      tionProvider close
      [hibernate] INFO: cleaning up connection pool: system@//localhost:1521/xe
      [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.exception.JDBCConnectionException: Getting database me
      tadata
      [hibernate] java.sql.SQLException: No suitable driver found for system@//localho
      st:1521/xe

      BUILD FAILED
      C:\jboss-seam-1.2.1.GA\seam-gen\build.xml:813: org.hibernate.exception.JDBCConne
      ctionException: Getting database metadata

      Total time: 1 second

      C:\jboss-seam-1.2.1.GA>

      the build setup is:
      #Tue Jun 19 21:05:37 EDT 2007
      hibernate.connection.password=XXXXXXXX
      workspace.home=C\:/Mike/Programing/workspace
      model.package=com.odinsfire.newssite.model
      driver.jar=C\:\\ojdbc14.jar
      action.package=com.odinsfire.newssite.action
      test.package=com.odinsfire.newssite.test
      database.type=oracle
      hibernate.default_catalog.null=
      hibernate.default_schema=
      database.drop=n
      hibernate.default_schema.null=
      project.name=newslocal
      hibernate.connection.username=system
      hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
      project.type=ear
      database.exists=y
      jboss.home=C\:/Program Files/jboss-4.0.5.GA
      hibernate.dialect=org.hibernate.dialect.OracleDialect
      hibernate.connection.url=system@//localhost\:1521/xe