1. Use of ignore-dependency in the resource-ref in jboss-web.xml doesn't work, the resource reference remains mandatory.
      Have the following in web.xml


      In order to let the ear/war deploy at JBoss EAP (where the CommonJ API isn't available), add a jboss-web.xml setting these resource references to be ignored by adding <ignore-dependency/>

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web xmlns=""

      However the deploy will fail (as if the jboss-web.xml wouldn't be there at all):

      ERROR [] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."APP.ear"."mod.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."APP.ear"."mod.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "mod.war" of deployment "APP.ear"
                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(
                  at org.jboss.msc.service.ServiceControllerImpl$
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(
                  at java.util.concurrent.ThreadPoolExecutor$
          Caused by: WFLYEE0027: Could not load referenced in env-entry
                  ... 5 more
          Caused by: java.lang.ClassNotFoundException: from [Module "deployment.APP.ear.mod.war" from Service Module Loader]
                  at org.jboss.modules.ModuleClassLoader.findClass(
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(
                  at org.jboss.modules.ConcurrentClassLoader.loadClass(
                  ... 8 more

      2. Overriding resource-ref from web.xml in jboss-web.xml doesn't work properly.
      I can partially work around the above ClassNotFoundException by adding a dummy res-type like


      to both resource references in jboss-web.xml, however this seems to override only the 1st entry as the ClassNotFoundException will change to

      java.lang.ClassNotFoundException: commonj.timers.TimerManager

      and I don't seem to be able to get rid of this one in any way, save for removing the 2nd resource reference (timer manager) from web.xml and jboss.xml completely.
      Then the deploy will fail with

      ERROR [] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "APP.ear")]) - failure description: {
          "WFLYCTL0412: Required services that are not installed:" => [""],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => [" is missing []"]

      which only confirms that the ignore-dependency doesn't work.


      • The fact that the CommonJ API can't be used at JBoss EAP isn't a problem. The ear is built to be usable for multiple app servers. The CommonJ WorkManager and TimerManager resources are used only at those app servers where available. We just need the ear to successfully deploy at JBoss EAP. We can take care of the rest.
      • It's likely that providing a modified web.xml via deployment overlay would make things work (not tested but I'm pretty confident about that), but we want to avoid that, we'd like to have the ear deploy straight away (and it should be possible with the use of ignore-dependency)
      • ignore-dependency did work at JBoss AS 6.0, see
      • Slightly more extensive description of both issues is available here:
      • Since there are actually 2 issues being reported here (but they seem to be connected), this JIRA issue can be split into 2 if required

        Gliffy Diagrams


            Issue Links



                • Assignee:
                  jondruse Jiri Ondrusek
                  hostalp Petr Hostalek
                • Votes:
                  0 Vote for this issue
                  2 Start watching this issue


                  • Created: