camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vksptg <vkanagasabapa...@virtusa.com>
Subject Apache Camel Restlet compoent in CQ(Adobe AEM/CQ5)
Date Thu, 05 Jun 2014 12:29:42 GMT
I am now working on installing Camel as OSGI in CQ. I am using restlet
component for accessing http url and processing the response to be stored in
JCR. During calling method from CQ I am getting exception . Caused by:
org.apache.camel.RuntimeCamelException:
org.apache.camel.TypeConverterLoaderException: Failed to load type
converters because of: Cannot find package names to be used for classpath
scanning for annotated type converters. at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)
at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1246)
at
org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1267)
at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2393)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1779)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1683)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1651)
at com.virtusa.camel.context.CamelConfig.callMethod(CamelConfig.java:29) at
org.apache.jsp.apps.quora.components.homepage.homepage_jsp._jspService(homepage_jsp.java:265)
at
org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at
org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
... 115 more Caused by: org.apache.camel.TypeConverterLoaderException:
Failed to load type converters because of: Cannot find package names to be
used for classpath scanning for annotated type converters. at
org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:90)
at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:538)
at
org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:47)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at
org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2042)
at
org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:989)
at
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:950)
at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1244)
... 126 more Caused by: org.apache.camel.TypeConverterLoaderException:
Failed to load type converters because of: Cannot find package names to be
used for classpath scanning for annotated type converters. at
org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:87)
... 133 more 


Please find my code snippet

public RouteBuilder createMyRoutes() throws Exception { return new
RouteBuilder() { @Override public void configure() throws Exception {
from("direct:a") .to("restlet:http://ip.jsontest.com?restletMethod=post")
.process(new Processor() { public void process(Exchange exchange) throws
Exception { // TODO Auto-generated method stub String
msg=exchange.getIn().getBody(String.class); Session ses=session;
exchange.getOut().setHeader("sessi",ses);
exchange.getOut().setHeader("msg",msg); } }) .bean(new JCRConnection(),
"JCRConnect_Method(${header.msg},${header.sessi})"); } }; } View the
conversation or respond to Kanagasabapathy Vidhyasagar by replying to this
email.




--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Restlet-compoent-in-CQ-Adobe-AEM-CQ5-tp5751922.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message