You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Chicago <so...@yahoo.com> on 2007/03/01 18:36:51 UTC

org.springframework.beans.TypeMismatchException exception in Servicemix3.1 integrated to JBoss4.0.4

I am getting the following org.springframework.beans.TypeMismatchException in
Servicemix3.1 integrated to JBoss4.0.4. The exception occurs in http
endpoint. The same flow works fine in standalone Servicemix3.1 and
Servicemix3.0 integrated to JBoss4.0.4. Any help is greatly appreciated. I
have given below both the exception stack trace as well as my flow.

Exception is:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Fail
ed to convert property value of type [java.lang.String] to required type
[javax.
xml.namespace.QName] for property 'service'; nested exception is
java.lang.Illeg
alArgumentException: No matching editors or conversion strategy found
PropertyAccessException 2: org.springframework.beans.TypeMismatchException:
Fail
ed to convert property value of type [java.lang.String] to required type
[javax.
xml.namespace.QName] for property 'targetService'; nested exception is
java.lang
.IllegalArgumentException: No matching editors or conversion strategy found
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(
AbstractPropertyAccessor.java:97)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(
AbstractPropertyAccessor.java:57)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:965)
        ... 63 more


My flow:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
       xmlns:my="http://servicemix.apache.org/demo/"
       xmlns:spring="http://xbean.org/schemas/spring/1.0"
	 xmlns:jee="http://www.springframework.org/schema/jee"
       xmlns:eip="http://servicemix.apache.org/eip/1.0"
	 xmlns:http="http://servicemix.apache.org/http/1.0"
	 xmlns:wsa="http://www.w3.org/2005/08/addressing"
	 xmlns:tx="http://www.springframework.org/schema/tx"
	 xmlns:test="http://test"
	 >

    <!-- ####################### Libraries that must be on the Classpath
######################## -->

  <classpath>
	  <location>.</location>
        <location>lib/xmlsec-1.3.0.jar</location> 
        <location>lib/bcprov-jdk14-124.jar</location> 
        <location>lib/commons-codec-1.2.jar</location> 
        <location>lib/commons-httpclient-3.0.jar</location> 
        <location>lib/jetty-6.0.0beta17.jar</location> 
        <location>lib/jetty-util-6.0.0beta17.jar</location> 
        <location>lib/log4j-1.2.12.jar</location> 
        <location>lib/opensaml-1.0.1.jar</location>         
        <location>lib/servicemix-common-3.1-incubating.jar</location>         
        <location>lib/servicemix-http-3.1-incubating.jar</location>         
        <location>lib/servicemix-soap-3.1-incubating.jar</location>         
        <location>lib/servlet-api-2.5-6.0.0beta17.jar</location>         
        <location>lib/servicemix-eip-3.1-incubating.jar</location>   

        <location>lib/slf4j-jcl-1.0.1.jar</location>         
        <location>lib/wss4j-1.5.0.jar</location>     
  </classpath>


<bean id="jndi"
class="org.apache.xbean.spring.jndi.SpringInitialContextFactory"
factory-method="makeInitialContext" singleton="true" /> 
  <sm:jmxServer id="jmxServer" locateExistingServerIfPossible="true"/>

  <import resource="classpath:activemq.xml" />
 
  <!-- ################# Initialize the JBI container
############################### -->

<sm:container id="jbi" name="First-ServiceMix" useMBeanServer="true"
embedded="true"
              createMBeanServer="false" rmiPort="1098"  rootDir="../"
installationDirPath="../install"
              flowName="seda">


<sm:activationSpecs>
	<!-- #####################   Incoming SOAP/HTTP Endpoint
######################### -->
      <sm:activationSpec>
        <sm:component>
          <http:component>
            <http:endpoints>
			
		   <http:endpoint service="test:ChargeManager1" endpoint="SourcePort"                           
                             role="consumer"
targetService="test:TargetService1" 
					targetEndpoint="TargetPort" soap="true" 
					wsdlResource="wsdl/ChargeManagerHCO.wsdl"                       
                            
locationURI="http://0.0.0.0:8481/ChargeFromCentralSrc2/services/ChargeManager/"
                            
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"/>
 

            </http:endpoints>
          </http:component>
        </sm:component>
      </sm:activationSpec>     


<!-- #####################   Outgoing SOAP/HTTP Endpoint
######################### -->
      <sm:activationSpec>
        <sm:component>
          <http:component>
            <http:endpoints>	
			
              <http:endpoint service="test:TargetService1"
endpoint="TargetPort"
                             role="provider" soap="true"
wsdlResource="wsdl/ChargeManagerHCO.wsdl"                       
                            
locationURI="http://0.0.0.0:8483/ChargeManager/ChargeManager.asmx"
					soapVersion="1.2"
                            
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"/>
              
               

            </http:endpoints>
          </http:component>
        </sm:component>
      </sm:activationSpec> 
</sm:activationSpecs>

 </sm:container>
</beans>


-- 
View this message in context: http://www.nabble.com/org.springframework.beans.TypeMismatchException-exception-in-Servicemix3.1-integrated-to-JBoss4.0.4-tf3328406s12049.html#a9254382
Sent from the ServiceMix - User mailing list archive at Nabble.com.