Hi Patrick

> 
> Hi there,
> 
> I'm new to Avalon (started playing with it yesterday) and still trying
> to get started. For the first approach I'm working with the
> "Developing With Apache Avalon" PDF document. I think I understand
> the basic idea - but I have a problem with the examples (some problems
> occured yesterday but I could fix them by myself). When using the
> Component Manager and Roles I get the following exception:
> 
> org.apache.avalon.framework.configuration.ConfigurationException: No 
> attribute named "name" is associated with the configuration element 
> "jdbc" at file "...(myconf.xconf)"
> 
> My datasources are looking like this:
> 
>    <datasources>
>      <jdbc hint="documents">
>        <pool-controller min="5" max="10" />
>        <auto-commit>false</auto-commit>
>        <dburl>jdbc:mysql:myhost/testdb</dburl>
>        <user>user</user>
>        <password>secret</password>
>      </jdbc>
>    </datasources>
> 
> Also I'm missing the <driver> used on page 36 but not on page 39.
> Is this a bug or my fault?
> 

There is a mistake in the avalon documentation and you must have to use "name" 
instead of "hint". On the other hand it is your own mistake to not have 
included a driver.

I think the following will work better.

[...]
    <datasources>
      <jdbc name="documents">
        <pool-controller min="5" max="10" />
        <auto-commit>false</auto-commit>
        <driver>org.mysql.MySqlDriver</driver>
        <dburl>jdbc:mysql:myhost/testdb</dburl>
        <user>user</user>
        <password>secret</password>
      </jdbc>
    </datasources>
[...]
 
> Patrick Hess
> 
> | metazoa GmbH        | fon   +49-211-175447-20 |
> | Erkrather Str. 206  | fax   +49-211-175447-27 |
> | 40233 Düsseldorf    | mail  [EMAIL PROTECTED] |
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 

DAT

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to