日期:2014-05-20  浏览次数:20835 次

TOMCAT 和 JBOSS 调用出错,EJB3问题
struts2   +   spring   +   EJB3
web   用tomcat   通过remote调用EJB里sessionBean   保存一个Entity到数据库
getEntityManager().persist(obj);时出错,保存没有成功。

2007-03-29   18:41:18   [org.jboss.remoting.transport.socket.SocketClientInvoker]-[ERROR]   Got   marshalling   exception,   exiting
java.lang.ClassNotFoundException:   [Ljava.lang.StackTraceElement;
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at   org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at   org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
at   org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
at   java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at   java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at   java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
at   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
at   java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
at   java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
at   org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at   org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at   org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
at   org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at   org.jboss.remoting.Client.invoke(Client.java:525)
at   org.jboss.remoting.Client.invoke(Client.java:488)
at   org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)


tomcat控制台提示的错误       JBOSS控制台没有抱错      
大家看看     问题出在哪     怎么解决?

------解决方案--------------------
up