!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怎么调用都会出现上面的错误了.
这个是我的配置文件:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.proxool.pool_alias">DBPool</property>
<property name="hibernate.proxool.properties">
proxool.properties
</property>
<property name="hibernate.connection.provider_class">
org.hibernate.connection.ProxoolConnectionProvider
</property>
<property name="hibernate.proxool.existing_pool">true</property>
<property name="hibernate.cache.use_query_cache">true</property>
</session-factory>
</hibernate-configuration>
于是马上把配置文件改成:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="myeclipse.connection.profile">mysql</property>
<property name="connection.url">
jdbc:mysql://127.0.0.1:3306/webgame?characterEncoding=utf-8
</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="show_sql">true</property>
<mapping
resource="com/webgame/account/form/WebgameAccountIndex.hbm.xml" />
</session-factory>
</hibernate-configuration>
就成功了.
分享到:
相关推荐
实用开发工具Myeclipse,在启动tomcat时,不间断的会弹出 An internal error occurred during: "Calculating completion proposals...". java.lang.NullPointerException的错误对话框!
myeclipse弹出an internal error occurred during:"initializing"java tooling.有时候myeclipse总是在保存的时候弹出错误,只要保存就弹出.本资源可以解决报错问题
NULL 博文链接:https://xiaoxuejie.iteye.com/blog/1679119
win7_64eclispe插件 解决An internal error occurred during: "Map/Reduce location status updater". org/codehaus/jackson/map/JsonMappingException 重新编译包
spket-plugin-1.6.18破解版 已解决An internal error occurred during: "Loading Context". 错误 解压后将features和plugins拷贝到MyEclipse的 dropins文件夹下。
NULL 博文链接:https://zhongrf.iteye.com/blog/1964274
org.ayound.js.debug.core org.ayound.js.debug.engine org.ayound.js.debug.ui 源码,该插件代码放入eclipse中的plugins中,eclipse中就可以支持js调试,它需要跟浏览器配合使用...
Windows Task Manager disabled regedit disabled status and are useful to improve the situation.
大数据是当今的一个热门话题,相信搞JAVA的我们当然不能错过了,尤其是hadoop这个大数据时代的宠儿是属于我们JAVA界的(核心是用JAVA写的)。 看到hadoop,相信一堆概念大家都听得不少了,什么MapReduce,这个就大概...
NULL 博文链接:https://wujianjun.iteye.com/blog/531039
最近用的时候, 发现, 建立PHP工程后,再打开 Zend Studio for Eclipse就出现这个错误 An internal error occurred during: “Building PHP projects …”java.lang.NullPointerException 很烦人的. 出错后...
在linux上启动jmeter-server报错: Server failed to start: java.rmi.RemoteException: Cannot start. localhost is a loopback address. ...An error occurred: Cannot start. localhost is a loopback address.
是windows下eclipse连接hadoop的操作文档,注意系统环境变量一定要配置
本人实践,物超所值,一站式解决jmeter负载机环境问题,问题集合含: ... localhost.localdomain is a loopback address.An error occurred: Cannot start. localhost.localdomain is a loopback address.
The greatest compliment you can give an author of a technical book is “This is the book I wish I had when I got started with this subject.” This is the goal we set for our‐ selves when we started ...
SVN汉化版,妈妈再也不用担心我英文不好了。
此程序是使用C#开发的图片智能识别demo,可以识别图片上的可见字符,包括数字、字母键盘上所有能输入的字符,可以作为开发人员参考。
万恶的An error occurred during local report processing异常 出现这个异常有很多原因,下面介绍一下由于VS版本问题造成这样的异常: The report definition has an invalid target namespace ...
异常A generic error occurred in GDI+的解决办法
基于eclipse内核的编辑器,如eclipse,zendstudio,apatana安装spket插件后js代码无法自动补全,解决An internal error occurred during: "Loading Context".错误, 文件包括: com.spket.ui_1.6.18.jar ...