{"action":"created","issue":{"url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5","labels_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5/comments","events_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5/events","html_url":"https://github.com/Data-to-Insight-Center/komadu/issues/5","id":98797818,"number":5,"title":"Running Komadu on Mesos cluster: Web service or Standalone server?","user":{"login":"sid-thakur","id":5922613,"avatar_url":"https://avatars.githubusercontent.com/u/5922613?v=3","gravatar_id":"","url":"https://api.github.com/users/sid-thakur","html_url":"https://github.com/sid-thakur","followers_url":"https://api.github.com/users/sid-thakur/followers","following_url":"https://api.github.com/users/sid-thakur/following{/other_user}","gists_url":"https://api.github.com/users/sid-thakur/gists{/gist_id}","starred_url":"https://api.github.com/users/sid-thakur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sid-thakur/subscriptions","organizations_url":"https://api.github.com/users/sid-thakur/orgs","repos_url":"https://api.github.com/users/sid-thakur/repos","events_url":"https://api.github.com/users/sid-thakur/events{/privacy}","received_events_url":"https://api.github.com/users/sid-thakur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":60,"created_at":"2015-08-03T17:24:22Z","updated_at":"2015-11-05T15:48:28Z","closed_at":null,"body":"Hi @isurues \r\nWe have an Apache Mesos cluster within which we'd like to deploy Komadu. Ideally, we'd like komadu to run in its own VM on the cluster and be able to receive event-style notifications from a web app and other process running on another, production-level, VM. Essentially, we'd like to be able to send prov notification events from other VMs to komdu (running in its own VM).\r\n\r\nWhat I'd like to know is which of the two methods of running Komadu, web service or standalone server, would be suitable for our scenario. Please also clarify what accommodations, if any, would we need to make to enable Komadu to function within this multi-VM envrionment.\r\n\r\nThanks,\r\nSid\r\n---"},"comment":{"url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/comments/154099074","html_url":"https://github.com/Data-to-Insight-Center/komadu/issues/5#issuecomment-154099074","issue_url":"https://api.github.com/repos/Data-to-Insight-Center/komadu/issues/5","id":154099074,"user":{"login":"sid-thakur","id":5922613,"avatar_url":"https://avatars.githubusercontent.com/u/5922613?v=3","gravatar_id":"","url":"https://api.github.com/users/sid-thakur","html_url":"https://github.com/sid-thakur","followers_url":"https://api.github.com/users/sid-thakur/followers","following_url":"https://api.github.com/users/sid-thakur/following{/other_user}","gists_url":"https://api.github.com/users/sid-thakur/gists{/gist_id}","starred_url":"https://api.github.com/users/sid-thakur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sid-thakur/subscriptions","organizations_url":"https://api.github.com/users/sid-thakur/orgs","repos_url":"https://api.github.com/users/sid-thakur/repos","events_url":"https://api.github.com/users/sid-thakur/events{/privacy}","received_events_url":"https://api.github.com/users/sid-thakur/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T15:48:27Z","updated_at":"2015-11-05T15:48:27Z","body":"Hi @gabrielzhouquan ,\r\nI am seeing following issue in Komadu log file when I try to send a notification event. I used the query.js code you posted above and modified it to send a notification. Any clues would be  helpful. It seems to be due to XML parsing, but I did not see this earlier. \r\n\r\nDoes it have to do with Komadu XSD schema?\r\n\r\nThanks.\r\n\r\n```\r\n[cluster]$ more komadu.log \r\n05 Nov 2015 10:42:11,603 [main] INFO  edu.indiana.d2i.komadu.messaging.MessageDaemons  -Starting Notification Deamon [0]  for receiving notification\r\ns from Client.\r\n05 Nov 2015 10:42:11,606 [main] INFO  edu.indiana.d2i.komadu.messaging.MessageDaemons  -Notification Deamon [0] Started.\r\n05 Nov 2015 10:42:11,606 [main] INFO  edu.indiana.d2i.komadu.messaging.MessageDaemons  -Starting Query Deamon [0] for receiving queries from Client.\r\n05 Nov 2015 10:42:11,606 [main] INFO  edu.indiana.d2i.komadu.messaging.MessageDaemons  -Query Deamon [0] Started.\r\n05 Nov 2015 10:42:11,608 [Thread-0] INFO  edu.indiana.d2i.komadu.messaging.NotificationReceiverRunnable  -[Komadu server: Listening to Messaging Sys\r\ntem]\r\n05 Nov 2015 10:42:11,610 [Thread-1] INFO  edu.indiana.d2i.komadu.messaging.QueryReceiverRunnable  -[Komadu server: Listening Queries from Messaging \r\nSystem]\r\n05 Nov 2015 10:42:18,418 [Thread-0] INFO  edu.indiana.d2i.komadu.messaging.NotificationReceiverRunnable  -[Komadu server: One Message received]\r\n02c497af-0314-e0df-0e5a-a4cd50adba80#<kom:addActivityEntityRelationship xmlns:kom=\"http://komadu.d2i.indiana.edu\">\r\n <kom:activity>\r\n   <kom:serviceInformation>\r\n     <kom:workflowID>workflow1_58</kom:workflowID>\r\n     <kom:workflowNodeID>node1</kom:workflowNodeID>\r\n     <kom:timestep>20</kom:timestep>\r\n     <kom:attributes>\r\n       <kom:attribute>\r\n         <kom:property>domain</kom:property>\r\n         <kom:value>scientific</kom:value>\r\n       </kom:attribute>\r\n     </kom:attributes>\r\n     <kom:instanceOf>\r\n       <kom:instanceOfID>slosh_workflow</kom:instanceOfID>\r\n       <kom:version>1.0.0</kom:version>\r\n       <kom:creationTime>2014-05-19T13:30:14.729-04:00</kom:creationTime>\r\n     </kom:instanceOf>\r\n     <kom:serviceID>service1_58</kom:serviceID>\r\n   </kom:serviceInformation>\r\n   <kom:location>Azure</kom:location>\r\n </kom:activity>\r\n <kom:entity>\r\n   <kom:file>\r\n     <kom:fileURI>file://foo/bar/data1.txt_58</kom:fileURI>\r\n     <kom:ownerDN>jerry112</kom:ownerDN>\r\n     <kom:createDate>2014-05-19T13:30:14.954-04:00</kom:createDate>\r\n     <kom:size>500</kom:size>\r\n     <kom:md5sum>dummy_md5_data1.txt_58</kom:md5sum>\r\n     <kom:fileName>data1.txt_58</kom:fileName>\r\n   </kom:file>\r\n </kom:entity>\r\n <kom:usage>\r\n   <kom:activityID>service1_58</kom:activityID>\r\n   <kom:entityID>file://foo/bar/data1.txt_58</kom:entityID>\r\n   <kom:timestamp>2014-05-19T13:30:14.963-04:00</kom:timestamp>\r\n   <kom:attributes>\r\n     <kom:attribute>\r\n       <kom:property>total_time</kom:property>\r\n       <kom:value>0.53h</kom:value>\r\n     </kom:attribute>\r\n   </kom:attributes>\r\n   <kom:location>Location2</kom:location>\r\n </kom:usage>\r\n</kom:addActivityEntityRelationship>\r\n\r\n05 Nov 2015 10:42:18,768 [Thread-0] ERROR edu.indiana.d2i.komadu.messaging.NotificationReceiverRunnable  -\r\norg.apache.xmlbeans.XmlException: error: Unexpected element: CDATA\r\n\tat org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)\r\n\tat org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)\r\n\tat org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:690)\r\n\tat org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:677)\r\n\tat org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)\r\n\tat org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:580)\r\n\tat edu.indiana.d2i.komadu.messaging.NotificationReceiverRunnable.run(NotificationReceiverRunnable.java:45)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 1; Unexpected element: CDATA\r\n\tat org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)\r\n\tat org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)\r\n\tat org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)\r\n\t... 7 more\r\n05 Nov 2015 10:42:18,770 [Thread-0] INFO  edu.indiana.d2i.komadu.messaging.NotificationReceiverRunnable  -[Komadu server: Listening to Messaging Sys\r\ntem]\r\n```"}}