当前位置: 技术问答>java相关
各位大侠,帮帮忙>>
来源: 互联网 发布时间:2015-03-30
本文导语: 我作了一个helloWorld程序就是不好使: jdk1.3+j2sdkee1.3 部署已经成功,客户端运行出错,有知为什么,望告知: 出错如下: avax.naming.CommunicationException: org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No at j...
我作了一个helloWorld程序就是不好使:
jdk1.3+j2sdkee1.3
部署已经成功,客户端运行出错,有知为什么,望告知:
出错如下:
avax.naming.CommunicationException: org.omg.CORBA.NO_PERMISSION: minor code:
0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at com.sun.corba.ee.internal.corba.ClientDelegate.is_a(ClientDelegate.ja
va:833)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:79)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
:52)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:326)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance
(IIOPObjectFactory.java:42)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
07)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:158
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client.main(Client.java:8)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:172
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client.main(Client.java:8)
jdk1.3+j2sdkee1.3
部署已经成功,客户端运行出错,有知为什么,望告知:
出错如下:
avax.naming.CommunicationException: org.omg.CORBA.NO_PERMISSION: minor code:
0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:136)
at com.sun.corba.ee.internal.corba.ClientDelegate.is_a(ClientDelegate.ja
va:833)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:79)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java
:52)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:326)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance
(IIOPObjectFactory.java:42)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:3
07)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:158
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client.main(Client.java:8)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:172
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client.main(Client.java:8)
|
应该是你的deployment descriptor 有错误!
|
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client.main(Client.java:8)
应该是jndi name有问题吧!
at Client.main(Client.java:8)
应该是jndi name有问题吧!
|
你用的Application Server是什么?
如果是Borland Application Server,VisiBroker Smart Agent 开了吗?
如果是Borland Application Server,VisiBroker Smart Agent 开了吗?
|
你把原程序写出来呀