[jboss-jira] [JBoss JIRA] (WFLY-9681) Deleting ExampleDS Leaves Remnants in standalone.xml

Chris Giddings (JIRA) issues at jboss.org
Tue Jan 16 13:14:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-9681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13517873#comment-13517873 ] 

Chris Giddings commented on WFLY-9681:
--------------------------------------

h2. DETAILS
[~dlofthouse] Understood. This is why I included the [StackOverflow ID|https://stackoverflow.com/questions/47700782/i-deleted-the-exampleds-from-wildfly-now-i-cant-deploy-my-app-because-i-got-er], but for the sake of brevity and simplicity I understand.

Here is that StackOverflow user's error:

{code:java}
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.jboss.datasources.ExampleDS"], "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebJ2EE.WebJ2EE.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"] } 18:32:10,189 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "WebJ2EE.war" (runtime-name : "WebJ2EE.war") 18:32:10,189 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report WFLYCTL0184: New missing/unsatisfied dependencies: service jboss.naming.context.java.jboss.datasources.ExampleDS (missing) dependents: [service jboss.naming.context.java.module.WebJ2EE.WebJ2EE.DefaultDataSource]
{code}

This error is nearly identical to my own with exception to dates/times etc. I chose to rely upon the already existing StackOverflow request vs creating a duplicate of it, or again reproducing the issue from scratch which I have done several times now. Apologies if that's a bit lazy.

h2. RESPONSE
Yes, the default configuration contains the offending 'Example' details. Regardless of this, deleting an 'Example' item from default configuration should probably not lead to manual intervention in configuration files. I think it reasonable that any administrator may assume all references to a deleted 'Example' resource to also be removed when that resource is deleted. If the resource were required by the system (it does not appear to be), it should likely then not be labeled as 'Example'.

> Deleting ExampleDS Leaves Remnants in standalone.xml
> ----------------------------------------------------
>
>                 Key: WFLY-9681
>                 URL: https://issues.jboss.org/browse/WFLY-9681
>             Project: WildFly
>          Issue Type: Bug
>          Components: JCA
>    Affects Versions: 11.0.0.Final
>            Reporter: Chris Giddings
>            Assignee: Stefano Maestri
>            Priority: Minor
>              Labels: JDBC
>
> h2. SUMMARY
> When initially installing Wildfly 11.0.0 Final, the installation comes pre-configured with a datasource labeled "Example DS".
> When this datasource is deleted, some configuration for it remains in the standalone.xml file for the standalone server mode.
> h2. WORKAROUND
> Removing this configuration manually and restarting Wildfly in standalone mode resolves the issue. (I tested by searching for "ExampleDS" as a string match in vi and deleting the one line the match found)
> h2. BUG JUSTIFICATION
> # I would expect anything labeled as "Example" to be deleted by an administrator in most environments
> # I would expect deleted items to be fully removed upon deletion so remnant configuration couldn't cause issues with unrelated deployments (i.e. deployments which don't specifically require the deleted item)



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list