2015-10-17 25 views
-1

我開始使用JavaEE和Wildfly(JBoss Server App。)。我的項目已經可以運行,但是,當我嘗試啓動我的.xhtml頁面時,我收到服務器應用程序的錯誤消息。java.lang.IllegalArgumentException:沒有爲該名稱定義的查詢[Offices.getAllOffices]

Caused by: java.lang.IllegalArgumentException: No query defined for that name [Offices.getAllOffices] 
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187) 
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277) 
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327) 
    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) 
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) 
    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) 

回答

1

錯誤非常簡單。我將單獨複製清除部分以反映它

No query defined for that name [Offices.getAllOffices] 

您可能在您的代碼中使用了指定的查詢,引用此名稱。該命名查詢不存在。

相關問題