Hi All,
i tried executing stateless session bean in glassfish Sun
Java System Application Server 9.1.
i am getting the warning message which is mentioned below.
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR
_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
RBUtilSystemException.java:2690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
RBUtilSystemException.java:2711)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(
SocketOrChannelConnectionImpl.java:261)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(
SocketOrChannelConnectionImpl.java:274)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.create
Connection(SocketOrChannelContactInfoImpl.java:130)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
Request(CorbaClientRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
lientDelegateImpl.java:181)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClie
ntDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.
java:131)
at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialConte
xt.java:247)
at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialConte
xt.java:205)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:160)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398
)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.bekijkhet.helloclient.HelloClient.main(Unknown Source)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection ref
used: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
etFactory.java:347)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(
SocketOrChannelConnectionImpl.java:244)
... 14 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility
.java:105)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
etFactory.java:332)
... 15 more
i dont know what went wrong..
i deployed the jar file successfully.
i am getting this warning when i tried to execute the client.
the client is shown below.
package com.bekijkhet.helloclient;
import javax.naming.*;
//import
import com.bekijkhet.Hello;
public class HelloClient {
// @EJB
private Hello hello;
public static void main(
String[] args) {
try {
InitialContext ctx = new InitialContext();
// Piece of code to list all remote JNDI resources
//NamingEnumeration e = ctx.list("");
//while (e.hasMore()) {
// System.out.println(e.next());
//}
System.out.println("Started");
Hello h = (Hello)ctx.lookup("com.bekijkhet.Hello");
System.out.println(h.sayHello());
System.out.println(h.sayHelloRemote());
// Will fail because we call the Remote Business interface
// System.out.println(h.sayHelloLocal());
}
catch (Exception e) {
System.out.println("Exception");
e.printStackTrace();
}
}
}
please Help Me...
Thanks In Advance.
Bennet Xavier.X