!MESSAGE An internal error occurred during: "Generating Artifacts".

!MESSAGE An internal error occurred during: "Generating Artifacts".

Caused by: java.sql.SQLException: org.logicalcobwebs.proxool.ProxoolException: Attempt to refer to a unregistered pool by its alias 'DBPool'

org.hibernate.HibernateException: Proxool Provider unable to load load Property configurator file: proxool.properties

myeclipse做hibernate反解析出错

今天在做ssh框架整合时出了这些问题.认真研究分析以后,发现myeclipse做反向生成的时候,会引用hibernate.cfg.xml配置文件来连接数据库做连接生成.但是我的配置文件是用的proxool.xml连接池来配置的.
很明显proxool.xml没有初始加载生成链接池,自然myeclipse怎么调用都会出现上面的错误了.
这个是我的配置文件:






true
DBPool

proxool.properties


org.hibernate.connection.ProxoolConnectionProvider

true
true

 于是马上把配置文件改成:







org.hibernate.dialect.MySQLDialect

mysql

jdbc:mysql://127.0.0.1:3306/webgame?characterEncoding=utf-8

root
root

com.mysql.jdbc.Driver

true



 就成功了.

你可能感兴趣的:(Eclipse)