Bom dia pessoal, Estou estudando persistência em banco com java, estou usando hibernate, porém não estou conseguindo persistir com o banco Mysql, a saida é essa, alguem pode mim ajudar como posso resolver, obrigado.
Mar 20, 2013 9:31:53 AM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
Mar 20, 2013 9:31:53 AM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.10.Final}
Mar 20, 2013 9:31:53 AM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
Mar 20, 2013 9:31:53 AM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
Mar 20, 2013 9:31:53 AM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
Mar 20, 2013 9:31:53 AM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
Mar 20, 2013 9:31:53 AM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
Mar 20, 2013 9:31:53 AM org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Automovel.hbm.xml
Mar 20, 2013 9:31:53 AM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
Mar 20, 2013 9:31:53 AM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Mar 20, 2013 9:31:53 AM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
Mar 20, 2013 9:31:53 AM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20
Mar 20, 2013 9:31:53 AM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000006: Autocommit mode: false
Mar 20, 2013 9:31:53 AM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000401: using driver [org.gjt.mm.mysql.Driver] at URL [jdbc:mysql://localhost:3309/automovel]
Mar 20, 2013 9:31:53 AM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000046: Connection properties: {user=root, password=****}
Mar 20, 2013 9:31:54 AM org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Mar 20, 2013 9:31:54 AM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Mar 20, 2013 9:31:54 AM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory
INFO: HHH000397: Using ASTQueryTranslatorFactory
Exception in thread “main” org.hibernate.TransactionException: Transaction not successfully started
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.rollback(AbstractTransactionImpl.java:200)
at br.com.dao.DAO.rollback(DAO.java:33)
at br.com.dao.AutomovelDAO.salvar(AutomovelDAO.java:24)
at br.com.teste.AutomovelMain.main(AutomovelMain.java:35)