4 Replies Latest reply on Dec 26, 2011 5:33 AM by aliosha79

    Unrecognized xbean namespace mapping: http://activemq.org/config/1.0

    aliosha79

      Hi,

      i'm new with fuse service mix. I'm trying to follow a tutorial making me construct a servicemix-jms provider service unit.

      Using

      mvn archetype:create -DarchetypeArtifactId=servicemix-jms-provider-service-unit

          -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-camel-jms-su

       

      i got an xbean with this list below:

       

           at org.apache.servicemix.common.ManagementSupport.failure(ManagementSupport.java:46)[154:servicemix-common:2011.02.1.fuse-02-11]

           at org.apache.servicemix.common.AbstractDeployer.failure(AbstractDeployer.java:43)[154:servicemix-common:2011.02.1.fuse-02-11]

           at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:116)[154:servicemix-common:2011.02.1.fuse-02-11]

           at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:86)[154:servicemix-common:2011.02.1.fuse-02-11]

           at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)[154:servicemix-common:2011.02.1.fuse-02-11]

           at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java:104)[150:org.apache.servicemix.jbi.deployer:1.5.1.fuse-01-11]

           at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstaller.java:207)[150:org.apache.servicemix.jbi.deployer:1.5.1.fuse-01-11]

           ... 13 more

       

      I use the apache-servicemix-4.4.1-fuse-01-11

      i think it depends of the spring framework (Unrecognized xbean namespace mapping: http://activemq.org/config/1.0)... so what i can do?

       

      Now if i try to replace  http://activemq.org/config/1.0 with the namespace http://activemq.apache.org/schema/core (from this page: http://activemq.apache.org/xml-reference.html) maven build fails telling me  Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core...

      Any help?

      Alessio

        • 1. Re: Unrecognized xbean namespace mapping: http://activemq.org/config/1.0
          ffang

          Hi,

           

          A couple of things,

           

          1. archetypes servicemix-jms-provider-service-unit  and servicemix-jms-consumer-service-unit were deprecated, they both merge into servicemix-jms-service-unit now.

           

          2. For apache-servicemix-4.4.1-fuse-01-11, it use Activemq now, so it should use

          namespace http://activemq.apache.org/schema/core but not http://activemq.org/config/1.0, the artchetype is out of data, we need upgrade it. So you can edit the generated xbean.xml to use http://activemq.apache.org/schema/core and probably also the pom.xml to ensure it use activemq 5.x

           

          3.  this archetype is for generating jms JBI endpoint, but we strongly suggest you use camel component instead if you start a new project.

           

          Freeman

          • 2. Re: Unrecognized xbean namespace mapping: http://activemq.org/config/1.0
            aliosha79

            hi, thanks for the answer. I followed your suggestions and now there are no error. But there is a strange log. No message are printed on it.

            in this post i have attached the servicemix.log and the example code.

            Briefly i make 2 service units (a camel one named "tutorial-camel-su", and a jms one named tutorial-camel-jms) and 1 service assembly enveloping both of them.

            The camel routing rules are described in the MyRouteBuilder.java (org.apache.servicemix.tutorial.camel) ... while the xbean.xml is coded in src/main/resources of the jms service unit.

            The project aims simply to print the message "CIAOOOOOOOOOO" into the log...

            But nothing happens.

            Can you help me please?

            Thanks a lot again.

             

            Edited by: aliosha79 on Dec 26, 2011 2:23 AM

            • 3. Re: Unrecognized xbean namespace mapping: http://activemq.org/config/1.0
              ffang

              Hi,

               

              There are several issues from your testcase.

               

              1. in tutorial-camel-jms-su/src/main/resources/xbean.xml

              you have prefix "tutorial" like service="tutorial:jms" but you never declare it somewhere, you need have something like

              xmlns:tutorial="......"

               

              2. in src/main/resources/camel-context.xml, your camel context is empty

               

              You may need take a look at camel example shipped with FUSE ESB kit to get more details.

               

              Freeman

              • 4. Re: Unrecognized xbean namespace mapping: http://activemq.org/config/1.0
                aliosha79

                Really thanks for your patience Freeman, now it works.

                Thanks again, of course i will disturb again for new issues and troubles ...

                oh... i give you past greetings for this Christams and my best wishes for a great new year.

                Alessio