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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to