当前位置: 技术问答>java相关
@#$%各位老大和斑竹救命啊,刚学J2EE,部署一个简单的程序,CLIENT调用不能成功,拉我一把吧……
来源: 互联网 发布时间:2015-03-13
本文导语: 我的系统是新装的2000SERVER,在网上找的一篇教程文章,看内容是翻译的SUN J2EE教程的其中一小部分,我照上面的做,程序编译和部署的过程没有出错,但是运行时出现如下错误(用的例子是SUN J2EE教程里的converter) Cau...
我的系统是新装的2000SERVER,在网上找的一篇教程文章,看内容是翻译的SUN J2EE教程的其中一小部分,我照上面的做,程序编译和部署的过程没有出错,但是运行时出现如下错误(用的例子是SUN J2EE教程里的converter)
Caught an unexpected exception!
javax.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:76)
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 ConverterClient.main(ConverterClient.java:13)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:172
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at ConverterClient.main(ConverterClient.java:13)
其中ConverterClient.java第13句是:lookup那句
我执行的命令行是:C:myejbconverter>java -classpath c:j2sdkee1.3libj2ee.jar;.;testClient.jar ConverterClient
到底是哪里错了,拜托各位,一定给分!
Caught an unexpected exception!
javax.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:76)
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 ConverterClient.main(ConverterClient.java:13)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:172
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at ConverterClient.main(ConverterClient.java:13)
其中ConverterClient.java第13句是:lookup那句
我执行的命令行是:C:myejbconverter>java -classpath c:j2sdkee1.3libj2ee.jar;.;testClient.jar ConverterClient
到底是哪里错了,拜托各位,一定给分!
|
在发布时EJB的security 安全属性页 Deploymeny Setings... Client Authentication 设置为Support Client choice 或者使用如下方式运行
runclient -client -name
runclient -client -name