Announcement Announcement Module
Collapse
No announcement yet.
Issue with "converter" tag? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with "converter" tag?

    Hi,

    There may be an issue with the new "converter" tag that was suggested in Mark Fisher's recent blog posting here: http://blog.springsource.com/2010/10...e-candidate-1/

    Though I see the converter tag in the schema here: http://www.springframework.org/schem...ration-2.0.xsd

    .... when I actually try to use it I get the customary "The wildcard matching is strict, but no element can be found for element 'converter'" problem.

    I'm using RC1.

    Could the issue be that the converter lives in core Spring, or is this some blatant idiocy on my part?

    Many thanks,
    Rick

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/integration"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:beans="http://www.springframework.org/schema/beans"
    	xmlns:context="http://www.springframework.org/schema/context"
    	xmlns:jms="http://www.springframework.org/schema/integration/jms"
    	xmlns:corejms="http://www.springframework.org/schema/jms"
    	xmlns:mvc="http://www.springframework.org/schema/mvc"
    	xmlns:int="http://www.springframework.org/schema/integration"
    	xsi:schemaLocation="http://www.springframework.org/schema/integration
    			http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
    			http://www.springframework.org/schema/integration/jms
    			http://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd
    			http://www.springframework.org/schema/integration/stream
    			http://www.springframework.org/schema/integration/stream/spring-integration-stream-2.0.xsd
    			http://www.springframework.org/schema/beans
    			http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    			http://www.springframework.org/schema/context
    			http://www.springframework.org/schema/context/spring-context-3.0.xsd
    			http://www.springframework.org/schema/jms
    			http://www.springframework.org/schema/jms/spring-jms-3.0.xsd
    			http://www.springframework.org/schema/oxm
    			http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd
    			http://www.springframework.org/schema/mvc
    			http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
    
    	<context:component-scan base-package="com.jpm.wss.myProject.myComponent"/>
    	
    	<jms:inbound-gateway id="JMSInGateway"
    		request-destination-name="MyInputQueue"
    		request-channel="JmsInGatewayChannel" 
    		message-converter="MyMessageConverterService"
    		extract-request-payload="true"
    		header-mapper="DefaultJmsHeaderMapper"
    		/>
    	
    	<converter>
    		<beans:bean id="MyMessageConverterService" class="org.springframework.integration.support.converter.SimpleMessageConverter" />
    	</converter>
    
       blah, blah, blah....

  • #2
    Are you getting that error message at runtime, or are you just seeing a warning in the editor?

    Comment


    • #3
      Issue with &quot;converter&quot; tag?

      It shows up as a "Problem" when using STS 2.5.1

      Proper validation would help to make sure that the configuration is correct when I actually use it in a runtime.

      [Namespace conflict between Spring core schemas and Spring Integration schemas??]

      Comment

      Working...
      X