5 Replies Latest reply on Jan 3, 2013 3:06 AM by Gaurav Gupta

    JBoss AS 7 ClassCastException when lookup Local ejb from war

    Vitaliy Gonchar Newbie

      Hi, guys!

      The version of jboss i'm using is 7.1.0.Beta1.

       

      I have local ejb in test-ejb.jar

       

      {quote}

      @Stateless(name="TestClient")

      @Local(value=TestClientLocal.class)

      public class TestClient implements TestClientLocal {

      {quote}

       

       

      I've got exception:

       

       

      {quote}

      java.lang.ClassCastException: com.test.lookup.TestClientLocal$$$view14 cannot be cast to com.test.lookup.TestClientLocal{quote}

       

       

      when i'm trying to lookup Local ejb in test.war from test-ejb.jar.

       

      Is it jboss bug again?

       

       

      |

       

           +- test.ear

       

                |

       

                +- test-ejb.jar

       

                |

       

                +- test.war