[
https://issues.apache.org/jira/browse/AXIS2-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477354
]
Shawn J. Dyck commented on AXIS2-2254:
--------------------------------------
Ok ... Maybe this error output will help you ... I'm still getting the
error.
C:\Documents and Settings\shawn\My Documents\SOA-BOD>wsdl2java -uri
MCI-BOD-v7.0
.0-Draft2\MCI-BOD\MCI\WSDLs\SOAP\WSDL\AdjustInvoice.wsdl -d xmlbeans -s
-ss -sd
-ssi -o build\services
Using AXIS2_HOME: C:\Program Files\Axis2\axis2-SNAPSHOT
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_10
Retrieving schema at '../XSD/AdjustInvoice.xsd', relative to
'file:/C:/Documents
%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI
-BOD/MCI
/WSDLs/SOAP/WSDL/'.
Retrieving schema at '../../XSD/AdjustInvoice.xsd', relative to
'file:/C:/Docume
nts%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/
MCI-BOD/
MCI/WSDLs/SOAP/XSD/AdjustInvoice.xsd'.
Retrieving schema at '../../BODs/AcknowledgeAdjustInvoice.xsd', relative
to 'fil
e:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7
.0.0-Dra
ft2/MCI-BOD/MCI/WSDLs/XSD/AdjustInvoice.xsd'.
Retrieving schema at
'../../OAGIS/v9_0/Resources/Components/Common/Components.xs
d', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BO
D/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/BODs/AcknowledgeAdjustInvoice.xsd'.
Retrieving schema at 'Meta.xsd', relative to
'file:/C:/Documents%20and%20Setting
s/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/OAGIS/v9_0/
Resource
s/Components/Common/Components.xsd'.
Retrieving schema at 'Fields.xsd', relative to
'file:/C:/Documents%20and%20Setti
ngs/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/OAGIS/v9_
0/Resour
ces/Components/Common/Meta.xsd'.
Retrieving schema at '../CoreComponents/UnqualifiedDataTypes.xsd',
relative to '
file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD
-v7.0.0-
Draft2/MCI-BOD/OAGIS/v9_0/Resources/Components/Common/Fields.xsd'.
Retrieving schema at '../Common/CodeLists.xsd', relative to
'file:/C:/Documents%
20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-
BOD/OAGI
S/v9_0/Resources/Components/CoreComponents/UnqualifiedDataTypes.xsd'.
Retrieving schema at
'../CoreComponents/CodeList_UnitCode_UNECE_7_04.xsd', relat
ive to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BO
D
-v7.0.0-Draft2/MCI-BOD/OAGIS/v9_0/Resources/Components/Common/CodeLists.
xsd'.
Retrieving schema at
'../CoreComponents/CodeList_CurrencyCode_ISO_7_04.xsd', rel
ative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-B
OD-v7.0.0-Draft2/MCI-BOD/OAGIS/v9_0/Resources/Components/Common/CodeList
s.xsd'.
Retrieving schema at
'../CoreComponents/CodeList_LanguageCode_ISO_7_04.xsd', rel
ative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-B
OD-v7.0.0-Draft2/MCI-BOD/OAGIS/v9_0/Resources/Components/Common/CodeList
s.xsd'.
Retrieving schema at
'../CoreComponents/CodeList_MIMEMediaTypeCode_IANA_7_04.xsd
', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD
/MCI-BOD-v7.0.0-Draft2/MCI-BOD/OAGIS/v9_0/Resources/Components/Common/Co
deLists.
xsd'.
Retrieving schema at '../CoreComponents/QualifiedDataTypes.xsd',
relative to 'fi
le:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v
7.0.0-Dr
aft2/MCI-BOD/OAGIS/v9_0/Resources/Components/Common/Fields.xsd'.
Retrieving schema at 'UnqualifiedDataTypes.xsd', relative to
'file:/C:/Documents
%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI
-BOD/OAG
IS/v9_0/Resources/Components/CoreComponents/QualifiedDataTypes.xsd'.
Retrieving schema at '../Common/CodeLists.xsd', relative to
'file:/C:/Documents%
20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-
BOD/OAGI
S/v9_0/Resources/Components/CoreComponents/QualifiedDataTypes.xsd'.
Retrieving schema at '../Resources/Nouns/AdjustInvoice.xsd', relative to
'file:/
C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.
0-Draft2
/MCI-BOD/MCI/BODs/AcknowledgeAdjustInvoice.xsd'.
Retrieving schema at
'../../../OAGIS/v9_0/Resources/Components/Common/Components
.xsd', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA
-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resources/Nouns/AdjustInvoice.xsd
'.
Retrieving schema at '../Components/Common/Components.xsd', relative to
'file:/C
:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0
-Draft2/
MCI-BOD/MCI/Resources/Nouns/AdjustInvoice.xsd'.
Retrieving schema at
'../../../../OAGIS/v9_0/Resources/Components/Common/Compone
nts.xsd', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/
SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resources/Components/Common/Co
mponents
.xsd'.
Retrieving schema at 'Meta.xsd', relative to
'file:/C:/Documents%20and%20Setting
s/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resourc
es/Compo
nents/Common/Components.xsd'.
Retrieving schema at
'../../../../OAGIS/v9_0/Resources/Components/Common/Meta.xs
d', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BO
D/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resources/Components/Common/Meta.xsd
'.
Retrieving schema at 'Fields.xsd', relative to
'file:/C:/Documents%20and%20Setti
ngs/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resou
rces/Com
ponents/Common/Meta.xsd'.
Retrieving schema at
'../../../../OAGIS/v9_0/Resources/Components/Common/Fields.
xsd', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-
BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resources/Components/Common/Fields
.xsd'.
Retrieving schema at '../../BODs/ProcessAdjustInvoice.xsd', relative to
'file:/C
:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0
-Draft2/
MCI-BOD/MCI/WSDLs/XSD/AdjustInvoice.xsd'.
Retrieving schema at
'../../OAGIS/v9_0/Resources/Components/Common/Components.xs
d', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BO
D/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/BODs/ProcessAdjustInvoice.xsd'.
Retrieving schema at '../Resources/Nouns/AdjustInvoice.xsd', relative to
'file:/
C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.
0-Draft2
/MCI-BOD/MCI/BODs/ProcessAdjustInvoice.xsd'.
Retrieving schema at
'../../Resources/Components/Operational/ESBManagementCompon
ents.xsd', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents
/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/WSDLs/XSD/AdjustInvoice.xsd'.
Retrieving schema at
'../../../../OAGIS/v9_0/Resources/Components/Common/Compone
nts.xsd', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/
SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resources/Components/Operation
al/ESBMa
nagementComponents.xsd'.
Retrieving schema at '../../Nouns/Profile.xsd', relative to
'file:/C:/Documents%
20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/MCI-
BOD/MCI/
Resources/Components/Operational/ESBManagementComponents.xsd'.
Retrieving schema at
'../../../OAGIS/v9_0/Resources/Components/Common/Components
.xsd', relative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA
-BOD/MCI-BOD-v7.0.0-Draft2/MCI-BOD/MCI/Resources/Nouns/Profile.xsd'.
Retrieving schema at '../Components/Common/Components.xsd', relative to
'file:/C
:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0
-Draft2/
MCI-BOD/MCI/Resources/Nouns/Profile.xsd'.
Retrieving schema at 'ComponentMonitorConfig.xsd', relative to
'file:/C:/Documen
ts%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft2/M
CI-BOD/M
CI/Resources/Components/Operational/ESBManagementComponents.xsd'.
Retrieving schema at
'../../../../OAGIS/v9_0/BODs/Developer/ConfirmBOD.xsd', rel
ative to
'file:/C:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-B
OD-v7.0.0-Draft2/MCI-BOD/MCI/WSDLs/SOAP/XSD/AdjustInvoice.xsd'.
Retrieving schema at '../../Resources/Nouns/BOD.xsd', relative to
'file:/C:/Docu
ments%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0-Draft
2/MCI-BO
D/OAGIS/v9_0/BODs/Developer/ConfirmBOD.xsd'.
Retrieving schema at '../Components/Common/Components.xsd', relative to
'file:/C
:/Documents%20and%20Settings/shawn/My%20Documents/SOA-BOD/MCI-BOD-v7.0.0
-Draft2/
MCI-BOD/OAGIS/v9_0/Resources/Nouns/BOD.xsd'.
Mar 2, 2007 9:47:05 AM
org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2Enti
tyResolver resolveEntity
INFO: Resolving schema with publicId [null] and systemId
[\../XSD/AdjustInvoice.
xsd]
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(CodeGener
ationEngine.java:226)
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.InvocationTargetExcepti
on
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
eansExtension.java:92)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:179)
... 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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
eansExtension.java:82)
... 3 more
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
error:
Problem parsing referenced XML resource - java.io.FileNotFoundException:
\..\XSD
\AdjustInvoice.xsd (The system cannot find the path specified)
at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:280)
... 8 more
Caused by: org.apache.xmlbeans.XmlException: error: Problem parsing
referenced X
ML resource - java.io.FileNotFoundException: \..\XSD\AdjustInvoice.xsd
(The syst
em cannot find the path specified)
at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche
maTypeSystemCompiler.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:160)
... 8 more
-------------------------------
Kind Regards,
Shawn J. Dyck
Systems Analyst
SOA-BOD Team
AIM: shawnjd01
SameTime: Shawn Dyck
Vnet: 622-6865
Office: (719)535-6865
Mobile (719)235-1970
> Invalid code generation using wsdl2java.bat for SOAP WSDLs for
> OAGIS-MCI-BOD"The referenced element
> '{http://www.openapplications.org/oagis/9}ActionExpression' was not found!"
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2254
> URL: https://issues.apache.org/jira/browse/AXIS2-2254
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: nightly
> Environment: Windows xp, OAGIS-MCI BODs
> Reporter: Shawn J. Dyck
>
> I am unable to successfully generate .java classes from SOAP WSDLs using
> wsdl2java.bat in axis2 (nightly) ...
> Below is the error message I get ...
> 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:226)
> 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.SimpleDBExtension.engage(SimpleDBExtension.java:52)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:179)
> ... 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:585)
> at
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:49)
> ... 3 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: The referenced
> element '{http://www.openapplications.org/oagis/9}ActionExpression' was not
> found!
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:590)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:452)
> at
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1629)
> at
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1591)
> at
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:930)
> at
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:887)
> at
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:841)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:492)
> at
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:463)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:297)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:283)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:283)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:283)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:279)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:283)
> at
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:207)
> at
> org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:73)
> ... 8 more
> I've reviewed our BOD structure and its is valid ... everything seems fine in
> XMLSpy. I've been able to generate our .java files using our JMS WSDLs which
> is using the same BODs as our SOAP WSDLs .... I need help on this issue ...
> I've tried axis1.4, axis2-1.1.1, and axis2-nightly-02-23-07 ... and cant seem
> to get the .java files generated from our SOAP WSDLs ... I can provide
> addition documentation as needed .... This is a CRITICAL issue for me and I
> need help!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]