Hello, I am not able to find yoko-tools.jar. The yoko-incubating-runtime-bin-M2 package in much smaller than yoko-incubating-bin-M1 and it lacks lots of libraries. I will fetch the latest sources of the tools library.
LZ 2007/7/11, Mosur Ravi, Balaji <[EMAIL PROTECTED]>:
Hi, I have uploaded the latest artifacts, so you can also download the latest distribution (1.0-incubating-SNAPSHOT) to verify. Thanks Balaji -----Original Message----- From: Lukas Zapletal [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 10:20 AM To: yoko-dev@incubator.apache.org; [EMAIL PROTECTED] Subject: Re: UnknownExtensibilityElement cannot be cast to OperationType Thank you for your response, I will grab the subversion version tomorrow morning and inform you immediately. Have a nice rest of the day LZ 2007/7/11, Mosur Ravi, Balaji <[EMAIL PROTECTED]>: > > I think I merged in a fix for this last week. Are you using the deployed > version of the tools? Try to build a local copy of the tools & try it... > > Thanks > > Balaji > > -----Original Message----- > From: Lukas Zapletal [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 10:02 AM > To: yoko-dev@incubator.apache.org > Subject: UnknownExtensibilityElement cannot be cast to OperationType > > Hello, > > I have this WSDL: > > ... > <wsdl:binding name="XXXAsyncReqRepExampleBinding" > type="tns:XXXAsyncReqRepExample"> > <soap:binding style="document" transport=" > http://schemas.xmlsoap.org/soap/http" /> > <wsdl:operation name="XXXAsyncReqRepExample"> > <soap:operation /> <!-- OVER HERE --> > <wsdl:input> > <soap:body use="literal" /> > </wsdl:input> > <wsdl:output> > <soap:body use="literal" /> > </wsdl:output> > <wsdl:fault name="TechnicalExceptionFault"> > <soap:fault name="TechnicalExceptionFault" use="literal" > /> > </wsdl:fault> > </wsdl:operation> > </wsdl:binding> > ... > > When I try WSDL2IDL tool I get exception: > > java.lang.ClassCastException: > javax.wsdl.extensions.UnknownExtensibilityElement cannot be cast to > org.apache.schemas.yoko.bindings.corba.OperationType > at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.addOperation( > WSDLToIDLAction.java:230) > at > org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.collectIdlDefns( > WSDLToIDLAction.java:217) > at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.generateIDL( > WSDLToIDLAction.java:198) > at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.generateIDL( > WSDLToIDLAction.java:133) > at org.apache.yoko.tools.processors.wsdl.WSDLToCorbaProcessor.process( > WSDLToCorbaProcessor.java:87) > at org.apache.yoko.tools.WSDLToIDL.execute(WSDLToIDL.java:83) > at org.objectweb.celtix.tools.common.toolspec.ToolRunner.runTool( > ToolRunner.java:50) > at org.objectweb.celtix.tools.common.toolspec.ToolRunner.runTool( > ToolRunner.java:19) > at org.apache.yoko.tools.WSDLToIDL.main(WSDLToIDL.java:141) 15:52 > > The error is in the WSDLToIDLAction.addOperation: > > ... > org.apache.schemas.yoko.bindings.corba.OperationType opType = > (org.apache.schemas.yoko.bindings.corba.OperationType)i > .next(); > ... > > Its thrown on the line marked in XML comment ("OVER HERE"). It seems > YOKO do > not understand it while WSDL2JAVA does. Is this a bug? > > Thanks for help > > -- > Lukas Zapletal > http://lukas.zapletalovi.com > -- Lukas Zapletal http://lukas.zapletalovi.com
-- Lukas Zapletal http://lukas.zapletalovi.com