Olá pessoal,
Usei o assistente do netbeans 7.2 para criar o hibernante.cfg.xml, obtendo sucesso no teste de conexão com Java Db embedded. Tanto que foi criada uma conexão na aba de serviços do netbeans para este banco, onde aproveitei e criei uma tabela, adicionando em seguida um registro nela.
O erro abaixo surge ao tentar criar o hibernate.reveng via assistente do netbeans 7.2.
no assistente surge:
Não foi possível estabelecer a conexão do banco de dados com o arquivo de Configuração do Hibernate selecionado . Verifique os detalhes da conexão ao banco de dados em hibernate.cfg.xml.
no log do ide surge:
INFO [org.netbeans.modules.hibernate.util.HibernateUtil]: Found pre-existing database connection.
INFO [org.netbeans.modules.hibernate.util.HibernateUtil]: Database Connection is pre-established. Returning the conneciton.
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: Initializing Custom Classloader with classpath :
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/antlr-2.7.6.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/asm.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/asm-attrs.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/cglib-2.1.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/commons-collections-2.1.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/org-apache-commons-logging.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/dom4j-1.6.1.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/ehcache-1.2.3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/jdbc2_0-stdext.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/jta.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/hibernate3.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/hibernate-tools.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/hibernate-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/hibernate-commons-annotations.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/hibernate-entitymanager.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/hibernate-support/javassist.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/ejb3-persistence/ejb3-persistence.jar!/
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/Users/vicente/Documents/NetBeansProjects/JavaApplication/lib/derby.jar!/
[color=red]INFO [org.netbeans.modules.hibernate.service.spi.HibernateEnvironmentImpl]: Cannot establish direct database connection
ERROR XSDB6: Another instance of Derby may have already booted the database C:\Users\vicente\AppData\Roaming\NetBeans\7.2\derby\teste.
[/color]

