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.