cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Emmersberger <cemme...@googlemail.com>
Subject Re: [jira] [Resolved] (CXF-4240) CXF WSN cannot run offline in Karaf
Date Thu, 26 Apr 2012 08:59:49 GMT
Hi Dan,

thank's for your support.

I guess there might be a second option for enabling offline capabilities.

We tried to solve the issue by patching the component which is using WSN (e.g. Talend SAM
Server).

(1) We placed the catalog into the consuming project
(2) Ran a rebuild
(3) The OSGi bundle class loading seemed to work fine.

I am not quite sure which way is the better (fixing the WSN using component or embedding a
Require-Bundle statement) way of resolving this issue, I can only say, both work.

Many greets and kind regards,

Christoph

On 24.04.2012, at 23:00, Daniel Kulp (JIRA) wrote:

> 
>     [ https://issues.apache.org/jira/browse/CXF-4240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
> 
> Daniel Kulp resolved CXF-4240.
> ------------------------------
> 
>       Resolution: Fixed
>    Fix Version/s: 2.5.4
>                   2.6.1
>         Assignee: Daniel Kulp
> 
>> CXF WSN cannot run offline in Karaf
>> -----------------------------------
>> 
>>                Key: CXF-4240
>>                URL: https://issues.apache.org/jira/browse/CXF-4240
>>            Project: CXF
>>         Issue Type: Bug
>>         Components: Services
>>   Affects Versions: 2.5.2, 2.6
>>        Environment: jdk 1.6, Karaf 2.2.5
>>           Reporter: Zsolt Beothy-Elo
>>           Assignee: Daniel Kulp
>>            Fix For: 2.6.1, 2.5.4
>> 
>> 
>> I am running cxf within Karaf. If am without connection to Maven Central and try
to install and start the feature cxf-wsn I get the following exception:
>> {noformat}
>> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to intialize
bean createPullPoint
>> 	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:638)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:724)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.ServiceRecipe.internalCreate(ServiceRecipe.java:140)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
>> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_31]
>> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_31]
>> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_31]
>> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_31]
>> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_31]
>> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
>> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
>> 	at java.lang.Thread.run(Thread.java:680)[:1.6.0_31]
>> Caused by: javax.xml.ws.WebServiceException: org.apache.ws.commons.schema.XmlSchemaException:
Unable to locate imported document at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd',
relative to 'schema4.xsd'.
>> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:357)
>> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:246)
>> 	at org.apache.cxf.wsn.services.JaxwsEndpointManager.register(JaxwsEndpointManager.java:54)
>> 	at org.apache.cxf.wsn.services.OSGiJaxwsEndpointManager.register(OSGiJaxwsEndpointManager.java:54)
>> 	at org.apache.cxf.wsn.AbstractEndpoint.register(AbstractEndpoint.java:56)
>> 	at org.apache.cxf.wsn.AbstractCreatePullPoint.init(AbstractCreatePullPoint.java:67)
>> 	at org.apache.cxf.wsn.jms.JmsCreatePullPoint.init(JmsCreatePullPoint.java:48)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_31]
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_31]
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_31]
>> 	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_31]
>> 	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:226)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:824)[10:org.apache.aries.blueprint:0.3.1]
>> 	at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:636)[10:org.apache.aries.blueprint:0.3.1]
>> 	... 25 more
>> Caused by: org.apache.ws.commons.schema.XmlSchemaException: Unable to locate imported
document at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd', relative to 'schema4.xsd'.
>> 	at org.apache.cxf.catalog.CatalogXmlSchemaURIResolver.resolveEntity(CatalogXmlSchemaURIResolver.java:76)
>> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:684)
>> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:538)
>> 	at org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementChild(SchemaBuilder.java:1513)
>> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:659)
>> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:157)
>> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:497)
>> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:483)
>> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:133)
>> 	at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:192)
>> 	at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:95)
>> 	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:353)
>> 	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
>> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:474)
>> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
>> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
>> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
>> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
>> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
>> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
>> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
>> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:442)
>> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:329)
>> 	... 38 more
>> {noformat}
> 
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 
> 


Mime
View raw message