<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with HP SDN workshop written by Tomas Kubica in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6393237#M163</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad you have decided to learn programming for HP VAN SDN Controller !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that document you are refering to is not public one and has been designed for one specific workshop. There are official learning materials including ExpertONE training that are better. Feel free to post questions here, just bear in mind others do not look into the same text :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now - not sure why logging does not work for you. I would suggest to check whether your import include logger from&lt;/P&gt;&lt;P&gt;import org.slf4j.Logger;&lt;/P&gt;&lt;P&gt;import org.slf4j.LoggerFactory;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since there might be more implementations with the same name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also try to get reference to logger globally in main class:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private final Logger logger = LoggerFactory.getLogger(yourappname.class);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck with developing apps for HP controller !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2014 07:34:57 GMT</pubDate>
    <dc:creator>Tomas_Kubica</dc:creator>
    <dc:date>2014-02-27T07:34:57Z</dc:date>
    <item>
      <title>Problem with HP SDN workshop written by Tomas Kubica</title>
      <link>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6392049#M160</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just received the "HP SDN developer workshop" document and have a problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've first generate the sceleton application with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ ./gen-sdn-app&amp;nbsp;&amp;nbsp;&amp;nbsp; /Users/admin/Documents/DataSerge/DEVELOPEMENT/HP/sdn-apps/myfirstsdnapp myfirst unil MyFirst "Example HP"&amp;nbsp; "unil-ci" "ma premiere application" myfirst&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I've import the project to eclispe:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ mvn eclipse:eclipse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I've &amp;nbsp;add the following into the &amp;nbsp;MyFirstManager class:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;@Activate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;void&lt;/STRONG&gt;&amp;nbsp;activate() {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;logger.info("MYFIRST: Hey, seems like our app is being activated !");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I've compile the project (mvn clean install) and installed it on the HP VAN controler without any problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the deployement of the application, I've examinated (like mentioned into the tuto) the Virgo log file to see if my log will be present:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tail -f /opt/sdn/virgo/serviceability/logs/log.log | grep MYFIRST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"[2014-02-26 16:11:28.198] INFO &amp;nbsp;start-signalling-9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.eclipse.virgo.medic.eventlog.default &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DE0005I Started plan 'Example HP' version '1.0.0.SNAPSHOT'. "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but no message that looks like (as mentioned in the document):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2013-12-18 01:36:35.053] WARN&amp;nbsp; t Resolve Thread (Bundle 81) com.hpworkshop.myfirst.impl.MyFirstManager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DE0005I MYFIRST: Hey, seems like our app is being activated !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seams that the methode "activate" is note executed ?&lt;/P&gt;&lt;P&gt;In the GUI of Virgo, I can see my application deployed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've continued the tuto but I've never see message in relation with the following instruction :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;logger.warn("MYFIRST: Binding controller service");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;logger.warn("MYFIRST:&amp;nbsp; DataPath event " + event.toString());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Do you see the problem ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 15:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6392049#M160</guid>
      <dc:creator>sbotkine</dc:creator>
      <dc:date>2014-02-26T15:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HP SDN workshop written by Tomas Kubica</title>
      <link>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6393221#M162</link>
      <description>&lt;P&gt;After some investigation, I know now that &amp;nbsp;my acticate methode works, thanks to my alertService.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Activate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;void&lt;/SPAN&gt; activate() {&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;logger&lt;/SPAN&gt;&lt;SPAN&gt;.info(&lt;/SPAN&gt;"MYFIRST: Hey, seems like our app is being activated !"&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;alertService&lt;/SPAN&gt;&lt;SPAN&gt;.post(Severity.&lt;/SPAN&gt;&lt;SPAN&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;alertTopic&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;"MYFIRST"&lt;SPAN&gt;, &lt;/SPAN&gt;"SERGE: ACTIVATE EXECUTE"&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;alertServie.post works: I have a message into the controler ALERT GUI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;logger.info &amp;nbsp;doesn't works: &amp;nbsp;I have no message into "/opt/sdn/virgo/serviceability/logs/log.log".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An idea ?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:21:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6393221#M162</guid>
      <dc:creator>sbotkine</dc:creator>
      <dc:date>2014-02-27T07:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HP SDN workshop written by Tomas Kubica</title>
      <link>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6393237#M163</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad you have decided to learn programming for HP VAN SDN Controller !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that document you are refering to is not public one and has been designed for one specific workshop. There are official learning materials including ExpertONE training that are better. Feel free to post questions here, just bear in mind others do not look into the same text :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now - not sure why logging does not work for you. I would suggest to check whether your import include logger from&lt;/P&gt;&lt;P&gt;import org.slf4j.Logger;&lt;/P&gt;&lt;P&gt;import org.slf4j.LoggerFactory;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;since there might be more implementations with the same name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also try to get reference to logger globally in main class:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;private final Logger logger = LoggerFactory.getLogger(yourappname.class);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck with developing apps for HP controller !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:34:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6393237#M163</guid>
      <dc:creator>Tomas_Kubica</dc:creator>
      <dc:date>2014-02-27T07:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HP SDN workshop written by Tomas Kubica</title>
      <link>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6403296#M181</link>
      <description>&lt;P&gt;Hello sbotkine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We hope the response from Tomas answers your query.&lt;/P&gt;&lt;P&gt;Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you feel your query is resolved please let us know my marking the post as an “accepted solution”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 10:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/problem-with-hp-sdn-workshop-written-by-tomas-kubica/m-p/6403296#M181</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-03-07T10:12:38Z</dc:date>
    </item>
  </channel>
</rss>

