Hi All, 

I am using Camel 2.8.1 and I am trying to use javascript in my camel context 
however I getting the following Exception.

Exception in thread "main" org.apache.camel.RuntimeCamelException: 
org.apache.camel.FailedToCreateRouteException: Failed to create route route3 
at: >>> SetHeader[subdirectory, js{new 
URI(request.headers.get('CamelFileRelativePath')).getPath().split('/')[segments.length-1];}]
 <<< in route: Route[[From[file://c:/temp/logs_akamai/uncompressed?recursiv... 
because of No language could be found for: js
        at 
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1145)
        at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)
        at 
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
        at 
com.ptv.tools.standalone.ApplicationContextFactory.initApplicationContext(ApplicationContextFactory.java:87)
        at 
com.ptv.tools.standalone.ApplicationContextFactory.getApplicationContext(ApplicationContextFactory.java:109)
        at 
com.ptv.tools.standalone.camel.Level3LogDownloader.run(Level3LogDownloader.java:43)
        at 
com.ptv.tools.standalone.camel.Level3LogDownloader.main(Level3LogDownloader.java:28)

I already have the camel-script on my classpath. Any other ideas?

Thanks in advance, Dan.

Reply via email to