Application Deployment fails with "JBAS011001: Could not resolve resource-env-ref" on JBoss

Solution Unverified - Updated -

Issue

  • JBoss starts but application deployment fails and rolls back with the following error in the JBoss server.log"
WARN  [org.jboss.as.ee] (MSC service thread 1-3) JBAS011001: Could not resolve resource-env-ref java:/queue/myQueue
WARN  [org.jboss.as.ee] (MSC service thread 1-3) JBAS011001: Could not resolve resource-env-ref java:/queue/myQueueConnectionFactory
WARN  [org.jboss.as.ee] (MSC service thread 1-3) JBAS011001: Could not resolve resource-env-ref java:/jms/batchQueue
WARN  [org.jboss.as.ee] (MSC service thread 1-3) JBAS011001: Could not resolve resource-env-ref java:/jms/batchQueueConnectionFactory
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.subunit."my.ear"."my.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."my.ear"."my.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "my.war" of deployment "my.ear"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
    at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:263)
    at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:120)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
    ... 5 more

Environment

Red Hat JBoss Enterprise Application Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content