首页 新闻 搜索 专区 学院

远程调用ejb,Successful version handshake ,但是No EJB receiver available

0
悬赏园豆:30 [待解决问题]

jboss部署

17:07:34,323 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
d UserServiceImpl in deployment unit deployment "MessageSystem.jar" are as follo
ws:

        java:global/MessageSystem/UserServiceImpl!MS.service.UserService
        java:app/MessageSystem/UserServiceImpl!MS.service.UserService
        java:module/UserServiceImpl!MS.service.UserService
        java:jboss/exported/MessageSystem/UserServiceImpl!MS.service.UserService

        java:global/MessageSystem/UserServiceImpl
        java:app/MessageSystem/UserServiceImpl
        java:module/UserServiceImpl

17:07:34,323 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeplo
ymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
d MessageSystem in deployment unit deployment "MessageSystem.jar" are as follows
:

        java:global/MessageSystem/MessageSystem!messagesystem.MessageSystemLocal

        java:app/MessageSystem/MessageSystem!messagesystem.MessageSystemLocal
        java:module/MessageSystem!messagesystem.MessageSystemLocal
        java:global/MessageSystem/MessageSystem
        java:app/MessageSystem/MessageSystem
        java:module/MessageSystem

调用时console输出

INFO: EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@b035079, receiver=Remoting connection EJB receiver [connection=org.jboss.ejb.client.remoting.ConnectionPool$PooledConnection@6983d95,channel=jboss.ejb,nodename=dksl]} on channel Channel ID e248a42e (outbound) of Remoting connection 649a8a68 to /127.0.0.1:4447
java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:MessageSystem, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@26afa68a
    at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:735)
    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 $Proxy0.login(Unknown Source)
    at MS.service.HelloEJBClient.main(HelloEJBClient.java:24)
2014-9-28 17:06:57 org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleEnd
INFO: EJBCLIENT000016: Channel Channel ID e248a42e (outbound) of Remoting connection 649a8a68 to null can no longer process messages

我的jndi lookupname如下:

Hashtable<String, String> jndiProperties = new Hashtable<String, String>();                 
        jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");       
      try{
          
          InitialContext ctx = new InitialContext(jndiProperties);                  
          UserService h = (UserService)ctx.lookup("ejb:/MessageSystem//UserServiceImpl!MS.service.UserService");

Scott Lewis的主页 Scott Lewis | 初学一级 | 园豆:151
提问于:2014-09-28 17:23
< >
分享
所有回答(1)
0

我也是同样的问题,怎么解决

nictim | 园豆:202 (菜鸟二级) | 2016-08-05 11:07
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册