Hi, I'm newbie in Tapestry and Hibernate and I cannot realize why Hibernate don't see my entities. My entity classes have @Entity annotation and are in entities package. Dependencies for hibernate-tapestry that I use: <dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-core</artifactId> <version>5.3.6</version> </dependency> <dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-hibernate-core</artifactId> <version>5.3.6</version> </dependency>
The info from console that I get: [ERROR] TapestryModule.ClientDataEncoder The symbol 'tapestry.hmac-passphrase' has not been configured. This is used to configure hash-based message authentication of Tapestry data stored in forms, or in the URL. You application is less secure, and more vulnerable to denial-of-service attacks, when this symbol is not configured. [DEBUG] components.Cities [ENTER] onPrepareForRender() [INFO] common.Version Hibernate Commons Annotations 3.2.0.Final [INFO] cfg.Environment Hibernate 3.6.0.Final [INFO] cfg.Environment hibernate.properties not found [INFO] cfg.Environment Bytecode provider name : javassist [INFO] cfg.Environment using JDK 1.4 java.sql.Timestamp handling [INFO] cfg.Configuration configuring from resource: /hibernate.cfg.xml [INFO] cfg.Configuration Configuration resource: /hibernate.cfg.xml [WARN] util.DTDEntityResolver recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! [INFO] cfg.Configuration Configured SessionFactory: null [INFO] cfg.Configuration Hibernate Validator not found: ignoring [INFO] search.HibernateSearchEventListenerRegister Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled. [INFO] connection.DriverManagerConnectionProvider Using Hibernate built-in connection pool (not for production use!) [INFO] connection.DriverManagerConnectionProvider Hibernate connection pool size: 20 [INFO] connection.DriverManagerConnectionProvider autocommit mode: false [INFO] connection.DriverManagerConnectionProvider using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/library [INFO] connection.DriverManagerConnectionProvider connection properties: {user=root, password=****} [INFO] cfg.SettingsFactory Database -> name : MySQL version : 5.5.24-log major : 5 minor : 5 [INFO] cfg.SettingsFactory Driver -> name : MySQL-AB JDBC Driver version : mysql-connector-java-5.1.23 ( Revision: ${bzr.revision-id} ) major : 5 minor : 1 [INFO] dialect.Dialect Using dialect: org.hibernate.dialect.MySQLDialect [INFO] transaction.TransactionFactoryFactory Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory [INFO] transaction.TransactionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) [INFO] cfg.SettingsFactory Automatic flush during beforeCompletion(): disabled [INFO] cfg.SettingsFactory Automatic session close at end of transaction: disabled [INFO] cfg.SettingsFactory JDBC batch size: 15 [INFO] cfg.SettingsFactory JDBC batch updates for versioned data: disabled [INFO] cfg.SettingsFactory Scrollable result sets: enabled [INFO] cfg.SettingsFactory JDBC3 getGeneratedKeys(): enabled [INFO] cfg.SettingsFactory Connection release mode: auto [INFO] cfg.SettingsFactory Maximum outer join fetch depth: 2 [INFO] cfg.SettingsFactory Default batch fetch size: 1 [INFO] cfg.SettingsFactory Generate SQL with comments: disabled [INFO] cfg.SettingsFactory Order SQL updates by primary key: disabled [INFO] cfg.SettingsFactory Order SQL inserts for batching: disabled [INFO] cfg.SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory [INFO] ast.ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory [INFO] cfg.SettingsFactory Query language substitutions: {} [INFO] cfg.SettingsFactory JPA-QL strict compliance: disabled [INFO] cfg.SettingsFactory Second-level cache: enabled [INFO] cfg.SettingsFactory Query cache: disabled [INFO] cfg.SettingsFactory Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory [INFO] cfg.SettingsFactory Optimize cache for minimal puts: disabled [INFO] cfg.SettingsFactory Structured second-level cache entries: disabled [INFO] cfg.SettingsFactory Echoing all SQL to stdout [INFO] cfg.SettingsFactory Statistics: disabled [INFO] cfg.SettingsFactory Deleted entity synthetic identifier rollback: disabled [INFO] cfg.SettingsFactory Default entity-mode: pojo [INFO] cfg.SettingsFactory Named query checking : enabled [INFO] cfg.SettingsFactory Check Nullability in Core (should be disabled when Bean Validation is on): enabled [INFO] impl.SessionFactoryImpl building session factory [INFO] impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured [INFO] hbm2ddl.SchemaUpdate Running hbm2ddl schema update [INFO] hbm2ddl.SchemaUpdate fetching database metadata [INFO] hbm2ddl.SchemaUpdate updating schema [INFO] hbm2ddl.SchemaUpdate schema update complete [INFO] HibernateCoreModule.HibernateSessionSource Hibernate startup: 230 ms to configure, 714 ms overall. [INFO] HibernateCoreModule.HibernateSessionSource Configured Hibernate entities: (none) [DEBUG] components.Cities [ EXIT] onPrepareForRender Any help would be appreciated. Thanks, Angela