Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 8th, 2013  |  syntax: None  |  size: 1.64 KB  |  views: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <bean id="qName" class="javax.xml.namespace.QName">
  2.     <constructor-arg index="0" value="${com.groupgti.esb.online.tests.talentq.tns}"/>
  3.     <constructor-arg index="1" value="${com.groupgti.esb.online.tests.talentq.serviceName}"/>
  4. </bean>
  5.  
  6. <bean id="wsdlUrl" class="java.net.URL">
  7.     <constructor-arg index="0" value="${com.groupgti.esb.online.tests.talentq.url}"/>
  8. </bean>
  9.  
  10. <bean id="service" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
  11.     <property name="targetObject">
  12.         <bean id="serviceObject" class="com.groupgti.onlinetest.talentq.jaxb.TQIntegrationV2"/>
  13.     </property>
  14.     <property name="targetMethod">
  15.         <value>create</value>
  16.     </property>
  17.     <property name="arguments">
  18.         <list>
  19.             <value type="java.net.URL">wsdlUrl</value>
  20.             <value type="javax.xml.namespace.QName">qName</value>
  21.         </list>
  22.     </property>
  23. </bean>
  24.        
  25. <value type="java.net.URL">wsdlUrl</value>
  26. <value type="javax.xml.namespace.QName">qName</value>
  27.        
  28. Caused by: org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.net.URL'; nested exception is java.lang.IllegalArgumentException: Could not retrieve URL for OSGi resource[wsdlUrl|bnd.id=573|bnd.sym=com.groupgti.esb.online.tests.talentq]: OSGi resource[wsdlUrl|bnd.id=573|bnd.sym=com.groupgti.esb.online.tests.talentq] cannot be resolved to URL because it does not exist
  29.        
  30. <property name="arguments">
  31.     <ref bean="wsdlUrl"/>
  32.     <ref bean="qName"/>
  33. </property>
  34.        
  35. <property name="arguments">
  36.     <list>
  37.         <ref bean="wsdlUrl"/>
  38.         <ref bean="qName"/>
  39.     </list>
  40. </property>