Receive "No entity found for query" error in JON agent log when trying to deploy a resource via CLI

Solution Verified - Updated -

Issue

  • I created a CLI script to deploy a new resource (WAR) to my EAP 5.1 servers
  • The script succeeds without error, but the application is not deployed and the agent.log shows the below error:

    2010-12-31 13:04:43,357 INFO  [ResourceFactory.executor-1] (rhq.core.pc.inventory.CreateResourceRunner)- Creating resource through report: CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Web Application (WAR), plugin=JBossAS]], ResourceKey=[null]
    2010-12-31 13:04:43,842 ERROR [ResourceContainer.invoker.nonDaemon-1] (rhq.plugins.jbossas5.deploy.RemoteDeployer)- Error deploying application for request [CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Web Application (WAR), plugin=JBossAS]], ResourceKey=[null]].
    [Warning] 
    javax.ejb.EJBException: javax.persistence.NoResultException: No entity found for query
         at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)....
    

Environment

  • JBoss Operations Network(JON) 2.4
  • JBoss Operations Network Command Line Interface (CLI)
  • JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.