a.编译部署EJB成功<c:\bea\user_projects\mydomain\myserver\upload下>
b.然后在SampleBean.java中的自定义方法<test>的第二行设置了断点,Debug Project图标,并选择server,启动weblogic,服务器启动起来,错误提示如下:
<2003-5-7 下午02时27分28秒> <Error> <Deployer> <149231> <The slave deployer was unable to set the activation state to true for the application _appsdir_DebugEJB_jarweblogic.management.ApplicationException: activate failed forDebugEJB
{
Module Name: DebugEJB, Error: Exception activating module: EJBModule(DebugEJB,status=PREPARED)
Unable to deploy EJB: Sample from DebugEJB.jar:Unable to bind EJB Home Interface to the JNDI name: Sample. The error was:
javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(192.168.0.31 null)/275 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at Sample(ClusterableRemoteRef(192.168.0.31 [192.168.0.31/273])/273 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name ''
TargetException: Unable to deploy EJB: Sample from DebugEJB.jar:Unable to bind EJB Home Interface to the JNDI name: Sample. The error was:
javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(192.168.0.31 null)/275 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at Sample(ClusterableRemoteRef(192.168.0.31 [192.168.0.31/273])/273 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name ''
} at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1022) at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:617) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:376) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:235) at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300) at weblogic.Server.main(Server.java:32)> <2003-5-7 下午02时27分32秒> <Notice> <Management> <141052> <Application Poller started for development server.> <2003-5-7 下午02时27分56秒> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7002> <2003-5-7 下午02时27分56秒> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7001> <2003-5-7 下午02时27分56秒> <Notice> <WebLogicServer> <000331> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Development Mode> <2003-5-7 下午02时28分02秒> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING> <2003-5-7 下午02时28分02秒> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
c.我运行测试程序,错误提示如下:
-- Initializing bean access.-- Succeeded initializing bean access through Home interface.-- Execution time: 37975 ms.-- Calling create()-- Succeeded: create()-- Execution time: 811 ms.-- Return value from create(): [email protected] Calling test()weblogic.rjvm.PeerGoneException: No message was received for: '240' seconds at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)-- Failed: test() at debugejb.SampleBean_u71eeu_EOImpl_WLStub.test(Unknown Source) at debugejb.SampleTestClient1.test(SampleTestClient1.java:121) at debugejb.SampleTestClient1.main(SampleTestClient1.java:162)-- Return value from test(): .The return value from EJB is 各位大哥麻烦帮看看究竟是那个环节出了问题.....多谢了.....
b.然后在SampleBean.java中的自定义方法<test>的第二行设置了断点,Debug Project图标,并选择server,启动weblogic,服务器启动起来,错误提示如下:
<2003-5-7 下午02时27分28秒> <Error> <Deployer> <149231> <The slave deployer was unable to set the activation state to true for the application _appsdir_DebugEJB_jarweblogic.management.ApplicationException: activate failed forDebugEJB
{
Module Name: DebugEJB, Error: Exception activating module: EJBModule(DebugEJB,status=PREPARED)
Unable to deploy EJB: Sample from DebugEJB.jar:Unable to bind EJB Home Interface to the JNDI name: Sample. The error was:
javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(192.168.0.31 null)/275 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at Sample(ClusterableRemoteRef(192.168.0.31 [192.168.0.31/273])/273 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name ''
TargetException: Unable to deploy EJB: Sample from DebugEJB.jar:Unable to bind EJB Home Interface to the JNDI name: Sample. The error was:
javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(192.168.0.31 null)/275 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at Sample(ClusterableRemoteRef(192.168.0.31 [192.168.0.31/273])/273 [debugejb.SampleHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name ''
} at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1093) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1022) at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:617) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:376) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:235) at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300) at weblogic.Server.main(Server.java:32)> <2003-5-7 下午02时27分32秒> <Notice> <Management> <141052> <Application Poller started for development server.> <2003-5-7 下午02时27分56秒> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7002> <2003-5-7 下午02时27分56秒> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7001> <2003-5-7 下午02时27分56秒> <Notice> <WebLogicServer> <000331> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Development Mode> <2003-5-7 下午02时28分02秒> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING> <2003-5-7 下午02时28分02秒> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
c.我运行测试程序,错误提示如下:
-- Initializing bean access.-- Succeeded initializing bean access through Home interface.-- Execution time: 37975 ms.-- Calling create()-- Succeeded: create()-- Execution time: 811 ms.-- Return value from create(): [email protected] Calling test()weblogic.rjvm.PeerGoneException: No message was received for: '240' seconds at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)-- Failed: test() at debugejb.SampleBean_u71eeu_EOImpl_WLStub.test(Unknown Source) at debugejb.SampleTestClient1.test(SampleTestClient1.java:121) at debugejb.SampleTestClient1.main(SampleTestClient1.java:162)-- Return value from test(): .The return value from EJB is 各位大哥麻烦帮看看究竟是那个环节出了问题.....多谢了.....
解决方案 »
- 我的第一个服务器脚本:返回不全
- JSP的弹出页面如何实现只打开一个弹出...
- 求``J2EE 中文API ``
- struts2标签遍历Map<Course,String>类型
- ____________初学者,对java分类的一点问题,谢谢
- j2ee sdk 安装问题
- 用struts的validate组件时,在jsp页面出现javascript的源码??
- 如何在WebLogic中部数一个网站?
- 请问,用java怎样根据曲线的方程将曲线画出来,又没有类似与jfreechart的东西可以做?
- 如何监听窗口最大化事件
- 一些java各个版本的英语缩写
- 我装了j2sdk_forte(1.4),按下面的方法配置 j2ee环境,为什么不行
右边就可以修改JNDI Name
换个名字,顺便把客户端程序里的名字也改成一样的,比如都改成SimpleHome
Object ref = context.lookup("SampleHome");
"example.ejbgrpx": Spaces in the temporary directory path may cause WebLogic EJBC utility to produce fatal compile errors.我的环境变量的tmp,temp,还有工程路径中都没有空格的.....
好!!!结帖去了.....