EJB远程调用失败_有问有答_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  有问有答 »
总帖数
7
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3687 | 回复: 6   主题: EJB远程调用失败        下一篇 
qq_1440561782107
注册用户
等级:新兵
经验:70
发帖:3
精华:0
注册:2015-8-26
状态:离线
发送短消息息给qq_1440561782107 加好友    发送短消息息给qq_1440561782107 发消息
发表于: IP:您无权察看 2015-8-28 19:46:07 | [全部帖] [楼主帖] 楼主

本人初学者,刚开始学习JBOSS,按照官网上的一个例子,https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI

进行配置,所有的操作都完成了,最后各种错,错误如下

19:36:27,269 INFO  [org.jboss.web] (ServerService Thread Pool -- 55) JBAS018224: 取消注册 web 上下文 /client-test

19:36:27,357 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment client-test.war (runtime-name: client-test.war) in 91ms

19:36:27,359 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: 开始 "client-test.war" 的部署(runtime-name: "client-test.war")

19:36:28,833 INFO  [org.jboss.web] (ServerService Thread Pool -- 55) JBAS018210: 注册 web 上下文 /client-test

19:36:29,131 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018565: 用部署 "client-test.war" 替换了部署 "client-test.war"

19:36:32,196 INFO  [stdout] (http-localhost/127.0.0.1:8008-1) ejb:/ejb-service/CalculatorBean!


19:36:32,602 INFO  [stdout] (http-localhost/127.0.0.1:8008-1) /client-test


19:36:34,248 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) javax.naming.NamingException: EJBCLIENT000037: Could not load ejb proxy class com.tgb.RemoteCalculator [Root exception is java.lang.ClassNotFoundException: com.tgb.RemoteCalculator from [Module "deployment.client-test.war:main" from Service Module Loader]]


19:36:34,255 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:188)


19:36:34,259 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:176)


19:36:34,262 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:147)


19:36:34,264 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:101)


19:36:34,267 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)


19:36:34,269 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)


19:36:34,274 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at javax.naming.InitialContext.lookup(InitialContext.java:417)


19:36:34,276 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at com.tgb.Servlet.doGet(Servlet.java:51)


19:36:34,279 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)


19:36:34,281 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)


19:36:34,284 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)


19:36:34,287 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)


19:36:34,289 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)


19:36:34,292 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)


19:36:34,295 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)


19:36:34,298 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)


19:36:34,301 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)


19:36:34,304 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)


19:36:34,306 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)


19:36:34,310 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)


19:36:34,312 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)


19:36:34,314 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)


19:36:34,315 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at java.lang.Thread.run(Thread.java:745)


19:36:34,318 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) Caused by: java.lang.ClassNotFoundException: com.tgb.RemoteCalculator from [Module "deployment.client-test.war:main" from Service Module Loader]


19:36:34,322 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197)


19:36:34,325 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443)


19:36:34,328 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431)


19:36:34,330 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373)


19:36:34,331 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118)


19:36:34,333 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at java.lang.Class.forName0(Native Method)


19:36:34,335 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at java.lang.Class.forName(Class.java:344)


19:36:34,336 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:186)


19:36:34,338 ERROR [stderr] (http-localhost/127.0.0.1:8008-1) ... 22 more


加载不了远程的代理对象,求救




赞(0)    操作        顶端 
fireworks256
注册用户
等级:少校
经验:906
发帖:39
精华:0
注册:2015-7-15
状态:离线
发送短消息息给fireworks256 加好友    发送短消息息给fireworks256 发消息
发表于: IP:您无权察看 2015-8-28 21:36:42 | [全部帖] [楼主帖] 2  楼

看起来好复杂哇,Could not load ejb proxy class com.tgb.RemoteCalculator [Root exception is java.lang.ClassNotFoundException



赞(0)    操作        顶端 
filogra
注册用户
等级:少校
经验:1408
发帖:13
精华:0
注册:2015-6-2
状态:离线
发送短消息息给filogra 加好友    发送短消息息给filogra 发消息
发表于: IP:您无权察看 2016-5-13 7:40:04 | [全部帖] [楼主帖] 3  楼

好长一堆数据……



赞(0)    操作        顶端 
twany
注册用户
等级:少校
经验:1408
发帖:17
精华:0
注册:2015-6-2
状态:离线
发送短消息息给twany 加好友    发送短消息息给twany 发消息
发表于: IP:您无权察看 2016-5-23 9:38:55 | [全部帖] [楼主帖] 4  楼

感谢分享



赞(0)    操作        顶端 
ettu
注册用户
等级:上尉
经验:787
发帖:0
精华:0
注册:2016-2-22
状态:离线
发送短消息息给ettu 加好友    发送短消息息给ettu 发消息
发表于: IP:您无权察看 2016-5-23 9:40:22 | [全部帖] [楼主帖] 5  楼

学习,虽然看不太懂!



赞(0)    操作        顶端 
伊恩dih
注册用户
等级:少校
经验:819
发帖:15
精华:0
注册:2015-5-28
状态:离线
发送短消息息给伊恩dih 加好友    发送短消息息给伊恩dih 发消息
发表于: IP:您无权察看 2016-5-23 11:54:04 | [全部帖] [楼主帖] 6  楼

还不错,先看看



赞(0)    操作        顶端 
duff
注册用户
等级:少校
经验:968
发帖:0
精华:0
注册:2015-7-22
状态:离线
发送短消息息给duff 加好友    发送短消息息给duff 发消息
发表于: IP:您无权察看 2016-5-24 19:22:10 | [全部帖] [楼主帖] 7  楼

帮顶一个



赞(0)    操作        顶端 
总帖数
7
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论