Thank you very much. Finally i can create the task and that error don't occure again.
-----Original Message----- From: [email protected] on behalf of Javier L?pez del Castillo Caymares Sent: ส. 24/7/2553 0:03 To: [email protected] Subject: Re: [esb-java-user] where should i put my own task jar first be sure you have delete the jar file corresponding to the task of the dropin folder. The jar file in the dropin folder will be generated by the esb, you only have to copy the jar file to the lib folder, try again doing this and if you get errors again, please, copy the error message and send it to me. best regards. jlcc On Fri, 2010-07-23 at 23:28 +0700, KRIANGYUT WANGJITMAN wrote: > Thank you jlcc > > i've put my jar to the folder you suggested and it's work. > The esb can load my class already > > but i met new error. > > when i create a new task, there is an error log said (not an exact > words) > "Deploy task failed, the task has same name" > and my newly created task gone after restart the esb. > This is my first task i've created so there must be no prior task with > the same name. > > do i miss any step? what should i do? please tell me if you want any > further information. > > Actually, i met this problem yesterday. > after i tried to create new task, get an error and restart esb for > 5-10 times, the problem was gone. > i can create task to inject message like the sample. > i still don't know why this problem happen and why it's gone. > > any suggestion? > > should i create a new thread? > > > >-----Original Message----- > >From: [email protected] on behalf of Javier L?pez del > Castillo Caymares > >Sent: ศ. 23/7/2553 22:34 > >To: [email protected] > >Subject: Re: [esb-java-user] where should i put my own task jar > > > >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 > > > > _______________________________________________ > 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
_______________________________________________ Esb-java-user mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
