Ask Your Question
0

version and dependency

asked 2016-03-31 22:21:59 -0700

kimguji gravatar image

updated 2016-03-31 23:30:00 -0700

Hi all, I'm new to OpenDaylight and I wanna use SNMP4SDN or Netconf module to control my switches. To control my devices as I want, I need to modify modules little bit.

At first, I tried with beryllium version, but it didn't work as it specified... I tried, lithium and helium versions(built from source 'integration') but, both of them didn't work well, and build is hard.

So, I gave up integration version and tried to install controller, dlux, snmp4sdn, and netconf. But still have various problems.

Beryllium version:
controller build ok, but karaf execution doesn't work

Lithium version:
controller build ok, dlux build failed, snmp4sdn build ok

helium version:
controller build ok, dlux build build failed.

Building dlux always stuck.

[INFO] DLUX - DLUX Static Web ............................. FAILURE [ 23.407 s]
[INFO] loader ............................................. SKIPPED
[INFO] loader.implementation .............................. SKIPPED
[INFO] DLUX - Features .................................... SKIPPED
[INFO] distribution-dlux .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.761 s
[INFO] Finished at: 2016-04-01T14:13:34+09:00
[INFO] Final Memory: 41M/431M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.20:bower (bower) on project dlux-web:
Failed to run task: 'bower install' failed. (error code 1) -> [Help 1]

If anyone knows solution, please help me.
Also, let me know successful composition of controller, dlux, and netconf(or snmp4sdn) versions, if somebody knows.

Thanks in advance.

[added] I changed version of helium to helium-SR3.
Building dlux, this error occurs.

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:04 min
[INFO] Finished at: 2016-04-01T15:07:42+09:00
[INFO] Final Memory: 37M/431M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.20:npm (npm) on project dlux-web:
Failed to run task: 'npm install --color=false' failed. (error code 1) -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

I alreday changed /.m2/settings.xml and installed prerequisite for DLUX(node js, and so on as specified in wiki).

Beryllium version controller: Built successfully, but execution error occurs. ./controller/karaf/opendaylight-karaf/target/assembly/bin/karaf no response.... I checked log/karaf.log
Mar 28, 2016 4:33:23 PM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Mar 28, 2016 4:33:23 PM org.apache.karaf.main.Main main
SEVERE: Could not launch framework
java.lang.RuntimeException: Error installing bundle listed in startup.properties with url: wrap:mvn:javax.servlet.jsp/jsp-api/2.1 and startlevel: 30
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392)
at org.apache.karaf.main.Main.launch(Main.java:245)
at org.apache.karaf.main.Main.main(Main.java:167)
Caused by: java.lang.RuntimeException: Could not resolve wrap:mvn:javax.servlet.jsp/jsp-api/2.1
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:384)
... 2 more

It almost kills me... each version has different problem...

edit retag flag offensive close merge delete

Comments

Edit the startup.properties file in system directory karaf/opendaylight-karaf/target/assembly/etc/startup.properties to remove wrap\: at the beginning of line containing javax.servlet.jsp/jsp-api/2.1. Then try starting . It should work. I tried this and it did for me

KushalKumar ( 2016-06-02 02:26:44 -0700 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-04-19 21:29:59 -0700

jiayinhaoran gravatar image

updated 2016-04-19 21:41:28 -0700

I have the same question with you.When I run './karaf' first time, the error log is the part before *,then app automatically exit and when I run it at the second time, the error log is the part below * . this is my installation environment: ubuntu14.04.1 desktop; odl controller-stable-beryllium.zip soure code from https://github.com/opendaylight

mvn -v

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0 Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00) Maven home: /root/apache-maven-3.3.9 Java version: 1.8.077, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: enUS, platform encoding: UTF-8 OS name: "linux", version: "3.13.0-32-generic", arch: "amd64", family: "unix"

`# cat karaf.log Apr 20, 2016 12:07:42 PM org.apache.karaf.main.Main launch INFO: Installing and starting initial bundles Apr 20, 2016 12:07:43 PM org.apache.karaf.main.Main main SEVERE: Could not launch framework java.lang.RuntimeException: Error installing bundle listed in startup.properties with url: wrap:mvn:javax.servlet.jsp/jsp-api/2.1 and startlevel: 30 at org.apache.karaf.main.Main.installAndStartBundles(Main.java:392) at org.apache.karaf.main.Main.launch(Main.java:245) at org.apache.karaf.main.Main.main(Main.java:167) Caused by: java.lang.RuntimeException: Could not resolve wrap:mvn:javax.servlet.jsp/jsp-api/2.1 at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59) at org.apache.karaf.main.Main.installAndStartBundles(Main.java:384) ... 2 more


Apr 20, 2016 12:07:58 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Trying to lock /root/controller-stable-beryllium/karaf/opendaylight-karaf/target/assembly/lock Apr 20, 2016 12:07:58 PM org.apache.karaf.main.lock.SimpleFileLock lock INFO: Lock acquired Apr 20, 2016 12:07:58 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired INFO: Lock acquired. Setting startlevel to 100 `

edit flag offensive delete publish link more
0

answered 2016-04-20 22:36:08 -0700

karthik330 gravatar image

Hi , which module do you want to change? And integration will comes with all required modules. You dont need to build the DLUX project separately unless u need to change DLUX code.Git clone the integration project , and build it. launch karaf , and install the required features. odl-dlux-all will install the Dlux features.

May i know why do you want to build DLUX project?

Thanks, -Karthik

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-03-31 22:21:59 -0700

Seen: 175 times

Last updated: Apr 20 '16