axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ozgur Gurkan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-744) WSDL2Java error: src-resolve: type 'Fault@http://wellpoint.com/service/BenefitsService' not found.'
Date Tue, 23 May 2006 18:33:30 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-744?page=comments#action_12412973 ] 

Ozgur Gurkan commented on AXIS2-744:
------------------------------------

Well, I found a workaround for this problem:

The issue was that the WSDL is split into two different files: "service" and "binding". The
"binding" file is imported into the "service" file with a different namespace. This causes
the tool to not be able to find any of the "message" definitions required for the "port" and
"binding" mapping. 

The solution was to change the target namespace of the "service" WSDL file to match the "binding"
one and everything is ok.

However, the problem still remains a mystery as to why this would be problematic.

> WSDL2Java error: src-resolve: type 'Fault@http://wellpoint.com/service/BenefitsService'
not found.'
> ---------------------------------------------------------------------------------------------------
>
>          Key: AXIS2-744
>          URL: http://issues.apache.org/jira/browse/AXIS2-744
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: wsdl
>     Versions: 1.0
>  Environment: windows
>     Reporter: Ozgur Gurkan
>  Attachments: BenefitsDomain.zip
>
> Executing WSDL2Java tool against the attached WSDL and XSD files reveals an xmlbeans
error:
> >d:\devtools\axis2\bin\WSDL2Java.bat -o codegen -s -d xmlbeans -uri BenefitsService_Binding_JMS_V0100.wsdl
> org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> 	at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:93)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
> 	... 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:324)
> 	at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:83)
> 	... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve:
type 'Fault@http://wellpoint.com/service/BenefitsService' not found.
> 	at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)
> 	... 8 more
> Caused by: org.apache.xmlbeans.XmlException: error: src-resolve: type 'Fault@http://wellpoint.com/service/BenefitsService'
not found.
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
> 	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:324)
> 	at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
> 	at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:161)
> 	... 8 more
> Exception in thread "main" 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message