wildfly invok ejb error: EJBCLIENT000025
wuqian2huangchangsong May 27, 2014 10:05 PMHi,
I got the code in wildfly web.and deploy it to the server.
09:57:28,871 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named CalculatorBean in deployment unit deployment "wildflyejb3.jar" are as follows: java:global/wildflyejb3/CalculatorBean!com.imagin.stateless.RemoteCalculator java:app/wildflyejb3/CalculatorBean!com.imagin.stateless.RemoteCalculator java:module/CalculatorBean!com.imagin.stateless.RemoteCalculator java:jboss/exported/wildflyejb3/CalculatorBean!com.imagin.stateless.RemoteCalculator java:global/wildflyejb3/CalculatorBean java:app/wildflyejb3/CalculatorBean java:module/CalculatorBean 09:57:28,872 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-7) JNDI bindings for session bean named CounterBean in deployment unit deployment "wildflyejb3.jar" are as follows: java:global/wildflyejb3/CounterBean!com.imagin.stateful.RemoteCounter java:app/wildflyejb3/CounterBean!com.imagin.stateful.RemoteCounter java:module/CounterBean!com.imagin.stateful.RemoteCounter java:jboss/exported/wildflyejb3/CounterBean!com.imagin.stateful.RemoteCounter java:global/wildflyejb3/CounterBean java:app/wildflyejb3/CounterBean java:module/CounterBean
Then I got the client code,and jboss-ejb-client.properties
endpoint.name=client-endpoint remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false remote.connections=default remote.connection.default.host=localhost remote.connection.default.port = 8080 remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false remote.connection.default.username=wuqian@hcs remote.connection.default.password=wuqian@891210
the dir is:
client
|--Client.java
|--jboss-ejb-client.properties
but when I run the client it is error:
五月 28, 2014 10:03:07 上午 org.jboss.ejb.client.EJBClient <clinit> INFO: JBoss EJB Client version 2.0.0.Final Obtained a remote stateless calculator for invocation Adding 204 and 340 via the remote stateless calculator deployed on the server Exception in thread "main" java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:wildflyejb, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@32535e27 at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:749) at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116) at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198) at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181) at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144) at com.sun.proxy.$Proxy0.add(Unknown Source) at remoteClient.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:38) at remoteClient.RemoteEJBClient.main(RemoteEJBClient.java:19)
what can I do? thanks!