Have you tried the latest nightly ?

http://people.apache.org/dist/axis2/nightly/axis2-1.1-SNAPSHOT.war
http://people.apache.org/dist/axis2/nightly/axis2-std-1.1-SNAPSHOT-bin.zip

If the problem persists, please create a jira and upload your wsdl and schemas.

HTH,
Robert

On 10/14/06, Jerome Magnet <[EMAIL PROTECTED]> wrote:



I have the following error with WSDL2Java (see below).
I don't understand what is the issue. The WSDL/XSD validates with XMLSpy.
Also, I can compile all XSD with XmlBeans (scomp). It seems that the issue
is in: NotificationService.xsd:29:40 And, there is a reference to a null
element in the namespace? The line numbers refer to a simpletype string with
enumerations.

Finally, I noticed some issues with wsdl:import. It went away when I put all
my WSDL files in the same folder.

Thanks,
Jerome

>>> Compilation output with WSDL2Java
Using AXIS2_HOME:   D:\Apps\axis2
Using JAVA_HOME:    D:\Java\jdk1.5.0_02
AXIS2_CLASS_PATH
D:\Apps\axis2;D:\Apps\xmlbeans-2.1.0\lib\jsr173_1.0_api.jar;D:\Apps\xmlbeans-2.1.0\
lib\resolver.jar;D:\Apps\axis2\lib\annogen-0.1.0.jar;D:\Apps\axis2\lib\axiom-api-1.0.jar;D:\Apps\axi
s2\lib\axiom-dom-1.0.jar;D:\Apps\axis2\lib\axiom-impl-1.0.jar;D:\Apps\axis2\lib\axis2-adb-1.0.jar;D:
\Apps\axis2\lib\axis2-codegen-1.0.jar;D:\Apps\axis2\lib\axis2-jibx-1.0.jar;D:\Apps\axis2\lib\axis2-k
ernel-1.0.jar;D:\Apps\axis2\lib\axis2-tools-1.0.jar;D:\Apps\axis2\lib\axis2-xmlbeans-1.0.jar;D:\Apps
\axis2\lib\backport-util-concurrent-2.1.jar;D:\Apps\axis2\lib\commons-codec-1.3.jar;D:\Apps\axis2\li
b\commons-fileupload-1.0.jar;D:\Apps\axis2\lib\commons-httpclient-3.0.jar;D:\Apps\axis2\lib\commons-
logging-1.0.4.jar;D:\Apps\axis2\lib\geronimo-spec-activation-1.0.2-rc4.jar;D:\Apps\axis2\lib\geronim
o-spec-javamail-1.3.1-rc5.jar;D:\Apps\axis2\lib\geronimo-spec-jms-1.1-rc4.jar;D:\Apps\axis2\lib\jaxe
n-1.1-beta-8.jar;D:\Apps\axis2\lib\jaxme2-0.5.1.jar;D:\Apps\axis2\lib\jaxmeapi-0.5.1.jar;D:\Apps\axi
s2\lib\jaxmejs-0.5.1.jar;D:\Apps\axis2\lib\jaxmexs-0.5.1.jar;D:\Apps\axis2\lib\log4j-1.2.13.jar;D:\A
pps\axis2\lib\neethi-1.0.1.jar;D:\Apps\axis2\lib\servletapi-2.3.jar;D:\Apps\axis2\lib\stax-api-1.0.j
ar;D:\Apps\axis2\lib\stax-utils-20060501.jar;D:\Apps\axis2\lib\wsdl4j-1.5.2.jar;D:\Apps\axis2\lib\ws
tx-asl-2.9.3.jar;D:\Apps\axis2\lib\xbean-2.1.0.jar;D:\Apps\axis2\lib\XmlSchema-1.0.2.jar
Retrieving document at 'NotificationServiceSOAP.wsdl', relative to
'file:/D:/Jeromem/Code/axis2/./ws dl/'. Retrieving document
at 'NotificationService.wsdl', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/Not

ificationServiceSOAP.wsdl'.
Retrieving schema at
'xsd/interfaces/NotificationService.xsd', relative to
'file:/D:/Jeromem/Code/ax
is2/wsdl/NotificationService.wsdl'.

Retrieving schema at '../common/Header.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/inter
faces/NotificationService.xsd'.
Retrieving schema at 'HeaderVendorExtensions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd
/common/Header.xsd'.
Retrieving schema at 'Definitions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/common/Hea
derVendorExtensions.xsd'.
Retrieving schema at
'../networkResources/Notifications.xsd', relative to
'file:/D:/Jeromem/Code/axi
s2/wsdl/xsd/interfaces/NotificationService.xsd'.

Retrieving schema at 'GlobalDefinitions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/netw
orkResources/Notifications.xsd'.
Retrieving schema at '../common/Definitions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/
networkResources/GlobalDefinitions.xsd'.
Retrieving schema at 'VendorExtensions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/netwo
rkResources/Notifications.xsd'.
Retrieving schema at '../common/Definitions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/
networkResources/VendorExtensions.xsd'.
Retrieving schema at 'LayerRates.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/networkReso
urces/Notifications.xsd'.
Retrieving schema at '../common/Definitions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/
networkResources/LayerRates.xsd'.
Retrieving schema at 'ProbableCauses.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/network
Resources/Notifications.xsd'.
Retrieving schema at '../common/Definitions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/
networkResources/ProbableCauses.xsd'.
Retrieving document at 'Exceptions.wsdl', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/Notification
Service.wsdl'.
Retrieving schema at 'xsd/interfaces/Exceptions.xsd',
relative to 'file:/D:/Jeromem/Code/axis2/wsdl/
Exceptions.wsdl'.
Retrieving schema at '../common/Header.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/inter
faces/Exceptions.xsd'.
Retrieving schema at 'VendorExtensions.xsd', relative to
'file:/D:/Jeromem/Code/axis2/wsdl/xsd/inter
faces/Exceptions.xsd'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeE
xception: 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:9
3)
        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:585)
        at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:8
3)
        ... 3 more
Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException:
D:\Jeromem\Code\axis2\xsd\i
nterfaces\NotificationService.xsd:29:40: error:
src-resolve: type '[EMAIL PROTECTED]' not found.
        at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java
:192)
        ... 8 more
Caused by: org.apache.xmlbeans.XmlException:
D:\Jeromem\Code\axis2\xsd\interfaces\NotificationServic
e.xsd:29:40: error: src-resolve: type '[EMAIL PROTECTED]' 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:585)
        at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
        at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java
:161)
        ... 8 more


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to