Article:
  Wiring Your Web Application with Open Source Java
Subject:   How to make Proxool Provider able to load JAXP configurator file
Date:   2004-09-15 19:15:57
From:   bikachu
the following is the error message information:


2004-09-16 10:10:03,812 : Configuration.secondPassCompile : processing one-to-one association property references
2004-09-16 10:10:03,812 : Configuration.secondPassCompile : processing foreign key constraints
2004-09-16 10:10:03,812 : Dialect.<init> : Using dialect: net.sf.hibernate.dialect.MySQLDialect
2004-09-16 10:10:03,812 : SettingsFactory.buildSettings : Use outer join fetching: false
2004-09-16 10:10:03,812 : ProxoolConnectionProvider.configure : Configuring Proxool Provider using JAXPConfigurator: D:/eclipse/workspace/spring/wiring/WEB-INF/proxool.xml
2004-09-16 10:10:03,843 : ProxoolConnectionProvider.configure : Proxool Provider unable to load JAXP configurator file: D:/eclipse/workspace/spring/wiring/WEB-INF/proxool.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:56)
at net.sf.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:122)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:64)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:436)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:948)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:204)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:203)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:279)
at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:97)
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:80)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:162)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:182)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl.doRegisterWar(CatalinaJWebContainerServiceImpl.java:453)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.registerWar(AbsJWebContainerServiceImpl.java:751)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doStart(AbsJWebContainerServiceImpl.java:344)
at org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:257)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:67)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:308)
at org.objectweb.jonas.server.Server.start(Server.java:198)
at org.objectweb.jonas.server.Server.main(Server.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:370)
Caused by: org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'spring'
at org.logicalcobwebs.proxool.configuration.XMLConfigurator.endElement(XMLConfigurator.java:198)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:87)
... 43 more
Caused by:
org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'spring'
at org.logicalcobwebs.proxool.configuration.XMLConfigurator.endElement(XMLConfigurator.java:198)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1480)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:87)
at org.logicalcobwebs.proxool.configuration.JAXPConfigurator.configure(JAXPConfigurator.java:56)
at net.sf.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:122)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:64)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:436)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:948)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:204)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:136)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:203)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:279)
at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:156)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:97)
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:80)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:162)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:182)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl.doRegisterWar(CatalinaJWebContainerServiceImpl.java:453)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.registerWar(AbsJWebContainerServiceImpl.java:751)
at org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doStart(AbsJWebContainerServiceImpl.java:344)
at org.objectweb.jonas.web.catalina41.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:257)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:67)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:308)
at org.objectweb.jonas.server.Server.start(Server.java:198)
at org.objectweb.jonas.server.Server.main(Server.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:370)
2004-09-16 10:10:03,921 : AbstractBeanFactory.destroySingletons : Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [mySessionFactory,myTransactionManager,orderService,orderTarget,orderDAO]; Root of BeanFactory hierarchy}
2004-09-16 10:10:03,921 : ContextLoader.initWebApplicationContext : Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in resource [/WEB-INF/applicationContext-hibernate.xml] of ServletContext: Initialization of bean failed; nested exception is net.sf.hibernate.HibernateException: Proxool Provider unable to load JAXP configurator file: D:/eclipse/workspace/spring/wiring/WEB-INF/proxool.xml
net.sf.hibernate.HibernateException: Proxool Provider unable to load JAXP configurator file: D:/eclipse/workspace/spring/wiring/WEB-INF/proxool.xml
at net.sf.hibernate.connection.ProxoolConnectionProvider.configure(ProxoolConnectionProvider.java:127)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:64)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:436)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:374)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:948)

Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • How to make Proxool Provider able to load JAXP configurator file
    2004-09-16 06:53:41  meagle [View]

    What version of Hibernate are you using? If you are using Hibernate 2.1.6 the proxool.xml file will be found in the classpath. Here is what the spring configuration should look like for the Hibernate configuration:

    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">net.sf.hibernate.dialect.DB2Dialect</prop>
    <prop key="hibernate.proxool.xml">proxool.xml</prop>
    <prop key="hibernate.proxool.pool_alias">spring</prop>
    </props>
    </property>

    If you are using the hibernate jar that is in the samples you will need to specify the full path. Hope this helps. I am not sure if you altered anything from the original files. This seems to be the case base on the information you gave me.

    Mark
    • How to make Proxool Provider able to load JAXP configurator file
      2006-12-28 15:37:11  cvu [View]

      Hi Mark,
      I know I am the last one to find this helpful article 'cause it has been here for more than 2 yrs!!!
      I set it in MyEclipse and OracleDatabase. I have a problem finding the proxool.xml. No matter how I tried :
      <prop key="hibernate.proxool.xml">proxool.xml</prop>
      or whole path:
      <prop key="hibernate.proxool.xml">C:/myWorking/workspace/WebRoot/WEB-INF/proxool.xml</prop>
      It doesn't work. I use hibernate3 and spring 2.0.1
      my tree like:
      WEB-INF\-applicationContext
      -hibernate.xml
      -Web.xml
      -proxool.xml
      I also change the mySQL dialect to
      org.hibernate.dialect.Oracle9Dialect
      and org.springframework.orm.hibernate.HibernateTransactionManager to
      org.springframework.orm.hibernate3.HibernateTransactionManager
      I don't see any problem except the location of
      proxool.xml
      Would you direct me for this problem.
      Thanks
      cvu
    • How to make Proxool Provider able to load JAXP configurator file
      2004-10-11 08:16:34  Makeurownrules [View]

      I have changed the above configuration,but I am still facing the same problem.I am Using Tomacat 5.0.25 and J2SDK 1.4.2_04.

      if i remove the hibernate property from the spring configuration file then its running fine.this time it will not use the connection pool :(...

      So Please tell me where can be the problem.

      Kapil
      • How to make Proxool Provider able to load JAXP configurator file
        2004-12-23 21:40:59  PaulH [View]

        My own experience is to verify you don't load
        your application context more than once.

        i.e. the error Attempt to register duplicate pool called . . .

        You have an exception (as I did) indicating
        that you are trying to create the connection
        pool a 2nd time with the same alias. I found that
        I loaded my context in both my web.xml file and
        my struts-config.xml (both via spring objects)
        • How to make Proxool Provider able to load JAXP configurator file
          2009-11-08 09:14:01  CarryOn [View]

          many years latter ,i got the problem again.
          one possible is the spring init the context twice,
          the spring won't do this any time,so ,check where you do this.