• Post Reply Bookmark Topic Watch Topic
  • New Topic

lookup problem in jboss-3.0.8  RSS feed

Nalini Reddy
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have deployed HelloWorld EJB on jboss successfully.But when i am trying to run it it gives me the following error.

javax.naming.CommunicationException:RootException is java.rmi.Marshall Exception

also returns Exception:null

Could any of u please help me out.I need to develop a project on jboss,so trying to learn doing a sample example (HelloWorld example)first.

My HelloWorldClient program is as follows:

import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Hashtable;
import javax.ejb.CreateException;
import javax.rmi.PortableRemoteObject;
import javax.naming.NamingException;
import javax.ejb.RemoveException;

public class HelloWorldClient
public static void main( String [] args )
Hashtable h = new Hashtable();
h.put(Context.PROVIDER_URL, "localhost:1099");
"org.jboss.naming rg.jnp.interfaces");
Context ctx = new InitialContext(h);
Object obj = ctx.lookup( "HelloWorld" );

HelloWorldHome home =
obj, HelloWorldHome.class );
HelloWorld helloWorld = home.create();
System.out.println( helloWorld.hello());
catch ( Exception e )
System.out.println( "Exception: " + e.getMessage() );

I would b very grateful if anyone could help me out soon,please........

Thanks,in advance
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!