Announcement Announcement Module
Collapse
No announcement yet.
Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core

    Using STS 2.6.1 SR1, Roo 1.1.4 on JDK 1.6.0_20

    Created Roo Project, setup database and entity. AOK.

    Then from my Roo Shell...

    Code:
    ~.model.ExecutionLog roo> jms setup --provider ACTIVEMQ_IN_MEMORY --destinationName EXECUTIONLOG --destinationType QUEUE 
    Created SRC_MAIN_RESOURCES\META-INF\spring\applicationContext-jms.xml
    Updated ROOT\pom.xml [added dependencies org.springframework:spring-beans:${spring.version}, org.springframework:spring-jms:${spring.version}, org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1, org.apache.activemq:activemq-core:5.4.2, org.apache.xbean:xbean-spring:3.6]
    ~.model.ExecutionLog roo> jms listener class --class com.corenttech.care.model.ExecutionLog --destinationName EXEXCUTIONLOGIN --destinationType QUEUE 
    SRC_MAIN_JAVA\com\corenttech\care\model\ExecutionLog.java already exists
    ~.model.ExecutionLog roo> jms listener class --class ~.service.jms.ExecutionLogListener --destinationName EXECUTIONLOGIN --destinationType QUEUE 
    Created SRC_MAIN_JAVA\com\corenttech\care\service\jms
    Created SRC_MAIN_JAVA\com\corenttech\care\service\jms\ExecutionLogListener.java
    Updated SRC_MAIN_RESOURCES\META-INF\spring\applicationContext-jms.xml
    ~.model.ExecutionLog roo>
    That gave me the following Spring Problem...

    Code:
    Unrecognized xbean namespace mapping: http://activemq.apache.org/schema/core	applicationContext-jms.xml	/CAREExec/src/main/resources/META-INF/spring	line 4	Spring Beans Problem
    applicationContext-jms.xml...


    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:amq="http://activemq.apache.org/schema/core" 
    xmlns:aop="http://www.springframework.org/schema/aop" 
    xmlns:jms="http://www.springframework.org/schema/jms" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd                
        http://www.springframework.org/schema/aop 
        http://www.springframework.org/schema/aop/spring-aop-3.0.xsd                
        http://activemq.apache.org/schema/core 
        http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd   
        http://www.springframework.org/schema/jms 
        http://www.springframework.org/schema/jms/spring-jms-3.0.xsd">
        
        <!-- Embedded ActiveMQ Broker JMX MBean server enabled by default, access via: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -->
        <amq:broker persistent="false" useJmx="true">
            <amq:transportConnectors>
                <amq:transportConnector uri="tcp://localhost:61616"/>
            </amq:transportConnectors>
        </amq:broker>
    ...
    How do I clear this problem?

  • #2
    Your Roo script refers to these three distinct names (bold font added by me):
    • EXECUTIONLOG
    • EXEXCUTIONLOGIN
    • EXECUTIONLOGIN
    Are these all meant to say EXECUTIONLOG?

    Comment


    • #3
      Hi Andrew

      See: https://jira.springsource.org/browse...nel#issue-tabs

      Cheers,
      Marco

      Comment


      • #4
        Shouldn't the xsi:schemaLocation declaration take care of this namespace -> schema mapping?

        Comment


        • #5
          Does that error message "Unrecognized xbean namespace mapping..." appear when your launch your app or is it just a warning/error marker presented in your IDE (STS)?

          Comment


          • #6
            No, just a marker in STS, and this marker doesn't appear in Eclipse Indigo.

            Comment

            Working...
            X