File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3 javax.naming.Communication Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB 3 javax.naming.Communication Exception" Watch "EJB 3 javax.naming.Communication Exception" New topic

EJB 3 javax.naming.Communication Exception

Rajesh Rathod

Joined: Aug 01, 2007
Posts: 24
Hi, I am trying to access a remote stateless bean from a standalone client. I am using JBOSS application server.But I am getting the following exception:

where is my client application running on a separate machine.

The code snippets for the various classes used are as follows:

where is the IP address of the server where JBOSS server is running.

Can someone please help me out??


Rajesh Rathod<br />SCJP 1.4
krishnamoorthy kitcha
Ranch Hand

Joined: Feb 04, 2006
Posts: 96
Hi this is coming

You had done some of the changes in your business, without restarting your server . I think so.

Just Restart your server or else check with your deployment description file matching with your client looking.
Rajesh Rathod

Joined: Aug 01, 2007
Posts: 24
Hi krishnamoorthy,

Thanks for your answer.

I am still not able to get your point. We did restart the server after making the changes. You mentioned a change in the deployment descriptor file which file is that?

I am using EJB3.0

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


I believe, you have included JBoss jar files in your client's classpath. Do these jars belong to the same version as the JBoss server, on which you have deployed the bean?

[My Blog] [JavaRanch Journal]
Rajesh Rathod

Joined: Aug 01, 2007
Posts: 24
Hi Jaikiran,

We have included all the jar files on both client and server side which is having same version.

On both server and client side we copied these jars from lib directory of Jboss Server.

badri nath
Ranch Hand

Joined: Dec 21, 2005
Posts: 57
Use the same compiler version to compile both the class files i.e., the bean you are trying to make a call and the local client file.
I agree. Here's the link:
subject: EJB 3 javax.naming.Communication Exception
It's not a secret anymore!