cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lidonis Calhau ...@openbluelab.org>
Subject cocoon 2.2 and hibernate 3
Date Wed, 28 Mar 2007 09:18:30 GMT
I would like to use cocoon 2.2 and hibernate 3 with mysql 5.0
I don't know how to use hibernate with cocoon datasource.
I try to configure cocoon datasource in cocoon.my.xconf like this :

<?xml version="1.0"?>
<cocoon version="2.2">
<components>
  <datasources>
    <jdbc logger="core.datasources.test" name="test">
      <pool-controller min="5" max="10" />
      <auto-commit>false</auto-commit>
      <dburl>jdbc:mysql:///test</dburl>
      <user>test</user>
      <password>test</password>
    </jdbc>
  </datasources>
</components>
</cocoon>

I get the following error :

org.springframework.beans.factory.BeanDefinitionStoreException: Unable 
to read Avalon configuration from '/WEB-INF/cocoon.my.xconf'.; nested 
exception is 
org.apache.avalon.framework.configuration.ConfigurationException: 
Unknown component type 'components' at 
file:/home/lidonis/workspace/comp/company_webapp/target/company_webapp-1.0-SNAPSHOT/WEB-INF/cocoon.my.xconf:3:13
Caused by: 
org.apache.avalon.framework.configuration.ConfigurationException: 
Unknown component type 'components' at 
file:/home/lidonis/workspace/comp/company_webapp/target/company_webapp-1.0-SNAPSHOT/WEB-INF/cocoon.my.xconf:3:13



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message