File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3 javax.naming.Communication Exception

 
Rajesh Rathod
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
krishnamoorthy kitcha
Ranch Hand
Posts: 96
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rajesh Rathod
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic