I'm getting below error in Wildfly 8.2:
05:17:12,202 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
05:17:12,285 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.2.0.Final "Tweek" starting
05:17:13,199 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 12) JBAS014613: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "ExampleDS")
]) - failure description: "JBAS014803: Duplicate resource [
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"ExampleDS\")
]"
How can I remove duplicate?
Under standalone/configuration/standalone-full.xml remove the duplicate deployment value.
Remove the below if mywar.war is the duplicate one.
<deployments>
<deployment name="mywar.war" runtime-name="mywar.war">
<content sha1="d642ffaa51228ab567439653a0923c69b7972cf5"/>
</deployment>
</deployments>
This is a bug about jboss. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1169239 for details.
To resolve the problem, try to find and remove the * < app >.war.failed* file.
I ran into the same issue. wildfly was also creating .failed files in standalone/configuration folder. To fix this,
i removed all the .failed files.
cleaned up the contents from deployments, tmp and data folders.
started the server without any war/ear deployed. It was able to start clean.
stopped the jboss and added the war/ear and started again
now it works fine. Looks like this is a known issue in WildFly https://issues.jboss.org/browse/WFCORE-495
Hope this helps..
If this does not help. Next action to perform would be: - Open the standalone.xml or standalone-full.xml (depending on which one is being used)
find deployment-scanner tag. Most certainly it will have two or more entries.
keep the entry mentioned below and remove all others:
deployment-scanner path="deployments" relative-to="jboss.server.base.dir" ....
clear all the .failed files as well as tmp and data folders.
try now to start jboss wildfly (you can add the war/ear again from eclipse jboss plugin).
You can use 2 method in this kind of error :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With