[ 
https://issues.apache.org/jira/browse/KARAF-4484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15234882#comment-15234882
 ] 

Roland Hauser commented on KARAF-4484:
--------------------------------------

Following exception occurs when I add the startupFeatures configuration to our 
pom and start a clean install:

[ERROR] Failed to execute goal 
org.apache.karaf.tooling:karaf-maven-plugin:4.0.4:assembly (default-assembly) 
on project workstation: Unable to build assembly: Unable to resolve root: 
missing requirement [root] osgi.identity; osgi.identity=eventadmin; 
type=karaf.feature; filter:="(&(osgi.identity=eventadmin)(type=karaf.feature))" 
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.karaf.tooling:karaf-maven-plugin:4.0.4:assembly (default-assembly) 
on project workstation: Unable to build assembly
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        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:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        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: Unable to build 
assembly
        at org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:234)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: org.osgi.service.resolver.ResolutionException: Unable to resolve 
root: missing requirement [root] osgi.identity; osgi.identity=eventadmin; 
type=karaf.feature; filter:="(&(osgi.identity=eventadmin)(type=karaf.feature))"
        at 
org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:235)
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:158)
        at 
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)
        at 
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)
        at org.apache.karaf.profile.assembly.Builder.resolve(Builder.java:1214)
        at 
org.apache.karaf.profile.assembly.Builder.startupStage(Builder.java:1002)
        at 
org.apache.karaf.profile.assembly.Builder.doGenerateAssembly(Builder.java:606)
        at 
org.apache.karaf.profile.assembly.Builder.generateAssembly(Builder.java:389)
        at 
org.apache.karaf.tooling.AssemblyMojo.doExecute(AssemblyMojo.java:392)
        at org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:228)
        ... 22 more

> Logging stops working when eventadmin is installed (as bootFeature or from 
> command line)
> ----------------------------------------------------------------------------------------
>
>                 Key: KARAF-4484
>                 URL: https://issues.apache.org/jira/browse/KARAF-4484
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 4.0.4
>            Reporter: Roland Hauser
>            Priority: Critical
>         Attachments: karaf.log, karaf_with_eventadmin.log
>
>
> We build our own Karaf distribution and use therefore the karaf-maven-plugin. 
> When a distribution is build with following configuration, logging works:
> {code}
> <bootFeatures>
> <feature>standard</feature>
> </bootFeatures>
> {code}
> When the eventadmin feature is added to the configuration, logging stops to 
> work:
> {code}
> <bootFeatures>
> <feature>standard</feature>
> <feature>eventadmin</feature>
> </bootFeatures>
> {code}
> I'm pretty sure that other stuff won't work as expected as well, for instance 
> when I want to list all bundles on the console with command bundle:list, an 
> empty list is displayed which cannot be correct:
> {code}
> appsrvadm@root()> bundle:list
> START LEVEL 100 , List Threshold: 50
> ID | State | Lvl | Version | Name
> ---------------------------------
> {code}
> The same happens, when we install the eventadmin feature after start via 
> command line. This might be related to KARAF-3739



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to