camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-271) CxfEndpointBeanDefinitionParser throws a ClassCastException when definining inner list elements in spring configuration
Date Fri, 21 Dec 2007 19:07:28 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hadrian Zbarcea resolved CAMEL-271.
-----------------------------------

    Resolution: Fixed

Patch applied with thanks!

> CxfEndpointBeanDefinitionParser throws a ClassCastException when definining inner list
elements in spring configuration
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-271
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-271
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 1.2.0
>            Reporter: Balaji Ravi
>             Fix For: 1.3.0
>
>         Attachments: camel-cxf-classcast.patch
>
>
> In the CxfEndpointBeanDefinitionParser, the list elements being read are cast to com.sun.xml.bind.v2.schemagen.xmlschema.List
class which is never true...
> Why don't we just leave it as a object or atleast cast it to a java.util.List?
> For getting the error just add the following configuration to a cxf endpoint:
>   <cxf:cxfEndpoint id="toEndpoint1" 
>                    address="http://localhost:9091/GreeterContext/GreeterPort" 
>                    serviceClass="demo.router.Greeter">
>       <cxf:features>
>           <cxfcore:logging/>
>       </cxf:features>
>   </cxf:cxfEndpoint>
> cxfcore points to the "http://cxf.apache.org/core" namespace.
> I have attached a patch for this problem & would appreciate if someone applied it.
> Thanks
> Balaji

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message