[jboss-jira] [JBoss JIRA] (AS7-4590) Expansion of variables in datasource configuration <driver> in standalone.xml
Jesper Pedersen (JIRA)
jira-events at lists.jboss.org
Mon Apr 23 08:40:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesper Pedersen reassigned AS7-4590:
------------------------------------
Assignee: Stefano Maestri (was: Jesper Pedersen)
> Expansion of variables in datasource configuration <driver> in standalone.xml
> -----------------------------------------------------------------------------
>
> Key: AS7-4590
> URL: https://issues.jboss.org/browse/AS7-4590
> Project: Application Server 7
> Issue Type: Bug
> Components: JCA, Server
> Affects Versions: 7.1.2.Final-redhat1
> Environment: Test with upstream 7.1 master (commit f82bc48f5d4a74e5214503fa0e301c507ccfea4e ~ 4/23/2012 11:30 CET+2)
> Reporter: Wolf-Dieter Fink
> Assignee: Stefano Maestri
> Priority: Minor
> Labels: configuration, datasource, driver
>
> Overwrite the datasource driver by expression did not work.
> If the element is <driver>${test.db.driver}</driver> the following messages are shown:
> ===> not given by -D
> 13:38:23,146 ERROR [org.jboss.as.controller.management-operation]
> (ServerService Thread Pool -- 27) Operation ("enable") failed - address: ([
> ("subsystem" => "datasources"),
> ("data-source" => "ExampleDS")
> ]) - failure description: "JBAS014802: Cannot resolve expression
> 'expression \"${test.db.driver}\"' -- java.lang.IllegalStateException:
> Failed to resolve expression: ${test.db.driver}"
> ===> given by -Dtest.db.driver=h2
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.jdbc-driver.${test_db_driver} (missing) dependents:
> [service jboss.data-source.java:jboss/datasources/ExampleDS]
> Looks that it should be possible to use the expression (as for the other attributes like url/user/passwd) but the dependency is checked before replacing the environment.
> The dependency and deployment should work.
> If it is not possible to use it for the driver the expression should be defeated with an approproate message.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list