Error while installing odl-restconf on master


Faseela K <faseela.k@...>
 

+odl-parent

 

We see this error only after karaf4 migration. And it works on some of the setups, but fails in some.

Since the log says ClassNotFoundException, is this some dependency ordering problem?

 

Thanks,

Faseela

 

From: Faseela K
Sent: Thursday, November 16, 2017 11:22 PM
To: 'aaa-dev@...' <aaa-dev@...>
Subject: Error while installing odl-restconf on master

 

Hello aaa-dev,

    I am trying to install a feature defined in netvirt, which has a dependency on odl-restconf.

    My bundle dependencies are not getting resolved properly, and hit the below issue, would like to know whether there was something in recent past which got fixed in this area.

    I do get jetty related error in karaf.logs.

 

    opendaylight-user@root>bundle:diag

org.opendaylight.aaa.aaa-shiro (175)

------------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.osgi.service.http.HttpService)

 

 

MD SAL Restconf Connector (294)

-------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.opendaylight.aaa.api.AAAService)

 

ERROR in karaf log

 

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Trying to lock /opt/sdnc/opendaylight/lock

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Lock acquired

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2017-11-16 14:48:03,717 | ERROR | onfig-1-thread-1 | JettyServerImpl                  | 405 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_141]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:151)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:413)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_141]

        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)

        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)

        ... 16 more

2017-11-16 14:48:03,734 | ERROR | onfig-1-thread-1 | Activator                        | 407 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Unable to start pax web server: Exception while starting Jetty

java.lang.RuntimeException: Exception while starting Jetty

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:188)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

 

    

Thanks,

Faseela


Faseela K <faseela.k@...>
 

Hello aaa-dev,

    I am trying to install a feature defined in netvirt, which has a dependency on odl-restconf.

    My bundle dependencies are not getting resolved properly, and hit the below issue, would like to know whether there was something in recent past which got fixed in this area.

    I do get jetty related error in karaf.logs.

 

    opendaylight-user@root>bundle:diag

org.opendaylight.aaa.aaa-shiro (175)

------------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.osgi.service.http.HttpService)

 

 

MD SAL Restconf Connector (294)

-------------------------------

Status: GracePeriod

Blueprint

11/16/17 11:35 AM

Missing dependencies:

(objectClass=org.opendaylight.aaa.api.AAAService)

 

ERROR in karaf log

 

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Trying to lock /opt/sdnc/opendaylight/lock

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.lock.SimpleFileLock lock

INFO: Lock acquired

Nov 16, 2017 2:44:28 PM org.apache.karaf.main.Main$KarafLockCallback lockAquired

INFO: Lock acquired. Setting startlevel to 100

2017-11-16 14:48:03,717 | ERROR | onfig-1-thread-1 | JettyServerImpl                  | 405 - org.ops4j.pax.web.pax-web-jetty - 4.3.0 | Exception while starting Jetty

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

        at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_141]

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:151)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector cannot be found by org.ops4j.pax.web.pax-web-jetty_4.3.0

        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:413)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)

        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)

        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_141]

        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:364)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)

        at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)

        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)

        ... 16 more

2017-11-16 14:48:03,734 | ERROR | onfig-1-thread-1 | Activator                        | 407 - org.ops4j.pax.web.pax-web-runtime - 4.3.0 | Unable to start pax web server: Exception while starting Jetty

java.lang.RuntimeException: Exception while starting Jetty

        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:188)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:415)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:71)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:707)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:87)[405:org.ops4j.pax.web.pax-web-jetty:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:353)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:295)[407:org.ops4j.pax.web.pax-web-runtime:4.3.0]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_141]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_141]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_141]

        at java.lang.Thread.run(Thread.java:748)[:1.8.0_141]

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_141]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_141]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_141]

 

    

Thanks,

Faseela