File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Getting a SocketOrChannelConnectionImpl in Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Getting a SocketOrChannelConnectionImpl in Weblogic" Watch "Getting a SocketOrChannelConnectionImpl in Weblogic" New topic

Getting a SocketOrChannelConnectionImpl in Weblogic

Thilak Prakash

Joined: May 11, 2007
Posts: 5
Here is a simple ejb program.

Remote interface

import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import java.rmi.Remote;
public interface Hello extends EJBObject
public String hello() throws java.rmi.RemoteException;

Home interface

import javax.ejb.*;
import java.rmi.RemoteException;
public interface HelloHome extends EJBHome {
Hello create() throws RemoteException, CreateException;


import java.rmi.RemoteException;

import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

public class HelloBean implements SessionBean {
public void ejbCreate(){
public void setSessionContext(SessionContext ctx) throws EJBException,
RemoteException {
public void ejbRemove() throws EJBException, RemoteException {
public void ejbActivate() throws EJBException, RemoteException {
public void ejbPassivate() throws EJBException, RemoteException {
public String hello(){
return "Hello, World";


import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
import java.util.Properties;

public class HelloClient {

public static void main(String[] args) {
Properties props = System.getProperties();
Context ctx = new InitialContext(props);
HelloHome home = (HelloHome) ctx.lookup("HelloBean");
Hello hello = home.create();
catch(Exception e)

Ive created the jar file in weblogic 8.1. And deployed it sucessfully. The jndi name matches the one in the client program and weblogic builde. Tried to run HelloClient.
I get the following error. Here is the error message. <init>
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

And goes on in an infinite loop.
The same program works on sun application server 8.2 but not on weblogic 8.1. Please help.
[ May 14, 2007: Message edited by: Mark Spritzler ]
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Moving this thread to the Weblogic forum. This seems to be Weblogic specific.

Also please name your threads appropriate to what you are asking. Putting something like "Pleaes don't ignore" makes people want to ignore the thread.

Good Luck

Maybe your is pointing to the wrong IP ort.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Thilak Prakash

Joined: May 11, 2007
Posts: 5
any ideas?
Thilak Prakash

Joined: May 11, 2007
Posts: 5
I would be grateful if anybody would help me figure out this problem.
I agree. Here's the link:
subject: Getting a SocketOrChannelConnectionImpl in Weblogic
It's not a secret anymore!