Hello: You have to copy the jar file to
ESB_HOME/repository/components/lib then restart the esb. best regards jlcc On Fri, 2010-07-23 at 16:08 +0700, KRIANGYUT WANGJITMAN wrote: > Hello > > > > I use WSO2ESB 3.0 and want to create my own task. > > So I follow instruction in > http://synapse.apache.org/Synapse_Configuration_Language.html#task. > > > > I’ve created a TestTask class which implements > org.apache.synapse.startup.Task and packed it to ESBTask.jar. > > Where should I put my this jar? > > > > I’ve tried to put it in repository/components/extensions/. > > After restart the ESB two files are created > > components/dropins/org.wso2.carbon.framework.extension.ESBTask_1.0.0.jar > > and > > components/configuration/org.eclipse.osgi/bundles/4/1/.cp/ESBTask.jar. > > > > Then I go to new scheduled task page -> put my class name into Task > Implementation field and finally hit “Load Class” button. > > There’s a error box said “org/apache/synapse/startup/Task”. > > In the wso2-esb.log, I see this message > > > > 2010-07-23 14:31:14,679 [-] [http-9443-Processor22] ERROR > RPCMessageReceiver org/apache/synapse/startup/Task > > java.lang.reflect.InvocationTargetException > > … > > Caused by: java.lang.NoClassDefFoundError: > org/apache/synapse/startup/Task > > ….. > > Caused by: java.lang.ClassNotFoundException: > org.apache.synapse.startup.Task > > …. > > > > What shold I do with my jar and also the two auto generated jars? > > > > Thanks in advance > > Kriangyut > > > _______________________________________________ > Esb-java-user mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user _______________________________________________ Esb-java-user mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
