Topic: 初写EJB碰到的问题

  Print this page

1.初写EJB碰到的问题 Copy to clipboard
Posted by: Watson
Posted on: 2004-12-04 19:12

照书上例子写了个EJB,测试的时候报连接错误,是不是还需要配JavaIDL???
异常如下:

2004-12-4 19:11:22 com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl <init>
警告: ORBUTIL.connectFailure
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
  at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1739)
  at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1757)
  at com.sun.corba.ee.impl.legacy.connection.SocketFactoryConnectionImpl.<init>(SocketFactoryConnectionImpl.java:74)
  at com.sun.corba.ee.impl.legacy.connection.SocketFactoryContactInfoImpl.createConnection(SocketFactoryContactInfoImpl.java:77)
  at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
  at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:121)
  at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:214)
  at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
  at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
  at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:58)
  at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:126)
  at javax.naming.InitialContext.lookup(InitialContext.java:347)
  at PerfectTimeClient.main(PerfectTimeClient.java:16)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

2.Re:初写EJB碰到的问题 [Re: Watson] Copy to clipboard
Posted by: biti_tony
Posted on: 2005-03-02 22:06

把你的bean和test client的代码帖出来


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923