没有EJB接收器可用于处理 [英] No EJB receiver available for handling
问题描述
2012年8月15日12:05:00 org.jboss.ejb.client.EJBClient< clinit>
信息:JBoss EJB客户端版本1.0.5.Final
线程main中的异常java.lang.IllegalStateException:没有可用于处理
的EJB接收器[appName:GrahamsProjServer,modulename:GrahamsProjServer, distinctname:]组合调用上下文org.jboss.ejb.client.EJBClientInvoc
ationContext @ 6a340101
在org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)
在org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)
在org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
在org.jboss .ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
在org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
在org.jboss.ejb.client .EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
at $ Proxy0.test(Unknown Source)
at grahamsprojclient.main.Start.test ItAll(Unknown Source)
at grahamsprojclient.main.Start.main(Unknown Source)
这是我的standalone.xml: http://pastebin.com/BuvQ6f2H
这是我的jboss-ejb-client.properties: http://pastebin.com/mKpqZuZJ
以下是我的客户端代码: http:// pastebin .com / wcVBZvKn
我的类路径包含jboss-ejb-client.properties。我确定通过查看清单。
当我启动客户端时,服务器已经在运行,服务器每次都打印出来:
12:05:00,330 INFO [org.jboss.as.naming](Remotingh890bp1task-3)JBAS011806:收到频道结束通知,关闭频道频道ID 2ea5a90b(入站)的远程连接11d4c3d5到/127.0.0.1:51992
我一直在处理这个问题好几天,找到一个解决方案。任何帮助将不胜感激。如果您需要任何其他信息,我发布的内容不要犹豫,请立即发布。
jndiProperties.put(jboss.naming.client.ejb.context,true);
我发现这个问题发表了评论: https://community.jboss.org/message/747360?_sscc=t
I'm using EJB 3.0 with JBoss AS 7.1.1 Final. I am getting this error when I try to connect my client to the server:
Aug 15, 2012 12:05:00 PM org.jboss.ejb.client.EJBClient <clinit>
INFO: JBoss EJB Client version 1.0.5.Final
Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling
[appName:GrahamsProjServer,modulename:GrahamsProjServer,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvoc
ationContext@6a340101
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:584)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:119)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
at $Proxy0.test(Unknown Source)
at grahamsprojclient.main.Start.testItAll(Unknown Source)
at grahamsprojclient.main.Start.main(Unknown Source)
Here is my standalone.xml: http://pastebin.com/BuvQ6f2H
Here is my jboss-ejb-client.properties: http://pastebin.com/mKpqZuZJ
Here is the code for my client: http://pastebin.com/wcVBZvKn
My classpath does contain jboss-ejb-client.properties. I made sure by looking in the manifest.
When I start up the client, with the server already running, the server prints this every time:
12:05:00,330 INFO [org.jboss.as.naming] (Remoting "h890bp1" task-3) JBAS011806: Channel end notification received, closing channel Channel ID 2ea5a90b (inbound) of Remoting connection 11d4c3d5 to /127.0.0.1:51992
I have been working on this problem for several days and haven't found a solution. Any help would be greatly appreciated. If you need any other information from me than what I posted don't hesitate to ask and I'll post it immediately.
I found the solution! All I needed was to add this line to my client code: jndiProperties.put("jboss.naming.client.ejb.context", true);
I found it in a comment posted to this question: https://community.jboss.org/message/747360?_sscc=t
这篇关于没有EJB接收器可用于处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!