6 Replies Latest reply on Dec 10, 2013 6:27 AM by Alessio Soldano

    Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.

    Farooq Mahmood Newbie

      Hi,

       

      I am using JBoss 6.1.0 eap and trying to run simple webservice. I am getting an exception

       

      Provider org.apache.cxf.jaxws.spi.ProviderImpl not found. What is the best way to provide this provider I am using Maven and I have to tried to follow this post

      http://stackoverflow.com/questions/6364333/jax-ws-when-apache-cxf-is-installed-it-steals-default-jdk-jax-ws-implementat

       

      Regards,

      Farooq Mahmood

        • 1. Re: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.
          Alessio Soldano Master

          This is most likely an issue with how the application deployment is packaged, the libs it's embedding, etc. as the JBossWS provider impl should be resolved instead. Can you please provide more info on your deployment? (e.g. the output of "jar -tvf myapp.war")?

          • 2. Re: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.
            Farooq Mahmood Newbie

            Hi Alessio,

             

            Thanks for your reply. here is the output of jar -tvf helloworld-ws-test.war

             

            C:\temp>jar -tvf helloworld-ws-test.war

                 0 Fri Dec 06 09:23:58 EST 2013 META-INF/

               128 Fri Dec 06 09:23:56 EST 2013 META-INF/MANIFEST.MF

                 0 Fri Dec 06 09:23:58 EST 2013 resources/

                 0 Fri Dec 06 09:23:58 EST 2013 resources/css/

                 0 Fri Dec 06 09:23:58 EST 2013 resources/gfx/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/META-INF/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/META-INF/services/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/META-INF/spring/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/domain/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/mvc/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/repo/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/clientsample/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/lib/

                 0 Fri Dec 06 09:23:58 EST 2013 WEB-INF/views/

              3177 Thu Dec 05 09:55:42 EST 2013 resources/css/screen.css

              1374 Thu Dec 05 09:55:42 EST 2013 resources/gfx/asidebkg.png

            41473 Thu Dec 05 09:55:42 EST 2013 resources/gfx/banner.png

               116 Thu Dec 05 09:55:42 EST 2013 resources/gfx/bkg-blkheader.png

              5225 Thu Dec 05 09:55:42 EST 2013 resources/gfx/dualbrand_as7eap.png

            13485 Thu Dec 05 09:55:42 EST 2013 resources/gfx/dualbrand_catapillarbutterfly.png

              4004 Thu Dec 05 09:55:42 EST 2013 resources/gfx/dualbrand_logo.png

              1147 Thu Dec 05 09:55:42 EST 2013 resources/gfx/headerbkg.png

              2444 Thu Dec 05 09:55:42 EST 2013 resources/gfx/icon_large.png

              1548 Thu Dec 05 09:55:42 EST 2013 resources/gfx/icon_medium.png

               620 Thu Dec 05 09:55:42 EST 2013 resources/gfx/icon_small.png

              4582 Thu Dec 05 09:55:42 EST 2013 resources/gfx/logo.png

               202 Fri Dec 06 09:23:56 EST 2013 WEB-INF/classes/import.sql

              1087 Fri Dec 06 09:23:56 EST 2013 WEB-INF/classes/META-INF/persistence.xml

                37 Fri Dec 06 09:23:56 EST 2013 WEB-INF/classes/META-INF/services/javax.xml.ws.spi.Provider

              1089 Fri Dec 06 09:23:56 EST 2013 WEB-INF/classes/META-INF/spring/applicationContext.xml

              1315 Fri Dec 06 09:23:56 EST 2013 WEB-INF/classes/META-INF/spring/infrastructure.xml

              2082 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/domain/Member.class

              2210 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/mvc/MemberController.class

               494 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/repo/MemberDao.class

              3442 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/as/quickstarts/repo/MemberDaoImpl.class

              1927 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/clientsample/ClientSample.class

              1705 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/HelloWorldService.class

              3107 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/HelloWorldService_Service.class

              5728 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/ObjectFactory.class

               323 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/package-info.class

               575 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/SayHello.class

               951 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/SayHelloResponse.class

               869 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/SayHelloToName.class

               975 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/SayHelloToNameResponse.class

               948 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/SayHelloToNames.class

               979 Fri Dec 06 09:23:58 EST 2013 WEB-INF/classes/org/jboss/jbossas/quickstarts/wshelloworld/helloworld/SayHelloToNamesResponse.class

               985 Thu Dec 05 10:51:50 EST 2013 WEB-INF/jboss-as-spring-mvc-context.xml

               392 Thu Dec 05 09:54:46 EST 2013 WEB-INF/jboss-deployment-structure.xml

              4467 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/aopalliance-1.0.jar

            43581 Wed Nov 13 13:33:08 EST 2013 WEB-INF/lib/asm-3.3.1.jar

            60686 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/commons-logging-1.1.1.jar

            1089367 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/cxf-api-2.7.7.jar

            203209 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/cxf-rt-bindings-soap-2.7.7.jar

            38694 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/cxf-rt-bindings-xml-2.7.7.jar

            407248 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/cxf-rt-core-2.7.7.jar

            124295 Wed Nov 13 13:33:04 EST 2013 WEB-INF/lib/cxf-rt-databinding-jaxb-2.7.7.jar

            387340 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/cxf-rt-frontend-jaxws-2.7.7.jar

            67275 Wed Nov 13 13:33:04 EST 2013 WEB-INF/lib/cxf-rt-frontend-simple-2.7.7.jar

             

             

            255839 Wed Nov 13 13:33:04 EST 2013 WEB-INF/lib/cxf-rt-transports-http-2.7.7.jar

             

             

            79629 Wed Nov 13 13:33:08 EST 2013 WEB-INF/lib/cxf-rt-ws-addr-2.7.7.jar

            204973 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/cxf-rt-ws-policy-2.7.7.jar

            1112659 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/jaxb-impl-2.2.6.jar

            71320 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/neethi-3.0.2.jar

            331471 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-aop-3.1.1.RELEASE.jar

            53081 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-asm-3.1.1.RELEASE.jar

            589824 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-beans-3.1.1.RELEASE.jar

            831068 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-context-3.1.1.RELEASE.jar

             

             

            107225 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-context-support-3.1.1.RELEASE.jar

            449324 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-core-3.1.1.RELEASE.jar

            176311 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-expression-3.1.1.RELEASE.jar

            378476 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-orm-3.1.1.RELEASE.jar

            246719 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-tx-3.1.1.RELEASE.jar

            544291 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-web-3.1.1.RELEASE.jar

            573701 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/spring-webmvc-3.1.1.RELEASE.jar

            393259 Mon Oct 28 10:46:10 EST 2013 WEB-INF/lib/standard-1.1.2.jar

            182112 Wed Nov 13 13:32:28 EST 2013 WEB-INF/lib/stax2-api-3.1.1.jar

            482245 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/woodstox-core-asl-4.2.0.jar

            186758 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/wsdl4j-1.6.3.jar

            84091 Wed Nov 13 13:32:28 EST 2013 WEB-INF/lib/xml-resolver-1.2.jar

            162818 Wed Nov 13 13:33:06 EST 2013 WEB-INF/lib/xmlschema-core-2.0.3.jar

               997 Thu Dec 05 09:54:46 EST 2013 WEB-INF/spring-quickstart-ds.xml

              3494 Thu Dec 05 09:55:42 EST 2013 WEB-INF/views/index.jsp

              1169 Thu Dec 05 09:54:46 EST 2013 WEB-INF/web.xml

                 0 Fri Dec 06 09:24:00 EST 2013 META-INF/maven/

                 0 Fri Dec 06 09:24:00 EST 2013 META-INF/maven/org.jboss.tools.example.springmvc/

                 0 Fri Dec 06 09:24:00 EST 2013 META-INF/maven/org.jboss.tools.example.springmvc/helloworld-ws-test/

            13401 Fri Dec 06 09:23:38 EST 2013 META-INF/maven/org.jboss.tools.example.springmvc/helloworld-ws-test/pom.xml

               150 Fri Dec 06 09:23:58 EST 2013 META-INF/maven/org.jboss.tools.example.springmvc/helloworld-ws-test/pom.properties

             

             

            There are some more observations

            If I debug it then it is using Service class from

            jboss-jaxws-api_2.2_spec-2.0.1.Final-redhat-2.jar c:\dev\jboss-eap-6.1\modules\system\layers\base\javax\xml\ws\api\main

              javax.xml.ws.Service.class

             

            But If I am using client through main method the Service class is being used from jdk rt.jar which is working fine.

             

             

            • 3. Re: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.
              Alessio Soldano Master

              As I expected, your app is not properly packaged. I see you're embedding a lot of jars (from cxf and spring, as well as their dependencies) into your deployment, which is not correct, as you should automatically use the same libs that are already available within the server. Unless you're actually really excluding the ws dependencies from the server in the WEB-INF/jboss-deployment-structure.xml (can you past its contents?), then the solution should simply be to remove the unrequired libs from the deployment.

              You can read more on the JBossWS - Apache CXF integration at Apache CXF integration - JBoss Web Services - Project Documentation Editor

              1 of 1 people found this helpful
              • 4. Re: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.
                Farooq Mahmood Newbie

                Thanks for your reply.

                 

                <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

                   <deployment>

                      <dependencies>

                      <module name="com.h2database.h2"/>

                      <module name="org.codehaus.jackson.jackson-core-asl"/>

                      <module name="org.codehaus.jackson.jackson-mapper-asl"/>

                            <module name="org.slf4j"/>

                      </dependencies>

                   </deployment>

                </jboss-deployment-structure>

                • 5. Re: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.
                  Farooq Mahmood Newbie

                  Is there any way I can get a simple example webservice and web base client using cxf? So I can deploy both in jboss 6.1.0 eap and test it.

                  • 6. Re: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found.
                    Alessio Soldano Master

                    OK, having seen your jboss-deployment-structure.xml, I confirm that you should simply remove the cxf libs from your deployment.

                    If you want, you can download the latest distribution (or sources distribution) at JBossWS Downloads - Latest (4.x) - JBoss Community , there're many examples you can possibly have a look to in the testsuite.