karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-2819) datasource-xxx.xml contains wrong password after jdbc:create
Date Fri, 14 Mar 2014 11:31:44 GMT

     [ https://issues.apache.org/jira/browse/KARAF-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-2819.
-----------------------------------------

    Resolution: Fixed

> datasource-xxx.xml contains wrong password after jdbc:create
> ------------------------------------------------------------
>
>                 Key: KARAF-2819
>                 URL: https://issues.apache.org/jira/browse/KARAF-2819
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.4
>         Environment: Talend TESB 5.4.1 (Karaf 2.3.3) with jdbc installed from 2.3.4:
> features:addurl mvn:org.apache.karaf.assemblies.features/enterprise/2.3.4/xml/features
> features:addurl mvn:org.apache.karaf.assemblies.features/standard/2.3.4/xml/features
> features:install management
> features:install jdbc
>            Reporter: Lothar Werzinger
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 3.0.1, 3.1.0, 2.3.5
>
>
> I can execute the jdbc commands, but I am experiencing a problem creating a datasource:
> karaf@trun> jdbc:create -url jdbc:mysql://localhost:3306/sample -u sample -p sample -t
MySQL sample
> karaf@trun> jdbc:tables jdbc/sample 
> Error executing command: Access denied for user 'sample'@'localhost' (using password:
YES)
> It looks like the 'password' of the datasource configuration file is created wrong '${test}'
instead of 'sample'
>     <bean id="dataSource" class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
>         <property name="url" value="jdbc:mysql://localhost:3306/sample"/>
>         <property name="user" value="sample"/>
>         <property name="password" value="${test}"/>
>     </bean>
> I know I can edit the datasource-sample.xml file as a workaround and provide the real
password.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message