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.
>
>

Reply via email to