Hi Anjana, problem fixed. Thank.

It was an issue with the namespaces in the data service configuration. 
There are many complex types with the same name. I found the solution
here[1], is anyone have this problem.

[1] https://wso2.org/jira/browse/CARBON-5167 

Jorge.


-----Mensaje original-----
De: Anjana Fernando [mailto:[email protected]] 
Enviado el: jueves, 10 de marzo de 2011 14:06
Para: [email protected]
CC: Jorge Infante Osorio
Asunto: Re: [Carbon-dev] XmlSchemaComplexType cannot be cast to
XmlSchemaElement

Hi Jorge,

Can you send the WSDL of the data service and also possibly the data service
(.dbs) file as well.

Cheers,
Anjana.

On Fri, Mar 11, 2011 at 12:30 AM, Jorge Infante Osorio <[email protected]>
wrote:
> I use WSAS 3.2.1 with the DSS plugin in my implementation.
>
> When running a data service which has many queries and operations, 
> with the addition of extra queries, the data services with me this error:
>
> [2011-03-10 12:58:23,186] ERROR -  org.wso2.carbon.CarbonException:
> org.apache.axis2.AxisFault:
> org.apache.ws.commons.schema.XmlSchemaComplexType cannot be cast to 
> org.apache.ws.commons.schema.XmlSchemaElement
> {org.wso2.carbon.tryit.TryitRequestProcessor}
>
> [2011-03-10 13:54:37,028] ERROR -
> org.apache.ws.commons.schema.XmlSchemaComplexType cannot be cast to 
> org.apache.ws.commons.schema.XmlSchemaElement
> {org.wso2.carbon.wsdl2form.WSDL2FormGenerator}
> org.apache.axis2.AxisFault:
> org.apache.ws.commons.schema.XmlSchemaComplexType cannot be cast to 
> org.apache.ws.commons.schema.XmlSchemaElement
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>        at
> org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1
> 675)
>        at
> org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1
> 661)
>        at org.wso2.carbon.wsdl2form.Util.getSigStream(Util.java:69)
> Caused by: java.lang.ClassCastException:
> org.apache.ws.commons.schema.XmlSchemaComplexType cannot be cast to 
> org.apache.ws.commons.schema.XmlSchemaElement
>        at
> org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java
> :179)
>        at
> org.apache.ws.commons.schema.XmlSchema.getElementByName(XmlSchema.java
> :269)
>        at
> org.apache.axis2.description.AxisMessage.getSchemaElement(AxisMessage.
> java:1
> 49)
>        at
> org.apache.axis2.description.AxisMessage.getSchemaElement(AxisMessage.
> java:1
> 38)
>        at
> org.apache.axis2.description.AxisService2WSDL20.checkStyle(AxisService
> 2WSDL2
> 0.java:686)
>        at
> org.apache.axis2.description.AxisService2WSDL20.generateInterfaceOpera
> tionEl
> ement(AxisService2WSDL20.java:502)
>        at
> org.apache.axis2.description.AxisService2WSDL20.getInterfaceElement(Ax
> isServ
> ice2WSDL20.java:421)
>        at
> org.apache.axis2.description.AxisService2WSDL20.generateOM(AxisService
> 2WSDL2
> 0.java:223)
>        at
> org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1
> 670)
>        ... 27 more
> [2011-03-10 13:54:37,106] ERROR -  org.wso2.carbon.CarbonException:
> org.apache.axis2.AxisFault:
> org.apache.ws.commons.schema.XmlSchemaComplexType cannot be cast to 
> org.apache.ws.commons.schema.XmlSchemaElement
> {org.wso2.carbon.tryit.TryitRequestProcessor}
>
>
> Any help?
>
> Ing. Jorge Infante Osorio.
> J´Dpto Soluciones SOA.
> CDAE.
> UCI
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



--
Anjana Fernando
Software Engineer
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to