Deployment works in Wildfly 14 but not 15. IllegalArgumentException Cannot both require and provide same dependencyWhat is resource-ref in web.xml used for?.EAR deploying order wildfly-8.0.0Finalhow to deploy resource adapter in jbossWild Fly Deployment Error (Failed to process phase POST_MODULE of subdeployment “DemoEjb.jar” of deployment “DemoApp.ear”)Illegal context in name: java:app/jdbc/ActionBazaarDSWildFly 10 with PostgreSQL 9.4 datasource Error deploying applicationJBoss7.1.0: Can't find a persistence unit named null in subdeploymentJBoss Wildfly 10 Ear deployment guide neededWildlfy deployment failedHow to map Datasources in Wildfly using deployment descriptorsCan't find a persistence unit named 'siscorp' in deployment javaee-angularjs.war
What is the origin of Scooby-Doo's name?
Primes and SemiPrimes in Binary
Is "Busen" just the area between the breasts?
How can I bring back a dead main character without cliches?
How does DC work with natural 20?
Why isn't my calculation that we should be able to see the sun well beyond the observable universe valid?
Do I have any obligations to my PhD supervisor's requests after I have graduated?
Can Ogre clerics use Purify Food and Drink on humanoid characters?
Do I need a shock-proof watch for cycling?
Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?
Putting a plot inside a tab
Non-misogynistic way to say “asshole”?
How to execute a command when ALL of the players are close enough
Methodology: Writing unit tests for another developer
Prime sieve in Python
How did the Vostok ejection seat safely eject an astronaut from a sealed space capsule?
Helping ease my back pain by studying 13 hours everyday , even weekends
I found a password with hashcat, but it doesn't work
Can I enter the UK for 24 hours from a Schengen area, holding an Indian passport?
Is there any proof that high saturation and contrast makes a picture more appealing in social media?
Why does using different ArrayList constructors cause a different growth rate of the internal array?
Creating a histogram using custom data
Hit the Bulls Eye with T in the Center
Why do all the teams that I have worked with always finish a sprint without completion of all the stories?
Deployment works in Wildfly 14 but not 15. IllegalArgumentException Cannot both require and provide same dependency
What is resource-ref in web.xml used for?.EAR deploying order wildfly-8.0.0Finalhow to deploy resource adapter in jbossWild Fly Deployment Error (Failed to process phase POST_MODULE of subdeployment “DemoEjb.jar” of deployment “DemoApp.ear”)Illegal context in name: java:app/jdbc/ActionBazaarDSWildFly 10 with PostgreSQL 9.4 datasource Error deploying applicationJBoss7.1.0: Can't find a persistence unit named null in subdeploymentJBoss Wildfly 10 Ear deployment guide neededWildlfy deployment failedHow to map Datasources in Wildfly using deployment descriptorsCan't find a persistence unit named 'siscorp' in deployment javaee-angularjs.war
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Trying to get my jee ear deployed to wildfly 15 or 16.
I get this error:
"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.
Any pointers in how I might track the source of the problem would be helpful.
Thanks!
The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.
java java-ee wildcard
add a comment |
Trying to get my jee ear deployed to wildfly 15 or 16.
I get this error:
"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.
Any pointers in how I might track the source of the problem would be helpful.
Thanks!
The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.
java java-ee wildcard
Can you post the entire exception from server.log? it may trigger any clue.
– Ramesh Subramanian
Mar 25 at 7:55
Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.
– user3757849
Mar 26 at 18:09
add a comment |
Trying to get my jee ear deployed to wildfly 15 or 16.
I get this error:
"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.
Any pointers in how I might track the source of the problem would be helpful.
Thanks!
The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.
java java-ee wildcard
Trying to get my jee ear deployed to wildfly 15 or 16.
I get this error:
"WFLYCTL0080: Failed services" => "jboss.deployment.subunit."test.ear"."web.war".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of subdeployment "web.war" of deployment
"test.ear"
Caused by: java.lang.IllegalArgumentException: Cannot both require and provide same dependency:service jboss.naming.context.java.module.test.web.env.mainDB",
mainDB is a postgresql datasource configured in standalone.xml.
Any pointers in how I might track the source of the problem would be helpful.
Thanks!
The same exact ear deploys without any problems on wildfly versions prior 14.0.1. Tested on 14.0.1, 10.0.1, 9 and 8.
java java-ee wildcard
java java-ee wildcard
asked Mar 25 at 7:38
user3757849user3757849
266
266
Can you post the entire exception from server.log? it may trigger any clue.
– Ramesh Subramanian
Mar 25 at 7:55
Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.
– user3757849
Mar 26 at 18:09
add a comment |
Can you post the entire exception from server.log? it may trigger any clue.
– Ramesh Subramanian
Mar 25 at 7:55
Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.
– user3757849
Mar 26 at 18:09
Can you post the entire exception from server.log? it may trigger any clue.
– Ramesh Subramanian
Mar 25 at 7:55
Can you post the entire exception from server.log? it may trigger any clue.
– Ramesh Subramanian
Mar 25 at 7:55
Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.
– user3757849
Mar 26 at 18:09
Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.
– user3757849
Mar 26 at 18:09
add a comment |
1 Answer
1
active
oldest
votes
The jboss-web.xml in web.war/WEB-INF had this:
<jboss-web>
<resource-ref>
<res-ref-name>mainDB</res-ref-name>
<jndi-name>mainDB</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.
Apparently, this was used to alias a datasource while migrating code a while back.
What is resource-ref in web.xml used for?
Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333127%2fdeployment-works-in-wildfly-14-but-not-15-illegalargumentexception-cannot-both%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The jboss-web.xml in web.war/WEB-INF had this:
<jboss-web>
<resource-ref>
<res-ref-name>mainDB</res-ref-name>
<jndi-name>mainDB</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.
Apparently, this was used to alias a datasource while migrating code a while back.
What is resource-ref in web.xml used for?
Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.
add a comment |
The jboss-web.xml in web.war/WEB-INF had this:
<jboss-web>
<resource-ref>
<res-ref-name>mainDB</res-ref-name>
<jndi-name>mainDB</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.
Apparently, this was used to alias a datasource while migrating code a while back.
What is resource-ref in web.xml used for?
Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.
add a comment |
The jboss-web.xml in web.war/WEB-INF had this:
<jboss-web>
<resource-ref>
<res-ref-name>mainDB</res-ref-name>
<jndi-name>mainDB</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.
Apparently, this was used to alias a datasource while migrating code a while back.
What is resource-ref in web.xml used for?
Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.
The jboss-web.xml in web.war/WEB-INF had this:
<jboss-web>
<resource-ref>
<res-ref-name>mainDB</res-ref-name>
<jndi-name>mainDB</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
Once I removed this, the ear deployed without any problems on both wildfly 15 and 16.
Apparently, this was used to alias a datasource while migrating code a while back.
What is resource-ref in web.xml used for?
Since then, the code has been updated and the alias was no longer used, which resulted in the alias being the same as the jndi-name, this is no longer necessary and caused the deployment to fail.
answered Mar 25 at 8:09
user3757849user3757849
266
266
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333127%2fdeployment-works-in-wildfly-14-but-not-15-illegalargumentexception-cannot-both%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you post the entire exception from server.log? it may trigger any clue.
– Ramesh Subramanian
Mar 25 at 7:55
Hi Ramesh - thanks for taking a look, removing the redundant resource-ref in jboss-web.xml resolved this issue.
– user3757849
Mar 26 at 18:09