Software Defined Networking
1760164 Members
3345 Online
108891 Solutions
New Discussion

Building the SDN development environment?

 
SOLVED
Go to solution
sdnindia
Trusted Contributor

Re: Building the SDN development environment?

Hello Satish,

 

You are trying on windows however the scripts used to install sdk and generate sample app are for Ubuntu Linux.Are you able to install sdk  and generate sample app in Windows?

 

After SDK is installed successfully , required jars are installed in the local maven repository. Then you can generate the sample app using gen-sdn-app script.

 

Please try in Ubuntu Linux OS and let us know if you still face any issue.

 

Thanks,

HP SDN Team

SatishK
Frequent Advisor

Re: Building the SDN development environment?

Hi SDNIndia,

 

Yes I was able build the application succesfully with the above post suggestion.

 

Now I am trying the same in Ubuntu server, where I have installed controller.

 

Satish K

SatishK
Frequent Advisor

Re: Building the SDN development environment?

Hi Experts,

 

 

I am trying to build/install the application framework created, but unfortinately not able to succeed as due to below error.

 

[INFO] --- maven-antrun-plugin:1.3:run (package-app) @ dr-app ---
[INFO] Executing tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] dr-root ............................................ SUCCESS [ 0.503 s]
[INFO] dr-model ........................................... SUCCESS [ 2.800 s]
[INFO] dr-api ............................................. SUCCESS [ 0.749 s]
[INFO] dr-bl .............................................. SUCCESS [ 1.433 s]
[INFO] dr-rs .............................................. SUCCESS [ 5.880 s]
[INFO] dr-ui .............................................. SUCCESS [ 4.972 s]
[INFO] dr-app ............................................. FAILURE [ 0.064 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.093 s
[INFO] Finished at: 2015-01-12T19:49:07+05:30
[INFO] Final Memory: 16M/48M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (package-app) on project dr-app: An Ant BuildException has occured: C:\home\sdn\.m2\repository\com\mp\dr not found. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dr-app

Satish.Khandre@WKSBAN04FFD188 ~/dev/sdn-apps/dynamic-routing/dr-root
$ mvn install -rf :dr-app
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dr-app 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-scr-plugin:1.13.0:scr (generate-scr-srcdescriptor) @ dr-app ---
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (package-app) @ dr-app ---
[INFO] Executing tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.650 s
[INFO] Finished at: 2015-01-12T19:49:43+05:30
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (package-app) on project dr-app: An Ant BuildException has occured: C:\home\sdn\.m2\repository\com\mp\dr not found. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Satish.Khandre@WKSBAN04FFD188 ~/dev/sdn-apps/dynamic-routing/dr-root

 

Tried to resolve the dependency, and can see that the said dr folder and sub folders are also present.

All folders expect dr-app is not present.

 

Request to please help in resolving this .

 

Thank you in advance.. :-) 

SatishK
Frequent Advisor

Re: Building the SDN development environment?

Hi All,

 

The build error got resolved by creating a dummy floder structure what it was expecting in .m2 directory.

 

Thanks for the same. 

 

Regards,

Satish K

SatishK
Frequent Advisor

Re: Building the SDN development environment?

Hi SDN Team,

 

I am trying to build the Health monitor application and not able build some modules, getting below error.

 

Please note that I can able to build the same for eclipse, "mvn eclipse:eclipse" and also I have created a template application and that too is building fine.

 

For this hm it looks like it needs some of the files from controller, can you please let me know how can I get those or resolve this below error.

 

Thanks in ADVANCE,,

 

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] hm-root ............................................ SUCCESS [ 0.785 s]
[INFO] hm-model ........................................... SUCCESS [ 3.201 s]
[INFO] hm-api ............................................. SUCCESS [ 0.609 s]
[INFO] hm-dao-model ....................................... SUCCESS [ 49.414 s]
[INFO] hm-dao-api ......................................... SUCCESS [ 1.374 s]
[INFO] hm-dao ............................................. SUCCESS [ 40.796 s]
[INFO] hm-bl .............................................. FAILURE [ 1.802 s]
[INFO] hm-rs .............................................. SKIPPED
[INFO] hm-ui .............................................. SKIPPED
[INFO] hm-app ............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:38 min
[INFO] Finished at: 2015-01-12T18:09:14+05:30
[INFO] Final Memory: 30M/90M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project hm-bl: Compilation failure: Compilation failure:
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[42,24] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[43,24] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[44,24] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[45,25] error: package com.hp.sdn.nodemgr does not exist
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[46,26] error: package com.hp.sdn.topology does not exist
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[79,21] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[82,21] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[202,29] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[202,16] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\OpenFlowMonitorComponent.java:[180,12] error: OpenFlowMonitorComponent.PacketListenerImpl is not abstract and does not override abstract method event(MessageContext) in SequencedPacketListener
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\OpenFlowMonitorComponent.java:[183,23] error: event(MessageContext) in OpenFlowMonitorComponent.PacketListenerImpl cannot implement event(MessageContext) in SequencedPacketListener
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\OpenFlowMonitorComponent.java:[182,8] error: method does not override or implement a method from a supertype
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[130,12] error: L7InspectorComponent.L7InspectorImpl is not abstract and does not override abstract method event(MessageContext) in SequencedPacketListener
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[133,23] error: event(MessageContext) in L7InspectorComponent.L7InspectorImpl cannot implement event(MessageContext) in SequencedPacketListener
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[132,8] error: method does not override or implement a method from a supertype
[ERROR] \cygwin\home\Satish.Khandre\dev\sdn-apps\health-monitor\hm-bl\src\main\java\com\hp\hm\impl\L7InspectorComponent.java:[173,12] error: cannot find symbol
[ERROR] \cygwin\home\Satish.Khandre

 

 

Regards,

 

Satish K

SatishK
Frequent Advisor

Re: Building the SDN development environment?

Hi,

 

It looks like some jar files are missing in the latest version of sdk.

 

Can you please let me know where can I find the jar files mainly, 

     

      sdn-adm-root-2.4.5.jar , 

      sdn-common-root-2.4.5.jar ,  

      sdn-of-root-2.4.5.jar , 

 

Regards,

 

Satish K