You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2007/12/20 03:39:27 UTC
[jira] Updated: (CAMEL-271) CxfEndpointBeanDefinitionParser throws
a ClassCastException when definining inner list elements in spring
configuration
[ https://issues.apache.org/activemq/browse/CAMEL-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CAMEL-271:
-------------------------------
Affects Version/s: (was: 1.1.0)
(was: 1.0.0)
> 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.