本人初学者,刚开始学习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
加载不了远程的代理对象,求救