Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Problem deploying CXF JAX-RS services in Virgo
Problem deploying CXF JAX-RS services in Virgo [message #1020260] Sun, 17 March 2013 18:48
Eduardo Fernández is currently offline Eduardo FernándezFriend
Messages: 7
Registered: October 2011
Junior Member
Hi to all, I'm ver newbie in Virgo but I consider really interesting server. I'm trying to deploy some bundles with JAX-RS services in Virgo by using Apache CXF.

The steps I follow are:

1. Download cxf-dosgi-ri-multibundle-distribution-1.4.0-dir.tar.gz file from CXF page. Select the needed jars and create the next plan (attached in this post) to load the CXF bundles.

2. Put this plan and its bundles in repository/ext (is this step right?)

3. In the file configuration/ in the part of initialArtifacts I put at the end the plan to carry out the load of the bundles I need.

4. I created two bundles with Eclipse Virgo Tooling: one is a simple interface with JAX-RS annotations and the other is a dummy implementation. In the implementation I put the next content in OSGI-INF/blueprint/cxf.xml (attached)

This content is copied from http:// .

5. When I deployed the bundles in Virgo Jetty Server with Tooling the plan of CXF is loaded successfully but the bluepring configuration throws this message:

[2013-03-17 19:11:31.369] region-dm-0                  <AG0000E> Application context creation failure for bundle 'samples-greeter-impl' version '1.5.0'. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://]
Offending resource: OSGi resource[bundleentry://157.fwk1220373087/OSGI-INF/blueprint/cxf.xml||bnd.sym=samples-greeter-impl]

	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(
	at org.springframework.beans.factory.parsing.ReaderContext.error(
	at org.springframework.beans.factory.parsing.ReaderContext.error(
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(
	at org.eclipse.gemini.blueprint.blueprint.config.BlueprintBeanDefinitionParser.parse(
	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(
	at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

Googling for this exception I found that it's needed the org.apache.cxf.cxf-rt-core (this bundle manages the http:// namespace) have to be loaded in my classpath, but in my case this bundle is in the plan so I think that this bundle doesn't export the service for namespaces.

What's wrong? Sad

Thank you very much.
Previous Topic:Requiring org.slf4j.api causes uses violations in empty server
Next Topic:Deploying Multiple Bundles at Once
Goto Forum:

Current Time: Wed May 23 19:01:40 GMT 2018

Powered by FUDForum. Page generated in 0.01797 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top