-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problems in creating a configuration for JPA in Seam
PostPosted: Thu Sep 17, 2009 7:33 am 
Newbie

Joined: Thu Sep 17, 2009 7:25 am
Posts: 1
D:\Mahesh\Seam-gen>seam generate
SEAM_HOME: D:\Mahesh\Seam-gen
Using seam-gen sources from: D:\Mahesh\Seam-gen\seam-gen
Buildfile: D:\Mahesh\Seam-gen\seam-gen\build.xml

init:

init-properties:
[echo] d:/Mahesh/JBoss

validate-workspace:

validate-project:

init-generate:

generate-model:
[echo] Reverse engineering database using JDBC driver d:\Mahesh\mysql\mysql
-connector-java-5.0.8-bin.jar
[echo] project=c:/GTT/DemoTest
[echo] model=com.mbt.beans
[hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engi
neering)
[hibernate] 1. task: hbm2java (Generates a set of .java files)
[hibernate] Sep 17, 2009 4:49:21 PM org.hibernate.cfg.Environment <clinit>
[hibernate] INFO: Hibernate 3.2.4.sp1
[hibernate] Sep 17, 2009 4:49:22 PM org.hibernate.cfg.Environment <clinit>
[hibernate] INFO: hibernate.properties not found
[hibernate] Sep 17, 2009 4:49:22 PM org.hibernate.cfg.Environment buildBytecodeP
rovider
[hibernate] INFO: Bytecode provider name : cglib
[hibernate] Sep 17, 2009 4:49:22 PM org.hibernate.cfg.Environment <clinit>
[hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernate] Sep 17, 2009 4:49:23 PM org.hibernate.cfg.reveng.OverrideRepository
addFile
[hibernate] INFO: Override file: c:\GTT\DemoTest\resources\seam-gen.reveng.xml
[hibernate] Sep 17, 2009 4:49:24 PM org.hibernate.connection.DriverManagerConnec
tionProvider configure
[hibernate] INFO: Using Hibernate built-in connection pool (not for production u
se!)
[hibernate] Sep 17, 2009 4:49:24 PM org.hibernate.connection.DriverManagerConnec
tionProvider configure
[hibernate] INFO: Hibernate connection pool size: 20
[hibernate] Sep 17, 2009 4:49:24 PM org.hibernate.connection.DriverManagerConnec
tionProvider configure
[hibernate] INFO: autocommit mode: false
[hibernate] Sep 17, 2009 4:49:24 PM org.hibernate.connection.DriverManagerConnec
tionProvider configure
[hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://local
host:3306/dbtest
[hibernate] Sep 17, 2009 4:49:24 PM org.hibernate.connection.DriverManagerConnec
tionProvider configure
[hibernate] INFO: connection properties: {user=root, password=****}
[hibernate] Sep 17, 2009 4:49:25 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: RDBMS: MySQL, version: 5.1.30-community
[hibernate] Sep 17, 2009 4:49:25 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-ja
va-5.0.8 ( Revision: ${svn.Revision} )
[hibernate] Sep 17, 2009 4:49:26 PM org.hibernate.dialect.Dialect <init>
[hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
[hibernate] Sep 17, 2009 4:49:26 PM org.hibernate.transaction.TransactionFactory
Factory buildTransactionFactory
[hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernate] Sep 17, 2009 4:49:26 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] Sep 17, 2009 4:49:26 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Automatic flush during beforeCompletion(): disabled
[hibernate] Sep 17, 2009 4:49:26 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Automatic session close at end of transaction: disabled
[hibernate] Sep 17, 2009 4:49:26 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: JDBC batch size: 15
[hibernate] Sep 17, 2009 4:49:26 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: JDBC batch updates for versioned data: disabled
[hibernate] Sep 17, 2009 4:49:26 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Scrollable result sets: enabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: JDBC3 getGeneratedKeys(): enabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Connection release mode: auto
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Default catalog: dbtest
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Maximum outer join fetch depth: 2
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Default batch fetch size: 1
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Generate SQL with comments: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Order SQL updates by primary key: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Order SQL inserts for batching: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory createQuer
yTranslatorFactory
[hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFact
ory
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.hql.ast.ASTQueryTranslatorFact
ory <init>
[hibernate] INFO: Using ASTQueryTranslatorFactory
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Query language substitutions: {}
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: JPA-QL strict compliance: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Second-level cache: enabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Query cache: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory createCach
eProvider
[hibernate] INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Optimize cache for minimal puts: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Structured second-level cache entries: disabled
[hibernate] Sep 17, 2009 4:49:27 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Statistics: disabled
[hibernate] Sep 17, 2009 4:49:28 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernate] Sep 17, 2009 4:49:28 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Default entity-mode: pojo
[hibernate] Sep 17, 2009 4:49:28 PM org.hibernate.cfg.SettingsFactory buildSetti
ngs
[hibernate] INFO: Named query checking : enabled
[hibernate] Sep 17, 2009 4:49:28 PM org.hibernate.connection.DriverManagerConnec
tionProvider close
[hibernate] INFO: cleaning up connection pool: jdbc:mysql://localhost:3306/dbtes
t
[hibernate] Sep 17, 2009 4:49:29 PM org.hibernate.tool.Version <clinit>
[hibernate] INFO: Hibernate Tools 3.2.2.GA
[javaformatter] Java formatting of 1 files completed. Skipped 0 file(s).

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

init:

groovy.compile:

groovy.copy:

compile:
[javac] Warning: com\mbt\beans\User.java modified in the future.
[javac] Compiling 1 source file to c:\GTT\DemoTest\exploded-archives\DemoTes
t.jar

copyclasses:

jar:
[copy] Copying 1 file to c:\GTT\DemoTest\exploded-archives\DemoTest.jar\MET
A-INF
[copy] Copying 1 file to c:\GTT\DemoTest\exploded-archives\DemoTest.jar
[hibernate] Executing Hibernate Tool with a JPA Configuration
[hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] Sep 17, 2009 4:50:28 PM org.hibernate.cfg.annotations.Version <clini
t>
[hibernate] INFO: Hibernate Annotations 3.3.1.Beta1
[hibernate] Sep 17, 2009 4:50:28 PM org.hibernate.ejb.Version <clinit>
[hibernate] INFO: Hibernate EntityManager 3.3.2.Beta1
[hibernate] Sep 17, 2009 4:50:29 PM org.hibernate.cfg.AnnotationBinder bindClass

[hibernate] INFO: Binding entity from annotated class: com.mbt.beans.User
[hibernate] Sep 17, 2009 4:50:29 PM org.hibernate.cfg.annotations.EntityBinder b
indTable
[hibernate] INFO: Bind entity com.mbt.beans.User on table User
[hibernate] An exception occurred while running exporter #2:generic exportertemp
late: view/list.xhtml.ftl
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] Problems in creating a configuration for JPA. Have you remembered to
add hibernate EntityManager jars to the classpath ?
[hibernate] java.lang.reflect.InvocationTargetException
[hibernate] javax.persistence.PersistenceException: org.hibernate.AnnotationExce
ption: No identifier specified for entity: com.mbt.beans.User
[hibernate] org.hibernate.AnnotationException: No identifier specified for entit
y: com.mbt.beans.User

BUILD FAILED
D:\Mahesh\Seam-gen\seam-gen\build.xml:1148: Problems in creating a configuration
for JPA. Have you remembered to add hibernate EntityManager jars to the classpa
th ?

Total time: 1 minute 15 seconds


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.