Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate wildfly datasource when stopping and starting containers with docker-compose #90

Closed
njmittet opened this issue Sep 8, 2015 · 0 comments

Comments

@njmittet
Copy link

njmittet commented Sep 8, 2015

Using get https://raw.githubusercontent.com/javaee-samples/docker-java/master/attendees/docker-compose.yml

Creates containers docker-compose up -d
Stop containers: docker-compose stop
Restart containers: docker-compose start

Wildfly then tries to re-create datasource (and fails):

wildfly_1 | 
wildfly_1 | 09:11:07,802 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) JBAS014613: Operation ("add") failed - address: ([
wildfly_1 |     ("subsystem" => "datasources"),
wildfly_1 |     ("jdbc-driver" => "mysql")
wildfly_1 | ]) - failure description: "JBAS014803: Duplicate resource [
wildfly_1 |     (\"subsystem\" => \"datasources\"),
wildfly_1 |     (\"jdbc-driver\" => \"mysql\")
wildfly_1 | ]"
arun-gupta added a commit that referenced this issue Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants