axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shovan Kanjilal" <shovan.kanji...@gmail.com>
Subject Re: Having issues with creating stub
Date Thu, 21 Aug 2008 02:58:53 GMT
At last I figured it out; looks like the wsdl is too complicated for adb
binding; when I used
-d xmlbean option it created the stub fine.

Thanks for quick responses.


On 8/20/08, Shovan Kanjilal <shovan.kanjilal@gmail.com> wrote:
>
> That's what the error looks like; but I see the definition is there and
> also weblogic,
> axis1.x, glue; .NET all of them were able to create stub from it.
>
> I am confused why all these applications don't complain and axis2
> complains.
>
>
>  On 8/20/08, Eran Chinthaka <eran.chinthaka@gmail.com> wrote:
>>
>> The reason for this error is you are refering to a schema in
>> http://www.themindelectric.com/package/com.workscape.ps.gmpin/ within
>> your wsdl, but it doesn't contain definitions to some types.
>>
>> First try to correct the WSDL pointing to the proper schema and try again.
>> I don't think this issue has anything to do with having lots of jars inthe
>> classpath.
>>
>> On Wed, Aug 20, 2008 at 1:30 PM, Shovan Kanjilal <
>> shovan.kanjilal@gmail.com> wrote:
>>
>>> Sarika,
>>>   Here is the output. Thanks for your response.
>>> regards,
>>> Shovan
>>>
>>>
>>> Using AXIS2_HOME:   C:\axis2-1.4
>>> Using JAVA_HOME:    C:\jdk1.6.0_05
>>> Retrieving document at 'c:\pinapp.wsdl'.
>>> Exception in thread "main"
>>> org.apache.axis2.wsdl.codegen.CodeGenerationException:
>>> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>>>  at
>>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
>>>  at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>>>  at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>>> Caused by: java.lang.RuntimeException:
>>> java.lang.reflect.InvocationTargetException
>>>  at
>>> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
>>>  at
>>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>>>  ... 2 more
>>> Caused by: java.lang.reflect.InvocationTargetException
>>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>  at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>  at java.lang.reflect.Method.invoke(Method.java:597)
>>>  at
>>> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
>>>  ... 3 more
>>> Caused by: org.apache.axis2.schema.SchemaCompilationException: can not
>>> find type {http://schemas.xmlsoap.org/soap/encoding/}Array<http://schemas.xmlsoap.org/soap/encoding/%7DArray>from
the parent schema
>>> http://www.themindelectric.com/package/com.workscape.ps.gmpin/
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.copyMetaInfoHierarchy(SchemaCompiler.java:1296)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1258)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1153)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1097)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:1017)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:931)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:766)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:552)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1991)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1874)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:1081)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:980)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:934)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:563)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:370)
>>>  at
>>> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
>>>  at
>>> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
>>>  ... 8 more
>>>
>>> Tool completed successfully
>>>
>>>
>>> On 8/20/08, sarika pramod <sarika.pramod@gmail.com> wrote:
>>>>
>>>> Shovan,
>>>>
>>>> wht is the error u r getting...
>>>>
>>>> Regards,
>>>> Sarika
>>>>
>>>>  On 8/20/08, Shovan Kanjilal <shovan.kanjilal@gmail.com> wrote:
>>>>
>>>>>  Hi,
>>>>>   I am new to axis; I tried to run wsdl2java on the attached wsdl and
>>>>> getting errors.
>>>>>   Any help is appreciated.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>>
>> --
>> With Mettha,
>> Eran Chinthaka
>>
>> --------------------------------------------------------------------
>> Health is the greatest gift; contentment is the greatest wealth; trusting
>> is the best relationship; nirvana is the highest joy. - Dhammapada
>>
>>
>
>

Mime
View raw message