cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject database configuration in sitemap.xmap
Date Fri, 13 Jul 2001 10:36:44 GMT
I do not succeed in getting the connection with my database when I try to externalize the database
configuration out of my xsp file.

When I write this configuration within the xsp file like this:


it works.

Now I am trying to remove this statement from the xsp file and have this database configuration
occur within "sitemap.xmap" thanks to the following statements:

<map:match pattern="serge/*">
    <map:generate type="serverpages" src="serge/test_xsp_cocoon2_serge.xsp"/>
    <map:transform type="sql">
       <map:parameter name="use-connection" value="personnel"/>

where "personnel" is defined in "cocoon.xconf" with the following statements:

<component name="org.apache.avalon.util.datasource.DataSourceComponentSelector"
   <component-instance name="personnel" class="org.apache.avalon.util.datasource.JdbcDataSource">
     <pool-controller min="0" max="10"/>

(I have tried with <user> and <username>)

The driver is defined in "web.xml" like this:

which seems to work because when I comment it out, I am told to configure the driver.

Here is the error message I get:
"org.apache.cocoon.ProcessingException: Failed to execute pipeline.:org.apache.cocoon.ProcessingException:
Exception in ServerPagesGenerator.generate():java.lang.RuntimeException: Error opening connection
to dburl: : The user property is missing. It is mandatory."

Any idea ?

Thank you

Serge Farnel

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message