3 Replies Latest reply on Aug 20, 2008 4:12 AM by Gert Vanthienen

    Failed to generate jbi.xml for servicemix-jms

    taraud m Newbie

      <!--[if gte mso 9]><xml> </xml><![endif]><![if gte mso 9]><![endif]><![if gte mso 9]>

      Hi all,

       

      I want to create a consumer jms with

      Fuse-ESB. I try to use a jndi template or a direct jndi look-up  but the result is the same.

       

      Here is my code

       

       

       

      &lt;?xml version="1.0" encoding="UTF-8"?&gt;

       

      &lt;beans xmlns:jms="http://servicemix.apache.org/jms/1.0"

       

            xmlns:jee="http://www.springframework.org/schema/jee"

       

            xmlns:moo="http://mycompany.fr/esb/momoo"&gt;

       

       

       

      &lt;!--

       

            &lt;bean

      id="MyJndiTemplate"

       

                  class="org.springframework.jndi.JndiTemplate"&gt;

       

                  &lt;property

      name="environment"&gt;

       

                        &lt;props&gt;

       

                              &lt;prop

      key="java.naming.factory.initial"&gt;

       

                                   fr.dyade.aaa.jndi2.client.NamingContextFactory

       

                              &lt;/prop&gt;

       

                              &lt;prop

      key="java.naming.provider.url"&gt;

       

                                   scn://localhost:16400

       

                              &lt;/prop&gt;

       

                              &lt;prop

      key="java.naming.security.principal"&gt;

       

                                   anonymous

       

                              &lt;/prop&gt;

       

                              &lt;prop

      key="java.naming.security.credentials"&gt;

       

                                   anonymous

       

                              &lt;/prop&gt;

       

                        &lt;/props&gt;

       

                  &lt;/property&gt;

       

            &lt;/bean&gt;

       

       

       

            &lt;bean

      id="connectionFactory"

       

                  class="org.springframework.jndi.JndiObjectFactoryBean"&gt;

       

                  &lt;property

      name="jndiTemplate" ref="MyJndiTemplate" /&gt;

       

       

       

                  &lt;property

      name="jndiName"&gt;

       

                        &lt;value&gt;QCF&lt;/value&gt;

       

                  &lt;/property&gt;

       

            &lt;/bean&gt;

       

       

       

      --&gt;

       

       

       

      &lt;jee:jndi-lookup

      id="connectionFactory" jndi-name="QCF"&gt;

       

          &lt;jee:environment&gt;

       

            

      java.naming.factory.initial=fr.dyade.aaa.jndi2.client.NamingContextFactory

       

            java.naming.provider.url=scn://localhost:16400

       

          &lt;/jee:environment&gt;

       

        &lt;/jee:jndi-lookup&gt;

       

       

       

       

       

            &lt;jms:endpoint

      service="moo:momooConsumerServiceCli"

       

                  destinationStyle="queue"

      jmsProviderDestinationName="cliDestIn"

       

                  endpoint="moo:momooConsumerCli"

      role="consumer"

       

                  targetService="moo:momooProviderServiceSvr"

       

                  defaultMep="http://www.w3.org/2004/08/wsdl/in-only"

       

                  connectionFactory="#connectionFactory" /&gt;

       

       

       

            &lt;jms:endpoint

      service="moo:momooConsumerServiceSvr"

       

                  destinationStyle="queue"

      jmsProviderDestinationName="svrDestOut"

       

                  endpoint="moo:momooConsumerSvr"

      role="consumer"

       

                  targetService="moo:momooProviderServiceCli"

       

                  defaultMep="http://www.w3.org/2004/08/wsdl/in-only"

       

                  connectionFactory="#connectionFactory"

      /&gt;

       

       

       

      &lt;/beans&gt;

       

       

       

      But when I run the "mvn install"

      command I have the following

       

       

       

      settings.getPluginGroups().size() = 0

       

      Scanning for projects...

       

      -


       

      Building A custom project

       

        

      task-segment:

       

      -


       

      artifact

      org.apache.maven.plugins:maven-resources-plugin: checking for updates from

      open.iona.m2

       

      artifact

      org.apache.maven.plugins:maven-resources-plugin: checking for updates from

      central

       

      artifact

      org.apache.maven.plugins:maven-compiler-plugin: checking for updates from

      open.iona.m2

       

      artifact

      org.apache.maven.plugins:maven-compiler-plugin: checking for updates from

      central

       

      artifact org.apache.maven.plugins:maven-surefire-plugin:

      checking for updates from open.iona.m2

       

      artifact

      org.apache.maven.plugins:maven-surefire-plugin: checking for updates from

      central

       

      artifact

      org.apache.maven.plugins:maven-jar-plugin: checking for updates from

      open.iona.m2

       

      artifact

      org.apache.maven.plugins:maven-jar-plugin: checking for updates from central

       

      artifact

      org.apache.maven.plugins:maven-install-plugin: checking for updates from

      open.iona.m2

       

      artifact

      org.apache.maven.plugins:maven-install-plugin: checking for updates from

      central

       

      resources:resources

       

      Using default encoding to copy filtered

      resources.

       

      Unable to get resource from repository

      open.iona.m2 (http://repo.open.iona.com/maven2)

       

      Unable to get resource from repository central

      (http://repo1.maven.org/maven2)

       

      Unable to get resource from repository

      open.iona.m2 (http://repo.open.iona.com/maven2)

       

      Unable to get resource from repository central

      (http://repo1.maven.org/maven2)

       

      Unable to get resource from repository

      open.iona.m2 (http://repo.open.iona.com/maven2)

       

      Unable to get resource from repository central

      (http://repo1.maven.org/maven2)

       

      Unable to get resource from repository open.iona.m2

      (http://repo.open.iona.com/maven2)

       

      Unable to get resource from repository central

      (http://repo1.maven.org/maven2)

       

      compiler:compile

       

      No sources to compile

       

      jbi:generate-jbi-service-unit-descriptor

       

      Generating jbi.xml

       

      Created

      Service Unit Analyzer

      org.apache.servicemix.jms.packaging.JmsServiceUnitAnalyzer@d1ad08

       

      2008-08-08

      11:39:06,580 INFO  ileSystemXmlApplicationContext - Refreshing

      org.apache.xbean.spring.context.FileSystemXmlApplicationContext@a60191: display

      name ;

      startup date ; root of context hierarchy

       

      2008-08-08

      11:39:06,736 INFO  XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from URL

      file:/E:/EclipseSMX/SU_JMS/monProjet/src/main/resources/xbean.xml

       

      Failed

      to generate jbi.xml: org.apache.servicemix.maven.plugin.jbi.JbiPluginException:

      Unable to generate service unit descriptor! Unable to generate service unit

      descriptor!

       

      resources:testResources

       

      Using default encoding to copy filtered

      resources.

       

      compiler:testCompile

       

      No sources to compile

       

      surefire:test

       

      No tests to run.

       

      jar:jar

       

      Building

      jar: E:\EclipseSMX\SU_JMS\monProjet\target\monProjet-1.0-SNAPSHOT.jar

       

      jbi:jbi-service-unit

       

      Resolving

      org.springframework:spring-beans:jar:2.0.6:compile

       

      Resolving

      aopalliance:aopalliance:jar:1.0:compile

       

      Resolving

      org.springframework:spring-dao:jar:2.0.6:compile

       

      Resolving

      commons-logging:commons-logging:jar:1.0.4:compile

       

      Resolving

      org.apache.geronimo.specs:geronimo-ejb_2.1_spec:jar:1.1:compile

       

      Resolving

      org.apache.geronimo.modules:geronimo-connector:jar:1.2-beta:compile

       

      Resolving wss4j:wss4j:jar:1.5.1:compile

       

      Resolving

      org.apache.woden:woden:jar:1.0.0M6:compile

       

      Resolving commons-dbcp:commons-dbcp:jar:1.2:runtime

       

      Resolving

      org.springframework:spring-context:jar:2.0.6:compile

       

      Resolving

      commons-collections:commons-collections:jar:3.1:compile

       

      Resolving

      org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile

       

      Resolving bouncycastle:bcprov-jdk14:jar:136:compile

       

      Resolving xml-security:xmlsec:jar:1.3.0:compile

       

      Resolving

      org.apache.ws.commons.schema:XmlSchema:jar:1.2:compile

       

      Resolving regexp:regexp:jar:1.3:compile

       

      Resolving org.apache.servicemix:servicemix-soap2:jar:3.3.0.9-fuse:compile

       

      Resolving

      backport-util-concurrent:backport-util-concurrent:jar:2.2:compile

       

      Resolving org.jencks:jencks:jar:2.0:compile

       

      Resolving

      org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.0:compile

       

      Resolving

      org.apache.servicemix:servicemix-soap:jar:3.3.0.9-fuse:compile

       

      Resolving

      org.apache.geronimo.modules:geronimo-transaction:jar:1.2-beta:compile

       

      Resolving

      org.apache.servicemix:servicemix-shared:jar:3.3.0.9-fuse:compile

       

      Resolving

      org.apache.servicemix:servicemix-common:jar:3.3.0.9-fuse:compile

       

      Resolving

      org.springframework:spring-support:jar:2.0.6:compile

       

      Resolving

      org.springframework:spring-core:jar:2.0.6:compile

       

      Resolving wsdl4j:wsdl4j:jar:1.6.1:compile

       

      Resolving org.opensaml:opensaml:jar:1.1:compile

       

      Resolving

      org.apache.servicemix:servicemix-jms:jar:3.3.0.9-fuse:compile

       

      Resolving

      org.objectweb.howl:howl:jar:1.0.1-1:compile

       

      Resolving

      org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:1.0.1:compile

       

      Resolving

      org.springframework:spring-jms:jar:2.0.6:compile

       

      Resolving

      commons-pool:commons-pool:jar:1.2:compile

       

      Generating

      service unit E:\EclipseSMX\SU_JMS\monProjet\target\monProjet-1.0-SNAPSHOT.zip

       

      Building

      jar: E:\EclipseSMX\SU_JMS\monProjet\target\monProjet-1.0-SNAPSHOT.zip

       

      install:install

       

      Installing

      E:\EclipseSMX\SU_JMS\monProjet\target\monProjet-1.0-SNAPSHOT.jar to C:\Documents

      and

      Settings\HFDL7743\.m2\repository\com\mycompany\monProjet\1.0-SNAPSHOT\monProjet-1.0-SNAPSHOT.jar

       

      Installing

      E:\EclipseSMX\SU_JMS\monProjet\target\monProjet-1.0-SNAPSHOT.zip to

      C:\Documents and Settings\HFDL7743\.m2\repository\com\mycompany\monProjet\1.0-SNAPSHOT\monProjet-1.0-SNAPSHOT.zip

       

      -


       

      BUILD SUCCESSFUL

       

      -


       

      Total time: 30 second

       

      Finished at: Fri Aug 08 11:39:09 CEST 2008

       

      Memory 12M/33M

       

      -


       

      -


       

      BUILD SUCCESSFUL

       

      -


       

      Total time: 31 seconds

       

      Finished at: Fri Aug 08 11:39:09 CEST 2008

       

      Final Memory: 18M/33M

       

      -


       

       

       

       

       

      Seems build successful but the jbi.xml

      descriptor is not generated X-(.

       

      Help are welcome,

       

      Thanks in advance.

       

       

       

      Best Regards,