[ 
https://issues.apache.org/jira/browse/CXF-1390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604088#action_12604088
 ] 

Wim Verreycken commented on CXF-1390:
-------------------------------------

Hi everyone,

Because of several questions it seemed wise to me to add this information as a 
comment :-)
In most cases , the " Unsatisfied dependency expressed through constructor 
argument with index " + a number will be caused by incorrectly specifying 
constuctor arguments in spring beans related to or belonging to cxf.

The error can (imho) be a bit misleading and I would advise you to certainly 
check the API reference for the required and optional constructor arguments.
Check the bean that causes the error and look for errors in the constructor 
arguments. (or missing, wronly specifeid, deprecated, you get the idea...etc 
arguments).
If you are learning from examples use the most recent ones to avoid this 
problem.

wim






> 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.

Reply via email to