jb6 weblogin61 sp2 写的Entity ejb2.0 (cmp)遇到以下问题?

buff 2002-05-30 05:03:07
我单独写了一个class测试,ENTITY ejb 是否工作正常:
当在lookup("DbCustomerViewBean")出现错误:
javax.naming.ConfigurationException [Root exception is java.rmi.MarshalException: error marshalling return; nested exception is:
java.io.NotSerializableException: misbean.DbCustomerViewBean_w1d95r_LocalHomeImpl

Start server side stack trace:
java.rmi.MarshalException: error marshalling return; nested exception is:
java.io.NotSerializableException: misbean.DbCustomerViewBean_w1d95r_LocalHomeImpl

java.io.NotSerializableException: misbean.DbCustomerViewBean_w1d95r_LocalHomeImpl

at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)

at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:115)

at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:121)

at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)

at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)

at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)

at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)

at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

End server side stack trace
; nested exception is:
java.io.NotSerializableException: misbean.DbCustomerViewBean_w1d95r_LocalHomeImpl

Start server side stack trace:
java.io.NotSerializableException: misbean.DbCustomerViewBean_w1d95r_LocalHomeImpl

at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)

at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:115)

at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:121)

at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)

at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)

at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)

at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)

at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

End server side stack trace
]

宁外:我写一个sessionBean 2.0在其中可以访问它。难道不能直接用jsp或Servlet访问吗?
谢谢!
...全文
11 点赞 收藏 1
写回复
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
gangyi 2002-05-30
写了remote接口了吗?如果只有local接口应该jsp不能直接定位的。
回复
发动态
发帖子
Web 开发
创建于2007-09-28

7.9w+

社区成员

Java Web 开发
申请成为版主
社区公告
暂无公告