aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
Author

EJB 3 javax.naming.Communication Exception

Rajesh Rathod
Greenhorn

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 FirstEJB3TutorialClient.java is my client application running on a separate machine.

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



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

Can someone please help me out??

Thanks


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
Greenhorn

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

Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10207
    
166

Rajesh,

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
Greenhorn

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.


Thanks
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: http://aspose.com/file-tools
 
subject: EJB 3 javax.naming.Communication Exception