Women in Technology

Hear us Roar



Article:
  Wiring Your Web Application with Open Source Java
Subject:   How to make Proxool Provider able to load JAXP configurator file
Date:   2004-09-16 06:53:41
From:   meagle
Response to: How to make Proxool Provider able to load JAXP configurator file

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

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • 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.