cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raughan <dcriss...@perimeterusa.com>
Subject Unable to find cxf.xml
Date Mon, 01 Nov 2010 20:03:44 GMT

I am working on using CXF on the Virgo OSGi platform (built on Equinox),
using Maven for the builder. I previously had this working using the
non-OSGi jar files, but really need to move to the OSGi version. When I
launch this web bundle (lives in a war file), I get the following exception

{code:title=Exception}
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from OSGi
resource[classpath:META-INF/cxf/cxf.xml|bnd.id=83|bnd.sym=com.company.com.company.app.osgi.server];
nested exception is java.io.FileNotFoundException: OSGi
resource[classpath:META-INF/cxf/cxf.xml|bnd.id=83|bnd.sym=com.company.com.company.app.osgi.server]
cannot be resolved to URL because it does not exist
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
	at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:187)
	... 40 common frames omitted
Caused by: java.io.FileNotFoundException: OSGi
resource[classpath:META-INF/cxf/cxf.xml|bnd.id=83|bnd.sym=com.company.com.company.app.osgi.server]
cannot be resolved to URL because it does not exist
	at
org.springframework.osgi.io.OsgiBundleResource.getURL(OsgiBundleResource.java:228)
	at
org.springframework.osgi.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:180)
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
	... 44 common frames omitted
{code}

{code:title=applicationContext.xml}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:jaxws="http://cxf.apache.org/jaxws"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:osgi="http://www.springframework.org/schema/osgi"
	xmlns:cxf="http://cxf.apache.org/core"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
		http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
		http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
		http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd"
	default-autowire="byName">
	 	
	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
//...
<beans>
{code}

{code:title=pom.xml}
<dependency>
... 
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-bundle-minimal</artifactId>
      <version>2.2.9</version>
      <scope>provided</scope>
...
{code}

Any assistance would be appreciated.

Thanks.
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Unable-to-find-cxf-xml-tp3245654p3245654.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message