This content has been marked as final.
Show 2 replies
-
1. Re: java.lang.ClassCastException: $Proxy67 cannot be cast t
salaboy21 Jul 30, 2008 8:54 AM (in response to ajanz)I have the same problem.. here is the solution (in a EJB3 context):
@EJB(mappedName="ejb/CommandServiceBean") RemoteCommandServiceHome cmdService;
and then.. (because is a EJB 2.1 for backward compatibility) you must use it like this:result=(ProcessInstance)cmdService.create().execute(cmd);
note the create() method -
2. Re: java.lang.ClassCastException: $Proxy67 cannot be cast t
ajanz Jul 30, 2008 9:04 AM (in response to ajanz)problem was wrong jbossall-client.jar
after replacing it with one of jboss 4.2.2 everythins works fine...