You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Wim Verreycken (JIRA)" <ji...@apache.org> on 2008/05/06 10:45:56 UTC

[jira] Commented: (CXF-1390) Upgrade to Spring 2.5

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

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

Satish,

During the update of spring and cxf, did you also update java from 1.4.x (or another version) to java 6 (1.6.x)? What java version are you using pls?

Also, (as a test), could you tell me the result of adding this to the spring config (or something similar for the first bean you get the error for) :


<bean id="FIND_SYMB_HQL_SB" class="java.lang.StringBuffer" >
            <constructor-arg>
                <value>
                    <![CDATA[
                       from Element o where 
o.elementRoot.underlyingInstrument.symbol = :symbol
                        and o.status = :status
                    ]]>
                </value>
            </constructor-arg>
        </bean>

also modify FIND_SYMB_HQL to be :

<bean id="FIND_SYMB_HQL" class="java.lang.String" >
            <constructor-arg>
                <ref bean="FIND_SYMB_HQL_SB"/>
            </constructor-arg>
        </bean>


If you could give me the stacktrace of this of before AND after, this will hopefully leave me with a bit more info of the level this is giving problems at. 

I hope you agree that, technically, this should work. A string can be created from a StringBuffer in java 1.4.2 to current and vice versa.

I want to try this because of this :

>Could not convert constructor argument value of
>type [java.lang.String] to required type [java.lang.StringBuffer]


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.