You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2013/06/12 20:16:22 UTC

[jira] [Moved] (DOSGI-189) Endpoint.publish(...) emits FactoryFinder$ConfigurationError with cxf-dosgi-ri-singlebundle-distribution-1.4.0.jar

     [ https://issues.apache.org/jira/browse/DOSGI-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp moved CXF-5062 to DOSGI-189:
----------------------------------------

          Component/s:     (was: JAX-WS Runtime)
    Affects Version/s:     (was: 2.7.2)
             Workflow: jira  (was: Default workflow, editable Closed status)
                  Key: DOSGI-189  (was: CXF-5062)
              Project: CXF Distributed OSGi  (was: CXF)
    
> Endpoint.publish(...) emits FactoryFinder$ConfigurationError with cxf-dosgi-ri-singlebundle-distribution-1.4.0.jar
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: DOSGI-189
>                 URL: https://issues.apache.org/jira/browse/DOSGI-189
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>         Environment: Apache Felix on Windows 7 
>            Reporter: Andrew Lamb
>         Attachments: hello_world.zip
>
>
> A bundled version of the CXF java_first_jaxws sample fails on Endpoint.publish(...) when the cxf-dosgi-ri-singlebundle-distribution-1.4.0.jar is used.
> Exception in thread "SpringOsgiExtenderThread-2" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.dosgi.samples.springdm.impl.HelloWorldImpl#0' defined in URL [bundle://5.0:0/META-INF/spring/spring.xml]: Invocation of init method failed; nested exception is javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
>         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
>         at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found
>         at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138)
>         at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:282)
>         at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125)
>         at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:42)
>         at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:273)
>         at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:282)
>         at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168)
>         at javax.xml.ws.spi.Provider.provider(Provider.java:39)
>         at javax.xml.ws.Endpoint.publish(Endpoint.java:47)
>         at org.apache.cxf.dosgi.samples.springdm.impl.HelloWorldImpl.start(HelloWorldImpl.java:58)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
>         ... 14 more
> The same hello_world project is successful when using the older cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar.  It is also successful when the apache-cxf-dosgi-ri-1.4.0 multibundle distribution is used.  It fails only with the single bundle distribution of 1.4.0.
> Installed Bundles are the following:
> g! lb
> START LEVEL 1
>    ID|State      |Level|Name
>     0|Active     |    0|System Bundle (4.2.1)
>     1|Active     |    1|AOP Alliance API (1.0.0)
>     2|Active     |    1|Apache Commons Logging (1.1.1)
>     3|Active     |    1|Apache Log4J (1.2.15)
>     4|Active     |    1|Distributed OSGi Distribution Software Single-Bundle Distribution (1.4.0)
>     5|Active     |    1|Hello World Impl Bundle (1.5.0.SNAPSHOT)
>     6|Active     |    1|Hello World Interface Bundle (1.5.0.SNAPSHOT)
>     7|Active     |    1|Apache Felix Bundle Repository (1.6.6)
>     8|Active     |    1|Apache Felix Gogo Command (0.12.0)
>     9|Active     |    1|Apache Felix Gogo Runtime (0.10.0)
>    10|Active     |    1|Apache Felix Gogo Shell (0.10.0)
>    11|Active     |    1|Spring AOP (3.1.2.RELEASE)
>    12|Active     |    1|Spring ASM (3.1.2.RELEASE)
>    13|Active     |    1|Spring Beans (3.1.2.RELEASE)
>    14|Active     |    1|Spring Context (3.1.2.RELEASE)
>    15|Active     |    1|Spring Core (3.1.2.RELEASE)
>    16|Active     |    1|Spring Expression Language (3.1.2.RELEASE)
>    17|Active     |    1|spring-osgi-core (1.2.1)
>    18|Active     |    1|spring-osgi-extender (1.2.1)
>    19|Active     |    1|spring-osgi-io (1.2.1)
> System bundle exports are:
> org.osgi.framework.system.packages=org.osgi.framework; version\=1.5, org.osgi.framework.hooks.service; version\=1.0, org.osgi.framework.launch; version\=1.0, org.osgi.service.packageadmin; version\=1.2, org.osgi.service.startlevel; version\=1.1, org.osgi.service.url; version\=1.0, org.osgi.util.tracker;version\="1.4", javax.accessibility,javax.activity,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.smartcardio,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.omg.stub.javax.management.remote.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
> Steps to Reproduce:
> 1. Start the basic Felix Framework Distribution
> 2. Install cxf-dosgi-ri-singlebundle-distribution-1.4.0.jar
> 3. Install SpringDM bundles with additional Spring dependencies (see installed bundles above)
> 4. Install hello-world interface and impl bundles (attached)
> Versions:
> 1. Felix Framework Distribution 4.2.1
> 2. SpringDM 1.2.1
> 3. Spring 3.1.2
> 4. cxf-dosgi-ri-singlebundle-distribution 1.4.0
> 5. Windows 7
> 6. Java 1.6.0_26
> Final notes:
> 1.  I've provided explicit org.osgi.framework.system.packages (above) to eliminate possible package conflicts with the cxf bundle, but this doesn't change the final outcome
> 2.  I've attached the full hello_world project which includes interface, client, and impl bundles but only the interface and impl bundles need to be installed to reproduce the issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira