Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Hibernate2 Problem

- Hibernate2 Problem

2007-07-11       - By ralscha

 Back
Hello

I found a strange behaviour with Hibernate2 Example in Seam 2.0.0B1.
I deployed the example into Tomcat and it starts fine. In the browser I see the
homepage with the login form.

But everytime I start a request for example with "Register New User" or
"Register" in the New User form the program prints the following log. It looks
like everytime the program connects to the database it creates a new
HibernateSessionFactory. So everytime it drops and creates the tables in the
database because the SchemaExport tool is running.

Regards
Ralph

16:13:56,093 INFO  [Configuration] configuring from resource: /hibernate.cfg.xml
 |
 | 16:13:56,109 INFO  [Configuration] Configuration resource: /hibernate.cfg
.xml
 | 16:13:56,109 INFO  [Configuration] Configured SessionFactory: null
 | 16:13:56,109 INFO  [AnnotationBinder] Binding entity from annotated class:
org.j
 | boss.seam.example.hibernate.Hotel
 | 16:13:56,109 INFO  [EntityBinder] Bind entity org.jboss.seam.example
.hibernate.H
 | otel on table Hotel
 | 16:13:56,125 INFO  [AnnotationBinder] Binding entity from annotated class:
org.j
 | boss.seam.example.hibernate.User
 | 16:13:56,125 INFO  [EntityBinder] Bind entity org.jboss.seam.example
.hibernate.U
 | ser on table Customer
 | 16:13:56,125 INFO  [AnnotationBinder] Binding entity from annotated class:
org.j
 | boss.seam.example.hibernate.Booking
 | 16:13:56,125 INFO  [EntityBinder] Bind entity org.jboss.seam.example
.hibernate.B
 | ooking on table Booking
 | 16:13:56,140 INFO  [NamingHelper] JNDI InitialContext properties:{}
 | 16:13:56,140 INFO  [DatasourceConnectionProvider] Using datasource: java
:comp/en
 | v/jdbc/TestDB
 | 16:13:56,140 INFO  [SettingsFactory] RDBMS: HSQL Database Engine, version:
1.7.2
 |
 | 16:13:56,156 INFO  [SettingsFactory] JDBC driver: HSQL Database Engine
Driver, v
 | ersion: 1.7.2
 | 16:13:56,156 INFO  [Dialect] Using dialect: org.hibernate.dialect
.HSQLDialect
 | 16:13:56,156 INFO  [TransactionFactoryFactory] Transaction strategy: org
.hiberna
 | te.transaction.JDBCTransactionFactory
 | 16:13:56,156 INFO  [TransactionManagerLookupFactory] No
TransactionManagerLookup
 |  configured (in JTA environment, use of read-write or transactional second
-level
 |  cache is not recommended)
 | 16:13:56,156 INFO  [SettingsFactory] Automatic flush during
beforeCompletion():
 | enabled
 | 16:13:56,156 INFO  [SettingsFactory] Automatic session close at end of
transacti
 | on: disabled
 | 16:13:56,156 INFO  [SettingsFactory] JDBC batch size: 15
 | 16:13:56,171 INFO  [SettingsFactory] JDBC batch updates for versioned data:
disa
 | bled
 | 16:13:56,171 INFO  [SettingsFactory] Scrollable result sets: enabled
 | 16:13:56,171 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
 | 16:13:56,171 INFO  [SettingsFactory] Connection release mode: auto
 | 16:13:56,171 INFO  [SettingsFactory] Default batch fetch size: 1
 | 16:13:56,171 INFO  [SettingsFactory] Generate SQL with comments: disabled
 | 16:13:56,171 INFO  [SettingsFactory] Order SQL updates by primary key:
disabled
 | 16:13:56,171 INFO  [SettingsFactory] Query translator: org.hibernate.hql
.ast.AST
 | QueryTranslatorFactory
 | 16:13:56,171 INFO  [ASTQueryTranslatorFactory] Using
ASTQueryTranslatorFactory
 | 16:13:56,187 INFO  [SettingsFactory] Query language substitutions: {}
 | 16:13:56,187 INFO  [SettingsFactory] JPA-QL strict compliance: disabled
 | 16:13:56,187 INFO  [SettingsFactory] Second-level cache: enabled
 | 16:13:56,187 INFO  [SettingsFactory] Query cache: disabled
 | 16:13:56,187 INFO  [SettingsFactory] Cache provider: org.hibernate.cache
.Hashtab
 | leCacheProvider
 | 16:13:56,187 INFO  [SettingsFactory] Optimize cache for minimal puts:
disabled
 | 16:13:56,187 INFO  [SettingsFactory] Structured second-level cache entries:
disa
 | bled
 | 16:13:56,187 INFO  [SettingsFactory] Statistics: disabled
 | 16:13:56,187 INFO  [SettingsFactory] Deleted entity synthetic identifier
rollbac
 | k: disabled
 | 16:13:56,187 INFO  [SettingsFactory] Default entity-mode: pojo
 | 16:13:56,203 INFO  [SessionFactoryImpl] building session factory
 | 16:13:56,218 INFO  [SessionFactoryObjectFactory] Not binding factory to
JNDI, no
 |  JNDI name configured
 | 16:13:56,218 INFO  [SchemaExport] Running hbm2ddl schema export
 | 16:13:56,234 INFO  [SchemaExport] exporting generated schema to database
 | 16:13:56,234 INFO  [SchemaExport] Executing import script: /import.sql
 | 16:13:56,234 INFO  [SchemaExport] schema export complete
 |

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4063004#4063004

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4063004
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.