4 Replies Latest reply on Sep 23, 2011 11:41 PM by shamik

    jaxws ProviderImpl not found exception

    shamik

      Hi,

       

         I'm having an exception during deployment of a bundle. The bundle makes a web service call from one its class. The introduction of the web service is causing the issue. Here's the error :

       

      Caused by: javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.cxf.jaxws.spi.ProviderImpl not found

              at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:130)

              at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:220)

              at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:124)

              at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44)

              at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:211)

              at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:220)

              at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:160)

              at javax.xml.ws.spi.Provider.provider(Provider.java:43)

              at javax.xml.ws.Service. list

      START LEVEL 100 , List Threshold: 50

         ID   State         Blueprint      Spring    Level  Name

      Taxonomy query soap bundle (1.0.0)

      Taxonomy Message Bundle (1.0.0)

      Taxonomy Model Bundle (1.0.0)

      Apache ServiceMix :: Bundles :: asm (3.3.0.2)

      kahadb (5.5.0.fuse-00-27)

      activemq-console (5.5.0.fuse-00-27)

      activemq-pool (5.5.0.fuse-00-27)

      Apache Aries Transaction Manager (0.2.0.incubating)

      activemq-ra (5.5.0.fuse-00-27)

      activemq-core (5.5.0.fuse-00-27)

                                             Fragments: 69

      activemq-karaf (5.5.0.fuse-00-27)

      Commons Pool (1.5.4)

      geronimo-jms_1.1_spec (1.1.1)

      Apache ServiceMix :: Bundles :: commons-codec (1.3.0.3)

      geronimo-j2ee-management_1.1_spec (1.0.1)

      Apache ServiceMix Bundles: xpp3-1.1.4c (1.1.0.4c_3)

      Commons Collections (3.2.1)

      Apache ServiceMix Bundles: oro-2.0.8 (2.0.8.3)

      Apache ServiceMix :: Bundles :: jasypt (1.6.0.1)

      Apache ServiceMix :: Bundles :: commons-lang (2.4.0.4)

      Apache ServiceMix :: Bundles :: velocity (1.7.0.1)

      Apache ServiceMix :: Bundles :: jdom (1.1.0.3)

      activemq-blueprint (5.5.0.fuse-00-27)

                                             Hosts: 56

      Apache ServiceMix :: Specs :: Scripting API 1.0 (1.8.0)

      Apache XBean :: OSGI Blueprint Namespace Handler (3.7)

      Commons JEXL (2.0.1)

      activemq-broker.xml (0.0.0)

      Spring Beans (3.0.5.RELEASE)

      Spring Context Support (3.0.5.RELEASE)

      Spring Context (3.0.5.RELEASE)

      Spring Expression Language (3.0.5.RELEASE)

      Spring ASM (3.0.5.RELEASE)

      Spring Core (3.0.5.RELEASE)

      Spring AOP (3.0.5.RELEASE)

      Apache ServiceMix :: Bundles :: aopalliance (1.0.0.5)

      camel-core (2.7.1.fuse-00-27)

      Apache ServiceMix :: Bundles :: jaxb-impl (2.2.1.1_1)

      Commons Management (1.0)

      Apache ServiceMix :: Specs :: JAXB API 2.2 (1.8.0)

      Apache ServiceMix :: Specs :: Activation API 1.4 (1.8.0)

      Apache ServiceMix :: Specs :: Stax API 1.0 (1.8.0)

      spring-osgi-core (1.2.1)

      spring-osgi-io (1.2.1)

      spring-osgi-annotation (1.2.1)

      spring-osgi-extender (1.2.1)

      Apache ServiceMix :: Bundles :: cglib (2.1.0.3_7)

      camel-spring (2.7.1.fuse-00-27)

      Spring Transaction (3.0.5.RELEASE)

      Apache ServiceMix Bundles: dom4j-1.6.1 (1.6.1.2)

      Apache ServiceMix Bundles: xstream-1.3 (1.3.0.3)

      camel-jms (2.7.1.fuse-00-27)

      Spring JMS (3.0.5.RELEASE)

      activemq-camel (5.5.0.fuse-00-27)

      Apache ServiceMix :: Document (1.5.0.fuse-00-27)

      Apache ServiceMix :: NMR :: Management (1.5.0.fuse-00-27)

      Apache ServiceMix :: NMR :: Commands (1.5.0.fuse-00-27)

      Apache ServiceMix :: NMR :: API (1.5.0.fuse-00-27)

      Apache ServiceMix :: NMR :: OSGi (1.5.0.fuse-00-27)

      Apache ServiceMix :: NMR :: Core (1.5.0.fuse-00-27)

      Apache ServiceMix :: Utils (1.5.0.fuse-00-27)

      Apache ServiceMix :: Features :: Camel Support :: Component (4.4.0.fuse-00-27)

      Web Services Metadata 2.0 (1.1.3)

      Apache ServiceMix :: Specs :: JAXWS API 2.2 (1.8.0)

      Apache ServiceMix :: Specs :: SAAJ API 1.3 (1.8.0)

      Jetty :: JNDI Naming (7.4.1.v20110513)

      Jetty :: Continuation (7.4.1.v20110513)

      Jetty :: Http Utility (7.4.1.v20110513)

      Jetty :: Asynchronous HTTP Client (7.4.1.v20110513)

      Jetty :: Server Core (7.4.1.v20110513)

      Jetty :: Servlet Handling (7.4.1.v20110513)

      Jetty :: IO Utility (7.4.1.v20110513)

      Jetty :: Security (7.4.1.v20110513)

      Jetty :: XML utilities (7.4.1.v20110513)

      Jetty :: Utilities (7.4.1.v20110513)

      Jetty :: Plus (7.4.1.v20110513)

      Jetty :: JMX Management (7.4.1.v20110513)

      Jetty :: Utility Servlets and Filters (7.4.1.v20110513)

      Jetty :: Webapp Application Support (7.4.1.v20110513)

      geronimo-servlet_2.5_spec (1.1.2)

      JavaMail API (1.4.3)

      jettison (1.2)

      Apache ServiceMix :: Bundles :: xmlsec (1.4.4.1)

      Apache CXF Bundle Jar (2.4.0.fuse-00-27)

      WSS4J (1.6.0)

      Apache ServiceMix :: Bundles :: xmlbeans (2.5.0.1)

      camel-cxf (2.7.1.fuse-00-27)

      Apache ServiceMix :: Bundles :: velocity (1.7.0.2)

      Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.3)

      Apache ServiceMix Bundles: saaj-impl-1.3.2 (1.3.2.1)

      Apache ServiceMix :: Bundles :: FastInfoset (1.2.7.3)

      Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.2)

      XmlSchema Core (2.0)

      Apache ServiceMix :: Specs :: JSR-311 API 1.1 (1.8.0)

      Apache ServiceMix :: Bundles :: wsdl4j (1.6.2.3)

      Apache Neethi (3.0.0)

      Apache ServiceMix Bundles: xalan-2.7.1 (2.7.1.2)

      Apache ServiceMix Bundles: antlr-2.7.7 (2.7.7.2)

      Apache ServiceMix Bundles: opensaml-1.1 (1.1.0.3)

      Apache ServiceMix :: Bundles :: ant (1.7.0.4)

      Apache ServiceMix Bundles: xercesImpl-2.9.1 (2.9.1.3)

      Apache ServiceMix Bundles: bcel-5.2 (5.2.0.2)

      Apache ServiceMix :: Naming (1.5.0.fuse-00-27)

      Apache Aries Transaction Manager (0.3.0)

      Apache Aries Transaction Enlisting JDBC Datasource (0.3.0)

      Apache Aries Transaction Blueprint (0.3.0)

      Stax2 API (3.0.2)

      Woodstox XML-processor (4.0.8)

      Apache ServiceMix :: JBI :: Deployer (1.5.0.fuse-00-27)

      Apache ServiceMix :: JBI :: Commands (1.5.0.fuse-00-27)

      Apache ServiceMix :: JBI :: OSGi (1.5.0.fuse-00-27)

      Apache ServiceMix :: JBI :: Runtime (1.5.0.fuse-00-27)

      Apache ServiceMix :: Components :: Shared Libraries :: Common (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Specs :: JBI API 1.0 (1.8.0)

      Apache XBean :: Classloader (3.7)

      Apache XBean :: Spring (3.7)

      Apache ServiceMix :: JBI :: Clustering :: Requestor (1.5.0.fuse-00-27)

      Apache ServiceMix :: JBI :: Clustering :: Engine (1.5.0.fuse-00-27)

      Apache ServiceMix :: JBI :: Clustering :: Config (1.5.0.fuse-00-27)

      OPS4J Pax Web - API (1.0.3)

      OPS4J Pax Web - Runtime (1.0.3)

      OPS4J Pax Web - Service SPI (1.0.3)

      OPS4J Pax Web - Jetty (1.0.3)

      OPS4J Pax Web - Extender - Whiteboard (1.0.3)

      OPS4J Pax Web - Extender - WAR (1.0.3)

      OPS4J Pax Url - war (1.2.6)

      OPS4J Pax Web - Jsp Support (1.0.3)

      OPS4J Pax Web - FileInstall Deployer (1.0.3)

      Servlet 3.0 (1.0)

      Axiom API (1.2.10)

      Apache ServiceMix :: Components :: CXF Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: Shared Libraries :: SOAP Stack v2 (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: File Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: FTP Binding Component (2011.02.0.fuse-00-27)

      Commons Net (2.2)

      Apache ServiceMix :: Components :: HTTP Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: jetty (6.1.26.1)

      Apache ServiceMix :: Bundles :: commons-httpclient (3.1.0.5)

      Apache ServiceMix :: Components :: Shared Libraries :: SOAP Stack (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: JMS Binding Component (2011.02.0.fuse-00-27)

      geronimo-j2ee-connector_1.5_spec (2.0.0)

      Apache ServiceMix :: Components :: Mail Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: SMPP Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: jsmpp (2.1.0.2)

      Apache ServiceMix :: Components :: SNMP Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: snmp4j (1.8.1.4)

      Apache ServiceMix :: Components :: VFS Binding Component (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: commons-vfs (1.0.0.5)

      Apache ServiceMix :: Components :: Bean Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: Camel Service Engine (2011.02.0.fuse-00-27)

      Apache CXF Runtime JBI Transport (2.4.0.fuse-00-27)

      Apache ServiceMix :: Components :: CXF Service Engine (2011.02.0.fuse-00-27)

      Apache CXF Runtime JBI Binding (2.4.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: mvel2 (2.0.8.4)

      Apache ServiceMix :: Bundles :: antlr-runtime (3.0.1.2)

      Apache ServiceMix :: Bundles :: core (3.2.3.4)

      Apache ServiceMix :: Components :: Drools Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: quartz (1.8.3.2)

      Apache ServiceMix :: Bundles :: drools (5.1.1.1)

      Apache ServiceMix :: Components :: EIP Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: OSWorkflow Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: oscore (2.2.4.4)

      Apache ServiceMix :: Bundles :: osworkflow (2.7.0.4)

      Apache ServiceMix :: Bundles :: propertyset (1.3.0.4)

      Apache ServiceMix :: Components :: Quartz Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: groovy (1.5.6.4)

      Apache ServiceMix :: Components :: JSR-223 Scripting Service Engine (2011.02.0.fuse-00-27)

      ScriptEngines :: Groovy (1.1)

      ScriptEngines :: JavaScript (1.1)

      Apache ServiceMix :: Bundles :: js (1.0.0.7R1_3)

      ScriptEngines :: JRuby (1.1)

      Apache ServiceMix :: Bundles :: jruby (1.1.2.3)

      Apache ServiceMix :: Components :: Validation Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Components :: Saxon Service Engine (2011.02.0.fuse-00-27)

      Apache ServiceMix :: Bundles :: saxon (9.1.0.8_1)

      Apache ServiceMix :: Components :: WS-Notification Service Engine (2011.02.0.fuse-00-27)

      Apache Felix Metatype Service (1.0.4)

      Apache Karaf :: Web Console :: Branding (2.2.0.fuse-00-27)

                                             Hosts: 226

      Apache Karaf :: Web Console :: Console (2.2.0.fuse-00-27)

                                             Fragments: 225

      Apache Karaf :: Web Console :: Admin Plugin (2.2.0.fuse-00-27)

      Apache Karaf :: Web Console :: Features Plugin (2.2.0.fuse-00-27)

      Apache Karaf :: Web Console :: Gogo Plugin (2.2.0.fuse-00-27)

      Apache Felix Web Console Event Plugin (1.0.2)

      Text Analysis Bundle (1.0.0)

      Post Process Bundle (1.0.0)

      Taxonomy query rest bundle (1.0.0)

      Textanalysis impl bundle (1.0.0)

      Post Process Impl Bundle (1.0.0)

      Velocity service bundle (1.0.0)

      Taxonomy Dao Impl Bundle (1.0.0)

      Taxonomy Dao Bundle (1.0.0)

      Crawl Processing Bundle (1.0.0)

       

      I'll appreciate if you can provide a pointer.

       

      - Thanks

        • 1. Re: jaxws ProviderImpl not found exception
          ffang

          Hi,

           

          Just a quick notes, embed 3rd party jars in your bundle isn't a good practice in OSGi world, you should always try to install all necessary 3rd party bundles/jars in OSGi container and from your bundle you should import necessary package, this is the expected behavior in OSGi container.

           

          Freeman

          • 2. Re: jaxws ProviderImpl not found exception
            shamik

            Even after taking the bundles out, I'm getting the same exception. I don't think its the question of embedded bundles. Moreover, they are standalone libraries and have no connection with jaxws or cxf.

            • 3. Re: jaxws ProviderImpl not found exception
              ffang

              Hi,

               

              How about you try to add

              <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>

              to see if any difference?

               

              Embeded jar MIGHT not matter in this case but it's not the best practice so I strongly suggest you shouldn't go with that way.

              Freeman

               

              Edited by: ffang on Sep 24, 2011 1:52 AM

              • 4. Re: jaxws ProviderImpl not found exception
                shamik

                My bad, not sure how I missed the <Require-Bundle> parameter. The issue got resolved after adding that entry back. Thanks a lot for your help, really appreciate it.

                 

                As for the embedded bundles go, I need to create a bundle for a quick POC, so didn't want to spend extra hours in installing the bundles. But I completely agree with your suggestion that it's not a recommended practice.