[jboss-user] [JBoss jBPM] - Re: java.lang.ClassCastException: $Proxy67 cannot be cast t

salaboy21 do-not-reply at jboss.com
Wed Jul 30 08:54:06 EDT 2008


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167607#4167607

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167607



More information about the jboss-user mailing list