我有一个集成到我的wildfly服务器中的EJB 3.2项目。然后,我使用RMI客户端审阅我的项目,生成了表,并且DBMS中的添加没有问题,但是当我尝试从数据库中恢复时,出现以下错误消息:
javax.ejb.EJBException: Failed to read response
at org.jboss.ejb.protocol.remote.EJBClientChannel$Methodinvocation$MethodCallResultProducer.getResult(EJBClientChannel.java:1221)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:592)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:528)
at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleinvocationResult(RemotingEJBClientInterceptor.java:56)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:594)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:528)
at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleinvocationResult(TransactionPostDiscoveryInterceptor.java:133)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:594)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:528)
at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleinvocationResult(DiscoveryEJBClientInterceptor.java:114)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:594)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:528)
at org.jboss.ejb.client.NamingEJBClientInterceptor.handleinvocationResult(NamingEJBClientInterceptor.java:78)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:594)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:528)
at org.jboss.ejb.client.TransactionInterceptor.handleinvocationResult(TransactionInterceptor.java:172)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:594)
at org.jboss.ejb.client.EJBClientinvocationContext.getResult(EJBClientinvocationContext.java:528)
at org.jboss.ejb.client.EJBClientinvocationContext.awaitResponse(EJBClientinvocationContext.java:938)
at org.jboss.ejb.client.EJBinvocationHandler.invoke(EJBinvocationHandler.java:177)
at org.jboss.ejb.client.EJBinvocationHandler.invoke(EJBinvocationHandler.java:112)
at com.sun.proxy.$Proxy0.listeEmployes(Unknown Source)
at com.clientbanque.programme.ClientBanque.main(ClientBanque.java:59)
Caused by: java.lang.ClassnotFoundException: org.hibernate.collection.internal.PersistentBag
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:123)
at org.jboss.marshalling.AbstractClassResolver.resolveclass(AbstractClassResolver.java:104)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1022)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1355)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:220)
at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1853)
at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1767)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1395)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:220)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadCollectionObject(RiverUnmarshaller.java:176)
at org.jboss.marshalling.river.RiverUnmarshaller.readCollectionData(RiverUnmarshaller.java:850)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:726)
at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:205)
at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
at org.jboss.ejb.protocol.remote.EJBClientChannel$Methodinvocation$MethodCallResultProducer.getResult(EJBClientChannel.java:1202)
... 22 more
如果您可以告诉我问题出在哪里。我会很感激 预先谢谢你