我正在尝试为ejb编写简单的客户端,我正在
WARN: Could not register a EJB receiver for connection to localhost:8080
java.lang.RuntimeException: Operation failed with status WAITING
at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:93)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:148)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.<init>(ConfigBasedEJBClientContextSelector.java:105)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.<init>(ConfigBasedEJBClientContextSelector.java:73)
at org.jboss.ejb.client.EJBClientContext.<clinit>(EJBClientContext.java:81)
at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:197)
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:187)
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:164)
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:147)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at RemoteEJBClient.lookupTheatreBookerEJB(RemoteEJBClient.java:67)
at RemoteEJBClient.testRemoteEJB(RemoteEJBClient.java:17)
at RemoteEJBClient.main(RemoteEJBClient.java:11)
Exception in thread "main" javax.naming.NamingException: Failed to create proxy [Root exception is java.lang.IllegalStateException: EJBCLIENT000024: No EJB receiver available for handling [appName:java:app, moduleName:ticket-agency-ejb, distinctName:] combination]
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:166)
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:147)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at RemoteEJBClient.lookupTheatreBookerEJB(RemoteEJBClient.java:67)
at RemoteEJBClient.testRemoteEJB(RemoteEJBClient.java:17)
at RemoteEJBClient.main(RemoteEJBClient.java:11)
Caused by: java.lang.IllegalStateException: EJBCLIENT000024: No EJB receiver available for handling [appName:java:app, moduleName:ticket-agency-ejb, distinctName:] combination
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:627)
at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:199)
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:187)
at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:164)
... 5 more
我尝试将端口更改为4447和8443,但我没有帮助。
我是使用mvn clean install
然后mvn wildfly:deploy
和客户mvn install exec:exec
我正在使用wildfly 10.1.0 Final,但我也试过在wildfly 12.0.0 Final上运行我的应用程序。
我的ejb代码:https://github.com/tomaboro/soa-agh-course/tree/master/lab5/lab0
我的客户代码:https://github.com/tomaboro/soa-agh-course/tree/master/lab5/lab0_klient