首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

严重: Proxool Provider unable to load JAXP configurator file: proxoolconf.xml解决办法

2012-03-09 
严重: Proxool Provider unable to load JAXP configurator file: proxoolconf.xmlhibernate.cfg.xmlXML c

严重: Proxool Provider unable to load JAXP configurator file: proxoolconf.xml
hibernate.cfg.xml

XML code
<?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>        <!-- Database connection settings -->        <property name="hibernate.connection.provider_class">            org.hibernate.connection.ProxoolConnectionProvider           </property>        <property name="hibernate.proxool.pool_alias">DBPool</property>        <property name="hibernate.proxool.xml">proxoolconf.xml</property>        <!-- SQL dialect -->        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>        <!-- Echo all executed SQL to stdout -->        <property name="show_sql">true</property>    </session-factory></hibernate-configuration>  

proxoolconf.xml
XML code
<?xml version="1.0" encoding="UTF-8"?><something-else-entirely>    <proxool>            <!--连接池的别名-->        <alias>DBPool</alias>                <!--proxool只能管理由自己产生的连接-->        <driver-url>            jdbc:mysql://127.0.0.1:3306/book        </driver-url>                <!--JDBC驱动程序-->        <driver-class>com.mysql.jdbc.Driver</driver-class>        <driver-properties>            <property name="user" value="root"></property>            <property name="password" value="123456"></property>        </driver-properties>                <!--proxool自动侦察各个连接状态的时间间隔(毫秒),侦察到空闲的连接就马上回收,超时的销毁-->        <house-keeping-sleep-time>90000</house-keeping-sleep-time>                <!-- 指因未有空闲连接可以分配而在队列中等候的最大请求数,超过这个请求数的用户连接就不会被接受-->        <maximum-new-connections>20</maximum-new-connections>                <!--最少保持的空闲连接数-->        <prototype-count>5</prototype-count>                <!--允许最大连接数,超过了这个连接,再有请求时,就排在队列中等候,最大的等待请求数由maximum-new-connections决定-->        <maximum-connection-count>50</maximum-connection-count>                <!-- 最小连接数-->        <minimum-connection-count>10</minimum-connection-count>            </proxool></something-else-entirely>  

web.xml
XML code
<servlet>    <servlet-name>ServletConfigurator</servlet-name>    <servlet-class>            org.logicalcobwebs.proxool.configuration.ServletConfigurator    </servlet-class>    <init-param>    <param-name>xmlFile</param-name>    <param-value>WEB-INF/classes/proxoolconf.xml</param-value>    </init-param>    <load-on-startup>1</load-on-startup></servlet>


下面是出现的错误信息:

严重: Proxool Provider unable to load JAXP configurator file: proxoolconf.xml
org.logicalcobwebs.proxool.ProxoolException: Parsing failed.
  at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPCo
nfigurator.java:91)
  at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPCo
nfigurator.java:107)
  at org.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnec
tionProvider.java:120)


  at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(C
onnectionProviderFactory.java:80)
  at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory
.java:313)
  at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:112)
  at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:105
4)
  at com.tiportech.meetingProject.meeting.util.SessionFactoryHelp.getSf(Session
FactoryHelp.java:13)
  at com.tiportech.meetingProject.meeting.meetingmanage.dao.impl.MeetingImpl.ge
tByMeetingSate(MeetingImpl.java:121)
  at com.tiportech.meetingProject.meeting.meetingmanage.business.ebo.MeetingEbo
.getByMeetingSate(MeetingEbo.java:39)
  at com.tiportech.meetingProject.meeting.meetingmanage.web.MeetingShowStateSer
vlet.doPost(MeetingShowStateServlet.java:24)
  at com.tiportech.meetingProject.meeting.meetingmanage.web.MeetingShowStateSer
vlet.doGet(MeetingShowStateServlet.java:16)

hibernate。cfg.xml 和proxoolconf.xml都放在src下面,在网上看了好多,也没有解决,请大家的帮忙

[解决办法]
JAXPConfigurator.java:91 可以看一下代码,定位是哪行配置笔误了

热点排行