Hi Chiranga, please find the link to source of the custom event publisher project.
https://drive.google.com/file/d/0BwqZCw5oc2rwb013Q2hwRTdEY0U/view?usp=sharing I can run it in Eclipse and it shows the desired output [ Hello World Before!! Registered Factory Registered Service Hello World AFter!! 3 is the id I get when I do ss in the osgi console However, when I deploy it to WSO2 DAS in the dropins folder, it shows no messages . When I do "start 3" ,it prints the following error message gogo: BundleException: The bundle "CustomEventPublisher_1.0.0.201707211505 [3]" could not be resolved. Reason: Missing Constraint: Import-Package: org.osgi.service.component; version="1.2.2" This problem did not occur earlier and I seem to have messed up the configuration of the project somehow. Previously, I used to get a listing of registered services, on doing "b 3" I will try to fix this issue , but am sending the code in the mean time Sincerely, Sagar On Fri, Jul 21, 2017 at 1:53 PM, Sagar Kapadia <ks197...@gmail.com> wrote: > Hi Chiranga, > I am using wso2das-3.1.0 > Sagar > > > On Fri, Jul 21, 2017 at 10:36 AM, Chiranga Alwis <chira...@wso2.com> > wrote: > >> Hi Sagar, >> >> can you please specify the WSO2 Data Analytics Server version you are >> using, as well? >> >> On Thu, Jul 20, 2017 at 11:00 PM, Chiranga Alwis <chira...@wso2.com> >> wrote: >> >>> Hi Sagar, >>> >>> it would be helpful if you could share the code mentioned in part a. of >>> your question. >>> >>> On Thu, Jul 20, 2017 at 1:02 PM, Chandana Napagoda <chand...@wso2.com> >>> wrote: >>> >>>> +Chiranga >>>> >>>> On Thu, Jul 20, 2017 at 11:39 AM, Sagar Kapadia <ks197...@gmail.com> >>>> wrote: >>>> >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: Sagar Kapadia <ks197...@gmail.com> >>>>> Date: Wed, Jul 19, 2017 at 5:05 PM >>>>> Subject: Possible Bug Reports >>>>> To: dev-requ...@wso2.org, ash...@avinashi.com, >>>>> sa...@cloudnineconsulting.in >>>>> >>>>> >>>>> Hi, >>>>> a. Custom OSGI components are not recognized. >>>>> I created a custom event publisher and copied the jar to dropins >>>>> folder. The start method of the Activator class was called. But the >>>>> activate method was never called. I can share the code if required >>>>> This issue has been reported by someone else previously. >>>>> https://wso2.org/jira/browse/CARBON-12728 >>>>> >>>>> I have updated to latest version using WUM. >>>>> >>>>> b. The documentation of sample to create a custom event publisher is >>>>> out of date. The classes have been replaced by interfaces and vice versa >>>>> in >>>>> the present version of the library >>>>> >>>>> c. Console doesnt show up in windows 7 , similar to this question on >>>>> SO, which hasnt been >>>>> answered yet >>>>> >>>>> https://stackoverflow.com/questions/43608516/new-with-wso2-das >>>>> d. The Http Publisher writes events to the Trace, but does not >>>>> actually do a POST. The configuration is as below >>>>> <?xml version="1.0" encoding="UTF-8"?> >>>>> <eventPublisher name="RequestBinPublihser2" statistics="disable" >>>>> trace="enable" xmlns="http://wso2.org/carbon/eventpublisher"> >>>>> <from streamName="TwitterEventStream" version="1.0.0"/> >>>>> <mapping customMapping="disable" type="json"/> >>>>> <to eventAdapterType="http"> >>>>> <!-- >>>>> <property name="http.proxy.host">127.0.0.1</property> >>>>> <property name="http.proxy.port">8888</property> >>>>> --> >>>>> <property name="http.client.method">HttpPost</property> >>>>> <property name="http.url">https://requestb.in/1atd4211</property> >>>>> </to> >>>>> </eventPublisher> >>>>> and traces are >>>>> 16:51:26,157 [-] [Grizzly(2)] INFO EVENT_TRACE_LOGGER TenantId : >>>>> -1234, Event Publisher : RequestBinPublihser2, after processing >>>>> {"event":{"metaData":{"payload":"RT @WernWatt: Net terug van >>>>> #bzacongres The future of firefighting #SmartCity #WearableTechnology >>>>> #verdomdInteressant https://t.co/6AqhU6r3…","topic >>>>> ":"tweets/gesucfator1978"},"payloadData":{"id":887633471555993600,"text":"RT >>>>> @WernWatt: Net terug van #bzacongres The future of firefighting #SmartCity >>>>> #WearableTechnology #verdomdInteressant https://t.co/6AqhU6r3…","creat >>>>> ed_on":null}}} >>>>> >>>>> >>>>> >>>>> I would have filed a bug report, but have forgotten my password and am >>>>> unable to login. >>>>> I sent a mail regarding this, but have not received any reply yet. >>>>> Please confirm whether this bug exists. >>>>> >>>>> We are evaluating WSO2 Data Analytics Server, and need to know if >>>>> there is a bug, or we should be doing something differently. >>>>> Sincerely, >>>>> Sagar R. Kapadia >>>>> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Chandana Napagoda* >>>> Associate Technical Lead >>>> WSO2 Inc. - http://wso2.org >>>> >>>> *Email : chand...@wso2.com <chand...@wso2.com>**Mobile : >>>> +94718169299 <+94%2071%20816%209299>* >>>> >>>> *Blog : http://cnapagoda.blogspot.com >>>> <http://cnapagoda.blogspot.com> | http://chandana.napagoda.com >>>> <http://chandana.napagoda.com>* >>>> >>>> *Linkedin : http://www.linkedin.com/in/chandananapagoda >>>> <http://www.linkedin.com/in/chandananapagoda>* >>>> >>>> >>> >>> >>> -- >>> Yours sincerely, >>> >>> *Chiranga Alwis* >>> Software Engineer | WSO2 >>> >>> *Mobile : *+94775930497 <+94%2077%20593%200497> >>> *Email: *chirangaal...@gmail.com >>> *LinkedIn: *https://lk.linkedin.com/in/chiranga-alwis-391342a9 >>> >>> <http://wso2.com/signature> >>> >> >> >> >> -- >> Yours sincerely, >> >> *Chiranga Alwis* >> Software Engineer | WSO2 >> >> *Mobile : *+94775930497 >> *Email: *chirangaal...@gmail.com >> *LinkedIn: *https://lk.linkedin.com/in/chiranga-alwis-391342a9 >> >> <http://wso2.com/signature> >> > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev