Ask Your Question
0

Feature install not working

asked 2016-07-12 13:09:31 -0700

ahuja gravatar image

Hi,

I have cloned and successfully built the project: github.com/opendaylight/integration-distribution

I can see the all the features but I am not able to install any feature. Any suggestions?

here is the error:

> opendaylight-user@root>feature:list |
> grep restconf odl-restconf-all        
> | 1.4.0-SNAPSHOT   |           |
> odl-controller-1.4.0-SNAPSHOT         
> | OpenDaylight :: Restconf :: All
> odl-restconf                          
> | 1.4.0-SNAPSHOT   |           |
> odl-controller-1.4.0-SNAPSHOT         
> | OpenDaylight :: Restconf
> odl-restconf-noauth                   
> | 1.4.0-SNAPSHOT   |           |
> odl-controller-1.4.0-SNAPSHOT         
> | OpenDaylight :: Restconf
> opendaylight-user@root>feature:install
> odl-restconf-all Error executing
> command: Error resolving artifact
> org.apache.cxf.karaf:apache-cxf:xml:features:3.0.2:
> Could not transfer artifact
> org.apache.cxf.karaf:apache-cxf:xml:features:3.0.2
> from/to central
> (http://repo1.maven.org/maven2/):
> repo1.maven.org: unknown error
> opendaylight-user@root>

even the log:display is not working

> opendaylight-user@root>log:display
> Command not found: log:display
> opendaylight-user@root>
edit retag flag offensive close merge delete

Comments

It seems karaf command also not working. So better build again , launch ./karaf clean then try . (checkout stable/beryllium ; Hope if we take stable version it wont have any problem)

karthik330 ( 2016-07-12 22:47:39 -0700 )edit

also, you can grab a released distro like this: https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.4.2-Beryllium-SR2/distribution-karaf-0.4.2-Beryllium-SR2.zip see if you have problems with that in your environment just to double check.

jamoluhrsen ( 2016-07-12 23:00:29 -0700 )edit

Hi, Still its not working. I changed the files in the directory ./integration-distribution/distribution-karaf/target/assembly with the above downloaded files. Rebuilt it but still the commands didnt work. Thnx.

ahuja ( 2016-07-14 07:49:51 -0700 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-07-20 00:53:16 -0700

pande.gaurav gravatar image

Hi,

I think you need to be connected online while loading the karaf, as first time it downloads some essentials features(like odl-aaa) as you can see in the logs that it is trying to access ( http://repo1.maven.org/maven2/ ). so if you are in a proxy network, than add your proxy settings in settings.xml or if not in a proxy than direct connection to internet will resolve your problem.

hope that helps.

edit flag offensive delete publish link more

Comments

This worked. Thanks Gaurav. However I have one more issue wrt the same project mentioned as comment.

ahuja ( 2016-07-20 10:39:07 -0700 )edit
0

answered 2016-07-20 09:35:11 -0700

jamoluhrsen gravatar image

when you build integration-distribution, the result should be a full distribution .zip file inside the distribution-karaf/target/ folder.

you can then unzip that file, and use ./bin/karaf to start it. There shouldn't be any external resources being pulled in in this step. All the external resources would have been pulled in when you built the integration-distribution project.

can you confirm that you have tried with the release distro (Beryllium SR2) from my previous reply and still saw these troubles?

edit flag offensive delete publish link more

Comments

Hi jamoluhrsen, I did replace the existing distro with latest Beryllium distro but that was of no help.

ahuja ( 2016-07-20 11:17:50 -0700 )edit
0

answered 2016-07-20 10:43:09 -0700

ahuja gravatar image

After including proxy in settings.xml file, it worked. However, its working on one VM and not on another. The error on the other VM is

> [DEBUG] Dependency collection stats:
> {ConflictMarker.analyzeTime=7,
> ConflictMarker.markTime=6,
> ConflictMarker.nodeCount=8631,
> ConflictIdSorter.graphTime=3,
> ConflictIdSorter.topsortTime=3,
> ConflictIdSorter.conflictIdCount=1336,
> ConflictIdSorter.conflictIdCycleCount=1,
> ConflictResolver.totalTime=448,
> ConflictResolver.conflictItemCount=7913,
> DefaultDependencyCollector.collectTime=85,
> DefaultDependencyCollector.transformTime=467}
> [severity=FATAL_ERROR,message=unexpected
> element
> (uri:"http://karaf.apache.org/xmlns/features/v1.2.1",
> local:"html"). Expected elements are
> <{http://karaf.apache.org/xmlns/features/v1.2.1}features>,locator=[node=null,object=null,url=null,line=1,col=7,offset=-1]]
> [INFO]
> ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
> ------------------------------------------------------------------------ [INFO] Total time: 37.591 s [INFO]
> Finished at: 2016-07-20T11:29:32+00:00
> [INFO] Final Memory: 178M/879M [INFO]
> ------------------------------------------------------------------------ [ERROR] Failed to execute goal
> org.opendaylight.odlparent:karaf-plugin:1.7.0-SNAPSHOT:populate-local-repo
> (populate-local-repo) on project
> distribution-karaf: Failed to execute:
> javax.xml.bind.UnmarshalException:
> unexpected element
> (uri:"http://karaf.apache.org/xmlns/features/v1.2.1",
> local:"html"). Expected elements are
> <{http://karaf.apache.org/xmlns/features/v1.2.1}features>
> -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException:
> Failed to execute goal
> org.opendaylight.odlparent:karaf-plugin:1.7.0-SNAPSHOT:populate-local-repo
> (populate-local-repo) on project
> distribution-karaf: Failed to execute
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>         at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by:
> org.apache.maven.plugin.MojoExecutionException:
> Failed to execute
>         at org.opendaylight.odlparent.PopulateLocalRepoMojo.execute(PopulateLocalRepoMojo.java:133)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>         ... 20 more Caused by: java.lang.RuntimeException:
> javax.xml.bind.UnmarshalException:
> unexpected element
> (uri:"http://karaf.apache.org/xmlns/features/v1.2.1",
> local:"html"). Expected elements are
> <{http://karaf.apache.org/xmlns/features/v1.2.1}features>
>         at org ...
(more)
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-07-12 13:09:31 -0700

Seen: 545 times

Last updated: Jul 20 '16