java - Spring constructor-arg not correct type -


i have following in context.xml:

<bean id="mybean" class="org.stuff.morestuff.classclass"      destroy-method="quit">     <constructor-arg name="someaddr">         <bean class="java.net.url">             <constructor-arg type= "java.lang.string" value="http://something@ondemand.saucelabs.com:80" />         </bean>     </constructor-arg>     <constructor-arg name="argtwo" ref="stability"/> </bean> 

i failed load application context error due to:

constructor threw nested exception; java.lang.classcastexception: java.lang.string cannot cast java.util.map.  

i have looked , '@' not special character , should not need escaped (there no escape sequence regardless). url type string, still being parsed map spring.

does know way around this?

thanks.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -