cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <...@kulp.com>
Subject Re: [jira] [Created] (CXF-4240) CXF WSN cannot run offline in Karaf
Date Tue, 17 Apr 2012 02:10:36 GMT

Hmm... I kind of expect the catalog to work, but not completely surprised 
that it doesn't.   that involves classloader resource lookups which is 
definitely an issue in OSGi.

I'll look more next week (on vacation this week) unless someone jumps on it 
before then.   However, if you're going through the trouble to rebuild the 
bundles, you COULD try adding a wsdlLocation attribute to the impls (based 
on a classpath: url) and see if that helps.   Just something to try.

Dan




On Monday, April 16, 2012 10:27:55 PM Christoph Emmersberger wrote:
> Dear all,
> 
> I tried to resolve this issue by doing the following:
> 
> (1) Created a jax-ws-catalog file
> 
> <?xml version="1.0"?>
> <!DOCTYPE catalog
>         PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"
>        
> "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
> prefer="system"> <rewriteSystem
> systemIdStartString="http://www.w3.org/2006/03/addressing"
> rewritePrefix="classpath:/org/apache/cxf/wsn/wsdl"/> <rewriteSystem
> systemIdStartString="http://www.w3.org/2005/08/addressing"
> rewritePrefix="classpath:/org/apache/cxf/wsn/wsdl"/> </catalog>
> 
> (2) Adjusted the build pom of the wsn-core project
> 
> <Import-Package>
>   org.apache.cxf.wsn.util.*;version=${project.version},
>   !org.apache.cxf.wsn*,
>   !org.apache.activemq*,
>   javax.xml.bind*;version="[0.0,3)",
>   javax.jws*;version="[0.0,3)",
>   javax.xml.ws*;version="[0.0,3)",
>   org.apache.cxf*;version=${project.version},
>   org.apache.cxf.wsn.wsdl,
>   *
> </Import-Package>
> 
> (3) Run a rebuild of wsn-core
> 
> Unfortunately without success. Am I missing a point to resolve this issue?
> 
> Many thanks and kind regards,
> 
> Christoph
> 
> On 16.04.2012, at 15:48, Zsolt Beothy-Elo (Created) (JIRA) wrote:
> > 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
> > 
> > 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(BeanRe
> > 	cipe.java:638)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRec
> > 	ipe.java:724)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.jav
> > 	a: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.jav
> > 	a:64)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BlueprintRepository.createInstanc
> > 	es(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> > 	at
> > 	org.apache.aries.blueprint.container.BlueprintRepository.createInstanc
> > 	e(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BlueprintRepository.create(Bluepr
> > 	intRepository.java:137)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(Servic
> > 	eRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.ServiceRecipe.createService(Servi
> > 	ceRecipe.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(Serv
> > 	iceRecipe.java:140)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.jav
> > 	a:64)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BlueprintRepository.createInstanc
> > 	es(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> > 	at
> > 	org.apache.aries.blueprint.container.BlueprintRepository.createAll(Blu
> > 	eprintRepository.java:147)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiat
> > 	eEagerComponents(BlueprintContainerImpl.java:640)[10:org.apache.aries.b
> > 	lueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(Blue
> > 	printContainerImpl.java:331)[10:org.apache.aries.blueprint:0.3.1] at
> > 	org.apache.aries.blueprint.container.BlueprintContainerImpl.run(Bluepr
> > 	intContainerImpl.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.a
> > 	ccess$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_31] at
> > 	java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
> > 	un(ScheduledThreadPoolExecutor.java:206)[:1.6.0_31] at
> > 	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> > 	tor.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(JaxwsEndpoin
> > 	tManager.java:54) at
> > 	org.apache.cxf.wsn.services.OSGiJaxwsEndpointManager.register(OSGiJaxw
> > 	sEndpointManager.java:54) at
> > 	org.apache.cxf.wsn.AbstractEndpoint.register(AbstractEndpoint.java:56)
> > 	at
> > 	org.apache.cxf.wsn.AbstractCreatePullPoint.init(AbstractCreatePullPoin
> > 	t.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.j
> > 	ava:39)[:1.6.0_31] at
> > 	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> > 	orImpl.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(ReflectionUtil
> > 	s.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(BeanRe
> > 	cipe.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(Catal
> > 	ogXmlSchemaURIResolver.java:76) at
> > 	org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuil
> > 	der.java:684) at
> > 	org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.
> > 	java:538) at
> > 	org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementChild(Sc
> > 	hemaBuilder.java:1513) at
> > 	org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(Sche
> > 	maBuilder.java:659) at
> > 	org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:15
> > 	7) at
> > 	org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollect
> > 	ion.java:497) at
> > 	org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollect
> > 	ion.java:483) at
> > 	org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection
> > 	.java:133) at
> > 	org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(Abstr
> > 	actDataBinding.java:192) at
> > 	org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(Abstr
> > 	actDataBinding.java:95) at
> > 	org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:35
> > 	3) at
> > 	org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDa
> > 	taBindings(AbstractServiceFactoryBean.java:86) at
> > 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServi
> > 	ceFromClass(ReflectionServiceFactoryBean.java:474) at
> > 	org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromC
> > 	lass(JaxWsServiceFactoryBean.java:685) at
> > 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initialize
> > 	ServiceModel(ReflectionServiceFactoryBean.java:536) at
> > 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Ref
> > 	lectionServiceFactoryBean.java:248) at
> > 	org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServi
> > 	ceFactoryBean.java:205) at
> > 	org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoin
> > 	t(AbstractWSDLBasedEndpointFactory.java:101) at
> > 	org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.jav
> > 	a:159) at
> > 	org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryB
> > 	ean.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.jsp
> > a For more information on JIRA, see:
> > http://www.atlassian.com/software/jira
-- 
Daniel Kulp
dan@kulp.com
http://dankulp.com/blog


Mime
View raw message