2 Replies Latest reply on Nov 14, 2007 11:22 PM by bsnyder

    Error: Failed to generate jbi.xml: Unable to generate service unit descript

    ptran

      Hi,

        I've created new project PricingService as per tutorial. When the eclipse ran through all the compilations, it threw a number of errors,as follows:

      ---

      8/11/07 10:18:38: Failed to generate jbi.xml: org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to generate service unit descriptor! Unable to generate service unit descriptor!

      8/11/07 10:18:39: xfire:wsgen

      8/11/07 10:18:39: Executing XFire WsGen task with url: file:/C:/eclipse/workspace/PricingService/src/main/resources/service.wsdl

      8/11/07 10:18:39: Wsdl11Generator - Generating code for WSDL at file:/C:/eclipse/workspace/PricingService/src/main/resources/service.wsdl with a base URI of file:/C:/eclipse/workspace/PricingService/src/main/resources/service.wsdl

      -


      Could anyone help explain the cause?

      Thanks in advance.

      Peter

        • 1. Re: Error: Failed to generate jbi.xml: Unable to generate service unit desc
          konrad_a

          I am not sure what the cause is, but you may try to disable "serviceUnitAnalyzer" in pom.xml:

           

                          

                                                  (...)

          Please also verify if your WSDL has no WS-I validation warnings.

          • 2. Re: Error: Failed to generate jbi.xml: Unable to generate service unit desc
            bsnyder

            This error usually occurs on a service unit (SU) and disabling the useServiceUnitAnalyzer should stop the error. The following is an example of how to disable it:

             

            <plugin>
              <groupId>org.apache.servicemix.tooling</groupId>
              <artifactId>jbi-maven-plugin</artifactId>
              <version>${servicemix.version}</version>
              <extensions>true</extensions> 
              <configuration>
                <useServiceUnitAnalyzer>false</useServiceUnitAnalyzer>
              </configuration>                                
            </plugin>
            

             

            On a side note, this error on a service unit shouldn't actually be a problem as long as the full build succeeds as the jbi.xml file in a service unit is actually not used by ServiceMix.

             

            Bruce