axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <>
Subject Re: Axis2 - MTOM Sample error
Date Fri, 02 May 2008 02:05:34 GMT
MTOM sample comes with XMIME.xsd and has a schema import to that from the
wsdl... Are you using the standard ant build provided with the sample...

The sample is supposed to be code generated using ADB as XMLBeans does not
have full support for MTOM... The ant build is written to use the Axis2's
default data binding, which is ADB... Try adding a the following line to the
generate.service & generate.client targets in the ant build..

<java classname="org.apache.axis2.wsdl.WSDL2Java" ....>
            *<arg line="-d adb"/>*


        am getting the following error, when i try to build the mtom sample
> which comes with Axis2 - Version 1.3
> Exception in thread "main" java.lang.RuntimeException:
> org.apache.xmlbeans.XmlException: error: Could not load resource "xmime.xsd"
> (network downloads disabled).
>        at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(
>        at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(
>        at org.apache.axis2.wsdl.WSDL2Code.main(
>        at org.apache.axis2.wsdl.WSDL2Java.main(
> Caused by: org.apache.xmlbeans.XmlException: error: Could not load
> resource "xmime.xsd" (network downloads disabled).
>        at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>        at java.lang.reflect.Method.invoke(
>        at org.apache.xmlbeans.XmlBeans.compileXmlBeans(
>        at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(
>        ... 3 more
> Please help me. This is the base for a new project am building
> Thanks
> *Rajesh*
> *
> ======================================================================================================
> This transmittal and any attachments may contain confidential, privileged
> or sensitive information and is solely for the use of the intended
> recipient. If you are not the intended recipient, you are hereby notified
> that you have received this transmittal and any attachments in error and any
> review, dissemination, distribution or copying thereof is strictly
> prohibited. If you have received this transmittal and any attachments in
> error please notify the sender and immediately destroy the message and all
> its attachments. Any opinions herein expressed may be those of the author
> and not necessarily of Mizuho Corporate Bank, Ltd., Mizuho Corporate Bank
> (USA), Mizuho Securities USA Inc. or any other affiliates of Mizuho
> Financial Group ("Mizuho"). Mizuho accepts no responsibility for the
> accuracy or completeness of any information herein contained.
> E-Mail received by or sent from officer of Mizuho Securities USA Inc.
> (which is a registered U.S. broker-dealer and the entity through which
> Mizuho generally conducts its investment banking, capital markets, and
> securities business in the United States) is electronically archived and
> recorded and is subject to review and monitoring by and/or disclosure to
> persons other than the recipient, including (but not limited to) Mizuho
> Securities USA Inc. supervisory personnel. Such communications may be
> produced to regulatory authorities or others with legal rights to the
> information.*
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Thilina Gunarathne -

View raw message