File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while calling EJB with client code

 
praveen shinde
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the following error
" Exception in thread "main" java.lang.ClassCastException: $Proxy0 cannot be cast to com.test.Remote1
at com.test.TestBean.main(TestBean.java:17)"

I have a client in the same directory as the ejb java files. The ejb is deployed on JBOSS. The jndi name of the EJB is 'Bean1-test'.
I have not added the jboss-common.jar file in classpath.
Is this the problem. I have jboss 5.1
Any help is most welcome
Praveen
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic