2 Replies Latest reply on Jul 4, 2005 7:50 PM by doofus

    ClassCastException and UseJBossWebloader

    doofus

      I think i fully understand the need for disabling the UseJBossWebloader property in the later releases of JBoss, but i am having some issues with my EJB stub classes when using EJB3 + JSF. All session bean calls work OK but when I return a reference to an entity bean I get a ClassCastException.

      I guess there are a couple of questions here:

      - How can I resolve this situation (I have read about using jboss-web.xml - no luck thus far)?

      - Should I be returning instances of my Entity beans directly or is there a better way?

      eg:
      public Entity sessionBean.findEntity() { .. }

      Thanks in advance ..

      -luke