-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)