camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vs.souza" <>
Subject CXFRS to consume OSVDB Restful APIs
Date Wed, 04 Apr 2012 00:07:39 GMT
Hello Friends,

I am trying to use CXFRS to consume the OSVDB Vulnerability Database API but
things doesn't seem to work out. First problem is that it complains that
there is no cxf.xml under META-INF/cxf. I tried to add this file but it is
not working yet (if I add the file it complains that I should declare beans
there). And I get the following errors if I don't add the file:

21:00:00,453 | INFO  | camel-9_Worker-1 | alidationXmlBeanDefinitionReader |
66 - org.springframework.beans - 3.0.6.RELEASE | Loading XML bean
definitions from class path resource [META-INF/cxf/cxf.xml]
21:00:00,456 | WARN  | camel-9_Worker-1 | SpringBusFactory                 |
137 - org.apache.cxf.bundle - 2.4.4 | Initial attempt to create application
context was unsuccessful.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested
exception is class path resource
[META-INF/cxf/cxf.xml] cannot be opened because it does not exist


21:00:01,085 | WARN  | camel-9_Worker-1 | PhaseInterceptorChain            |
137 - org.apache.cxf.bundle - 2.4.4 | Interceptor for
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: .No message body writer has been found for
class : class org.springframework.util.LinkedCaseInsensitiveMap, ContentType
: application/xml.

The restful service URL I am trying to consume is this:

And this is my camel route:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

  <bean id="sql" class="org.apache.camel.component.sql.SqlComponent">
	<property name="dataSource" ref="osvdbDS" />

  <bean id="osvdbDS" class="org.apache.commons.dbcp.BasicDataSource"
	<property name="driverClassName" value="com.mysql.jdbc.Driver" />
	<property name="url" value="jdbc:mysql://localhost:3306/osvdb" />
	<property name="username" value="root"/>
	<property name="password" value="mysql"/>

  <camelContext xmlns="" trace="false">
      <camel:to uri="sql:SELECT max(osvdb_id) FROM
      <camel:to uri="log:org.osvdb.update?level=WARN"/>


I already tried to follow the camel-cxfrs documentation without success and
couldn't find an example from camel examples folder.

Do you have any ideas about where I can find a solution or a full example to

Thanks and regards.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message