Freeman,

I did install camel-restlet and camel-script.
You can see classes from both bundles in my stack trace.
Does the sample projet work for you on SMX 4.3 ?

Thanks,

metatech

On 1 September 2011 17:19, Freeman-2 [via ServiceMix]
<[email protected]> wrote:
> Hi,
>
> Ensure you already install camel-restlet and camel-script feature,
> then you can deploy your bundle in SMX4.3.
>
> Freeman
> On 2011-9-1, at 下午11:03, metatech wrote:
>
>> Freeman,
>>
>> Here is a sample project.
>> It is really a basic OSGI-based project with only 2 files : pom.xml
>> and camel-config.xml
>> Can I make it work with ServiceMix 4.3 or do have I have to wait for
>> the release of 4.4 ?
>>
>> Thanks,
>> Regards,
>>
>> metatech
>>
>>
>> On 1 September 2011 14:54, Freeman-2 [via ServiceMix]
>> <[hidden email]> wrote:
>>> Hi,
>>>
>>> This generally means
>>> com.sun.script.javascript.RhinoScriptEngineFactory and
>>> ScriptEngineFactory are loaded by different classloader.
>>> You need elaborate how you package your customer bundle,  such as how
>>> is the OSGi metadata header looks like? you're using JBI package or
>>> OSGi package? Did you embed jar into your bundle? A test project(with
>>> pom.xml which we can build and deploy)  would be more helpful here.
>>>
>>> Freeman
>>> On 2011-9-1, at 下午8:39, metatech wrote:
>>>
>>>> Hello,
>>>>
>>>> With ServiceMix 4.3, I am trying to use a JavaScript expression in a
>>>> Camel
>>>> route as described here :
>>>> http://camel.apache.org/javascript.html
>>>> <choice>
>>>> <when>
>>>> <javaScript>request.headers.get('myheader') == 'myvalue'</
>>>> javaScript>
>>>> <to uri="log:output"/>
>>>> </when>
>>>> </choice>
>>>>
>>>> The routed worked fine with a "Simple" expression, but raises an
>>>> exception
>>>> when using the JavaScript expression, at the moment that a message
>>>> is sent
>>>> through the route :
>>>> java.lang.IllegalArgumentException: No script engine could be
>>>> created for:
>>>> js
>>>> at


--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Exception-when-using-JavaScript-expression-in-Camel-routes-tp4758137p4758768.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to