IntelliJ Java IDE
The moose likes JBoss and the fly likes Error while calling EJB with client code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Error while calling EJB with client code" Watch "Error while calling EJB with client code" New topic
Author

Error while calling EJB with client code

praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 53
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
 
IntelliJ Java IDE
 
subject: Error while calling EJB with client code
 
Threads others viewed
Integrate Tomcat and JBoss!
Eclipse client of Jboss EJB
How to create EJB client stubs in JBoss
How to make a ejb-jar file?
can't run EJB in jBoss
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture