That was it.Thanks!
On Tuesday, October 28, 2014 3:57 PM, Hiranya Jayathilaka
<[email protected]> wrote:
Have you tried placing your jar in the lib directory instead of lib/endorsed?
We typically don't use the endorsed directory to place custom code.
Thanks,
Hiranya
On Oct 27, 2014, at 12:46 PM, Tech Bolek <[email protected]> wrote:
> I deployed a simple custom task placing it in lib/endorsed. At startup,
> synapse find the class with my custom task alright but it cannot find it's
> own Task interface. The Task interface is defined in synapse-tasks-2.1.0.jar
> and I verified the jar is included in synapse classpath.
> My custom task:
> package com.mytest.synapse;
>
> import org.apache.synapse.task.Task;
>
> public class MyTask implements Task {
>
> @Override
> public void execute() {
> System.out.println("my task in action");
> }
> }
>
>
> Synapse config file:
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <task class="com.mytest.synapse.MyTask" name="Task1">
> <trigger interval="5"/>
> </task>
> </definitions>
>
>
--
Hiranya Jayathilaka
Mayhem Lab/RACE Lab;
Dept. of Computer Science, UCSB; http://cs.ucsb.edu
E-mail: [email protected]; Mobile: +1 (805) 895-7443
Blog: http://techfeast-hiranya.blogspot.com