[
https://issues.apache.org/jira/browse/CXF-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588559#action_12588559
]
Satish Kumar Kommuri commented on CXF-1390:
-------------------------------------------
Hi All,
we are also getting "UnsatisfiedDependencyException" for all the spring beans
of type java.lang.String and that use CDATA for value of the constructor-arg.
we are using: Spring 2.5.3 and cxf 2.0.2. The same is working without any
issues with Spring 2.0.4.
In detail,
<bean id="FIND_SYMB_HQL" class="java.lang.String" >
<constructor-arg>
<value>
<![CDATA[
from Element o where
o.elementRoot.underlyingInstrument.symbol = :symbol
and o.status = :status
]]>
</value>
</constructor-arg>
</bean>
For example a bean defined as above is getting complained by Spring with the
following exception being thrown.
" Unsatisfied dependency expressed through constructor argument with index 0 of
type [java.lang.StringBuffer]: Could not convert constructor argument value of
type [java.lang.String] to required type [java.lang.StringBuffer]: Failed to
convert value of type [java.lang.String] to required type
[java.lang.StringBuffer]; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type
[java.lang.String] to required type [java.lang.StringBuffer]: no matching
editors or conversion strategy found"
Appreciate any inputs on this issue.
> Upgrade to Spring 2.5
> ---------------------
>
> Key: CXF-1390
> URL: https://issues.apache.org/jira/browse/CXF-1390
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.3
> Reporter: Dan Diephouse
> Attachments: cxf-spring-demo.war, cxf-spring-error.war,
> cxf-spring-error_stacktrace.rtf
>
>
> CXF doesn't work correctly on Spring 2.5. For instance, you get this:
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
> creating bean with name 'jrulesService': Unsatisfied dependency expressed
> through constructor argument with index 2 of type
> [org.apache.cxf.jaxws.JaxWsServerFactoryBean]: Ambiguous constructor argument
> types - did you specify the correct bean references as constructor arguments?
> (What ever happened to the famed backward compatability!? :-) *sigh*)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.