首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

proxool的有关问题,无法通过parsing

2012-02-10 
proxool的问题,无法通过parsing出错信息如下:5468[http-8080-Processor25]INFOproxool.ProxoolFacade-Prox

proxool的问题,无法通过parsing
出错信息如下:
5468   [http-8080-Processor25]   INFO   proxool.ProxoolFacade     -   Proxool   0.8.3   (14-Dec-2003   16:06)
5531   [http-8080-Processor25]   INFO   connection.ProxoolConnectionProvider     -   Configuring   Proxool   Provider   to   use   pool   alias:   proxool.DBPool
5531   [http-8080-Processor25]   INFO   connection.ProxoolConnectionProvider     -   autocommit   mode:   false
6172   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   RDBMS:   MySQL,   version:   5.0.27-community-nt
6172   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   JDBC   driver:   MySQL-AB   JDBC   Driver,   version:   mysql-connector-java-5.0.4   (   $Date:   2006-10-19   17:47:48   +0200   (Thu,   19   Oct   2006)   $,   $Revision:   5908   $   )
6234   [http-8080-Processor25]   INFO   dialect.Dialect     -   Using   dialect:   org.hibernate.dialect.MySQLDialect
6250   [http-8080-Processor25]   INFO   transaction.TransactionFactoryFactory     -   Using   default   transaction   strategy   (direct   JDBC   transactions)
6265   [http-8080-Processor25]   INFO   transaction.TransactionManagerLookupFactory     -   No   TransactionManagerLookup   configured   (in   JTA   environment,   use   of   read-write   or   transactional   second-level   cache   is   not   recommended)
6406   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Automatic   flush   during   beforeCompletion():   disabled
6406   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Automatic   session   close   at   end   of   transaction:   disabled
6406   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   JDBC   batch   size:   15
6406   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   JDBC   batch   updates   for   versioned   data:   disabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Scrollable   result   sets:   enabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   JDBC3   getGeneratedKeys():   enabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Connection   release   mode:   auto
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Maximum   outer   join   fetch   depth:   2
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Default   batch   fetch   size:   1
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Generate   SQL   with   comments:   disabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Order   SQL   updates   by   primary   key:   disabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Query   translator:   org.hibernate.hql.ast.ASTQueryTranslatorFactory
6422   [http-8080-Processor25]   INFO   ast.ASTQueryTranslatorFactory     -   Using   ASTQueryTranslatorFactory


6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Query   language   substitutions:   {}
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Second-level   cache:   enabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Query   cache:   disabled
6422   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Cache   provider:   org.hibernate.cache.EhCacheProvider
6437   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Optimize   cache   for   minimal   puts:   disabled
6437   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Structured   second-level   cache   entries:   disabled
6453   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Echoing   all   SQL   to   stdout
6453   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Statistics:   disabled
6453   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Deleted   entity   synthetic   identifier   rollback:   disabled
6453   [http-8080-Processor25]   INFO   cfg.SettingsFactory     -   Default   entity-mode:   pojo
6515   [http-8080-Processor25]   INFO   impl.SessionFactoryImpl     -   building   session   factory
6531   [http-8080-Processor25]   WARN   config.Configurator     -   No   configuration   found.   Configuring   ehcache   from   ehcache-failsafe.xml   found   in   the   classpath:   jar:file:/D:/tomcat/webapps/bookstoressh/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
7203   [http-8080-Processor25]   INFO   impl.SessionFactoryObjectFactory     -   Not   binding   factory   to   JNDI,   no   JNDI   name   configured
7203   [http-8080-Processor25]   INFO   cfg.Configuration     -   configuring   from   resource:   /hibernate.cfg.xml
7203   [http-8080-Processor25]   INFO   cfg.Configuration     -   Configuration   resource:   /hibernate.cfg.xml
7218   [http-8080-Processor25]   INFO   cfg.Configuration     -   Reading   mappings   from   resource:   com/gzzl/struts/Customer.hbm.xml
7250   [http-8080-Processor25]   INFO   cfg.HbmBinder     -   Mapping   class:   com.gzzl.struts.Customer   ->   customer
7250   [http-8080-Processor25]   INFO   cfg.Configuration     -   Configured   SessionFactory:   null
7250   [http-8080-Processor25]   INFO   connection.ConnectionProviderFactory     -   Initializing   connection   provider:   org.hibernate.connection.ProxoolConnectionProvider
7250   [http-8080-Processor25]   INFO   connection.ProxoolConnectionProvider     -   Configuring   Proxool   Provider   using   JAXPConfigurator:   MyDb.xml
7265   [http-8080-Processor25]   FATAL   connection.ProxoolConnectionProvider     -   Proxool   Provider   unable   to   load   JAXP   configurator   file:   MyDb.xml
org.logicalcobwebs.proxool.ProxoolException:   Parsing   failed.
at   org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:91)


at   org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:107)
at   org.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:120)
at   org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at   org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at   org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)
at   org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
at   org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
at   org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
at   com.gzzl.struts.CustomerDAO.getSessionFactory(CustomerDAO.java:37)

MYDb.xml内容:
<?xml   version= "1.0 "   encoding= "ISO-8859-1 "?>
<proxool>
<alias> DBPool </alias>
<driver-url> jdbc:mysql://localhost:3306/bookstoressh </driver-url>
<driver-class> com.mysql.jdbc.Driver </driver-class>
<driver-properties>
<property   name= "user "   value= "root "/>
<property   name= "password "   value= "111 "/>
</driver-properties>
<house-keeping-test-time> select   CURRENT_DATE </house-keeping-test-time>
<maximum-active-time> 60000 </maximum-active-time>
<maximum-connection-count> 100 </maximum-connection-count>
<minimum-connection-count> 10 </minimum-connection-count>
</proxool>

hibernate.cfg.xml的文件内容:
<?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 ">

<!--   Generated   by   MyEclipse   Hibernate   Tools.                                       -->
<hibernate-configuration>

<session-factory>
<property   name= "hibernate.connection.provider_class "> org.hibernate.connection.ProxoolConnectionProvider
          </property>


  <property   name= "hibernate.proxool.pool_alias "> DBPool </property>
          <property   name= "hibernate.proxool.xml "> MyDb.xml </property>
          <property   name= "show_sql "> true </property>
          <property   name= "dialect "> org.hibernate.dialect.MySQLDialect </property>
<mapping   resource= "com/gzzl/struts/Customer.hbm.xml "   />

</session-factory>

</hibernate-configuration>


重点是:MyDb.xml已经被读取了,我尝试更改了数据库的密码,就无法访问数据库了.但是一直PArsing   Failed,不知道为什么????经常有人问这个问题,就没有解决过.郁闷!!!

[解决办法]
帮顶
[解决办法]
有可能文件名称不对,或是文件的路径不对,找不到文件了吧


[解决办法]
你的hibernate.cfg.xml文件中

<property name= "hibernate.connection.provider_class "> org.hibernate.connection.ProxoolConnectionProvider
</property>

name改为 "connection.provider_class " 就没问题了

结帖给分!呵呵!

[解决办法]
牛人
[解决办法]
只有墙角了。

热点排行