2 Replies Latest reply on Nov 18, 2011 9:57 AM by asoldano

    Using Apache CXF Web services with JBoss 7

    mylos78

      Hi all,

      I have an application running on JBoss 6 which uses Apache CXF Web services and defines some Interceptors in the file WEB-INF/jbossws-cxf.xml.

      However when deployed on JBoss 7 this configuration file seems to be ignored. I've tried also adding @Interceptors in the Web service class, however also this is ignored.

      Do you know if it's possible to use somehow Apache CXF configuration file ?

      Thanks

      Mylos

        • 1. Re: Using Apache CXF Web services with JBoss 7
          mylos78

          Reading carefully the stack trace I've found :

           

          15:27:31,781 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (MSC service thread 1-2) Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

           

          So it seems that the problem is Spring. I've added spring core libraries to the WEB-INF/lib folder but still nothing happened.....

          • 2. Re: Using Apache CXF Web services with JBoss 7
            asoldano

            You need to have Spring installed in AS7, in module org.springframework.spring. A way for doing that automatically is using the -Dspring=true option when installing jbossws-cxf distribution on AS7.