-->
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.  [ 2 posts ] 
Author Message
 Post subject: configuring ehcache
PostPosted: Wed Nov 02, 2005 1:54 pm 
Newbie

Joined: Wed Oct 26, 2005 5:31 am
Posts: 6
I'm read the tutorial (day 2).
Now i have this error when i run on my project
Code:
Buildfile: build.xml
clean:
   [delete] Deleting directory C:\Programmi\Tomcat 5.5\webapps\assistenza\WEB-INF\classes
    [mkdir] Created dir: C:\Programmi\Tomcat 5.5\webapps\assistenza\WEB-INF\classes

copy-resources:
     [copy] Copying 8 files to C:\Programmi\Tomcat 5.5\webapps\assistenza\WEB-INF\classes

compile:
    [javac] Compiling 3 source files to C:\Programmi\Tomcat 5.5\webapps\assistenza\WEB-INF\classes

run:
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Environment <clinit>
     [java] INFO: Hibernate 3.0.5
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Environment <clinit>
     [java] INFO: hibernate.properties not found
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Environment <clinit>
     [java] INFO: using CGLIB reflection optimizer
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Environment <clinit>
     [java] INFO: using JDK 1.4 java.sql.Timestamp handling
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration configure
     [java] INFO: configuring from resource: /hibernate.cfg.xml
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration getConfigurationInputStream
     [java] INFO: Configuration resource: /hibernate.cfg.xml
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration addResource
     [java] INFO: Mapping resource: clienti_utenti.hbm.xml
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
     [java] INFO: Mapping class: clienti_utenti -> clienti_utenti
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration doConfigure
     [java] INFO: Configured SessionFactory: null
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration secondPassCompile
     [java] INFO: processing extends queue
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration secondPassCompile
     [java] INFO: processing collection mappings
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration secondPassCompile
     [java] INFO: processing association property references
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.Configuration secondPassCompile
     [java] INFO: processing foreign key constraints
     [java] 2-nov-2005 18.47.07 org.hibernate.connection.DriverManagerConnectionProvider configure
     [java] INFO: Using Hibernate built-in connection pool (not for production use!)
     [java] 2-nov-2005 18.47.07 org.hibernate.connection.DriverManagerConnectionProvider configure
     [java] INFO: Hibernate connection pool size: 1
     [java] 2-nov-2005 18.47.07 org.hibernate.connection.DriverManagerConnectionProvider configure
     [java] INFO: autocommit mode: false
     [java] 2-nov-2005 18.47.07 org.hibernate.connection.DriverManagerConnectionProvider configure
     [java] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql:assistenza
     [java] 2-nov-2005 18.47.07 org.hibernate.connection.DriverManagerConnectionProvider configure
     [java] INFO: connection properties: {}
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] AVVERTENZA: Could not obtain connection metadata
     [java] java.sql.SQLException: No suitable driver
     [java]     at java.sql.DriverManager.getConnection(DriverManager.java:532)
     [java]     at java.sql.DriverManager.getConnection(DriverManager.java:140)
     [java]     at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
     [java]     at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
     [java]     at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
     [java]     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
     [java]     at HibernateUtil.<clinit>(Unknown Source)
     [java]     at Go.main(Unknown Source)
     [java] 2-nov-2005 18.47.07 org.hibernate.dialect.Dialect <init>
     [java] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
     [java] 2-nov-2005 18.47.07 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
     [java] INFO: Using default transaction strategy (direct JDBC transactions)
     [java] 2-nov-2005 18.47.07 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
     [java] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended
)
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Automatic flush during beforeCompletion(): disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Automatic session close at end of transaction: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Scrollable result sets: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: JDBC3 getGeneratedKeys(): disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Connection release mode: null
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Maximum outer join fetch depth: 2
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Default batch fetch size: 1
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Generate SQL with comments: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Order SQL updates by primary key: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
     [java] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
     [java] 2-nov-2005 18.47.07 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
     [java] INFO: Using ASTQueryTranslatorFactory
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Query language substitutions: {}
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Second-level cache: enabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Query cache: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory createCacheProvider
     [java] INFO: Cache provider: org.hibernate.cache.EhCacheProvider
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Optimize cache for minimal puts: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Structured second-level cache entries: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Echoing all SQL to stdout
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Statistics: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Deleted entity synthetic identifier rollback: disabled
     [java] 2-nov-2005 18.47.07 org.hibernate.cfg.SettingsFactory buildSettings
     [java] INFO: Default entity-mode: pojo
     [java] 2-nov-2005 18.47.07 org.hibernate.impl.SessionFactoryImpl <init>
     [java] INFO: building session factory
     [java] 2-nov-2005 18.47.07 net.sf.ehcache.config.Configurator configure
     [java] AVVERTENZA: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Programmi/Tomcat%20
5.5/webapps/assistenza/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
     [java] Initial SessionFactory creation failed.org.hibernate.MappingException: could not instantiate id generator
     [java] java.lang.ExceptionInInitializerError
     [java]     at HibernateUtil.<clinit>(Unknown Source)
     [java]     at Go.main(Unknown Source)
     [java] Caused by: org.hibernate.MappingException: could not instantiate id generator
     [java]     at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:92)
     [java]     at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:151)
     [java]     at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:178)
     [java]     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
     [java]     ... 2 more
     [java] Caused by: org.hibernate.MappingException: could not interpret id generator strategy: uuid.string
     [java]     at org.hibernate.id.IdentifierGeneratorFactory.getIdentifierGeneratorClass(IdentifierGeneratorFactory.java:103)
     [java]     at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:86)
     [java]     ... 5 more
     [java] Exception in thread "main"
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 3 seconds

What' is ehcache?
What i'm doing to configure?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 3:22 pm 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
I'd be more concerned about what appears to be the absence of a suitable JDBC driver. Ehcache is for the second level cache, but you need to fix your connection issue first.

Follow the guidlines for posting and supply necessay information.


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

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.