Hi Gert,
Thanks a lot for your reply. I Appreciate.
Unfortunatelly, I do have the same error when executing it from command
line.
There is an the additional exception as well, which is :
[DEBUG] Error looking up lifecycle mapping to retrieve optional mojos.
Lifecycle ID: clean. Error: Component descriptor cannot be found in the
component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-unit.
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-unit.
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.execution.MavenSession.lookup(MavenSession.java:125)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findOptionalMojosForLifecycle(DefaultLifecycleExecutor.java:1128)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1016)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:997)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:477)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
thnx
Jamel
Gert Vanthienen wrote:
>
> Jamel,
>
> I just gave this a go from the command line with a new ServiceMix
> 3.3.x installation and cannot reproduce the problem. Could you try
> running it from the command line so we can figure out if it is caused
> by the Eclipse Maven tooling or if there really is a problem with this
> on your machine? Also, could you try running the same build with mvn
> -X clean install to get more logging and check if there are any
> additional warnings/exceptions in there?
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> 2009/5/10 dj.dj <[email protected]>:
>>
>> Hi guys!
>>
>> I'm running "wsdl-first" example provided within servicemix distribution
>> package from eclipse as maven project. Thus, when I try to package
>> "wsdl-first-jsr181-su" (BTW all jsr181 su) I get the following warning:
>>
>> [WARNING] Failed to generate jbi.xml:
>> org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
>> generate service unit descriptor!
>> org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
>> generate service unit descriptor!
>> at
>> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:206)
>> at
>> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:143)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>> at
>> org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
>> at
>> org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
>> at
>> org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
>> at
>> org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
>> at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
>> Caused by: java.lang.RuntimeException: Unable to register JSR-181
>> service,
>> Error calling init
>> at
>> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer.getProvides(Jsr181ServiceUnitAnalyzer.java:62)
>> at
>> org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:97)
>> at
>> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:185)
>> ... 15 more
>> Caused by: javax.jbi.JBIException: Error calling init
>> at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:205)
>> at
>> org.apache.servicemix.common.SyncLifeCycleWrapper.init(SyncLifeCycleWrapper.java:44)
>> at
>> org.apache.servicemix.jsr181.packaging.Jsr181ServiceUnitAnalyzer.getProvides(Jsr181ServiceUnitAnalyzer.java:60)
>> ... 17 more
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.servicemix.common.EndpointDeliveryChannel.createExchangeFactory(EndpointDeliveryChannel.java:70)
>> at
>> org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:53)
>> at
>> org.apache.servicemix.common.endpoints.ProviderEndpoint.activate(ProviderEndpoint.java:57)
>> at
>> org.apache.servicemix.common.DefaultServiceUnit.init(DefaultServiceUnit.java:54)
>> at
>> org.apache.servicemix.common.DefaultComponent.doInit(DefaultComponent.java:348)
>> at
>> org.apache.servicemix.jsr181.Jsr181Component.doInit(Jsr181Component.java:71)
>> at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:197)
>> ... 19 more
>>
>> Thanks for your help.
>>
>> Jamel
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Unable-to-register-JSR-181-service-tp23470833p23470833.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
>
--
View this message in context:
http://www.nabble.com/Unable-to-register-JSR-181-service-tp23470833p23495778.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.