1 Reply Latest reply on Aug 30, 2011 8:36 AM by Alessio Soldano

    WebServices and EJB on AS 7

    Alex Beaupre Newbie

      Hi all,

       

      I am having troubles using EJB with WebServices on JBoss AS 7.

       

      When using an @EJB annotation in a @WebService annotated class, the EJB doesn't get injected and I see the following warnings

       

      WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-2) Cannot resolve resource: cxf

       

       

      Also, it seems that I cannot use both @Stateless and @WebService on the same class...

       

       

      Should these 2 scenarios work ?

       

       

      Thanks!

      Alex