I suggested the following as your stacktrace shows it's using XMLBeans for
data binding..

On Thu, May 1, 2008 at 9:05 PM, Thilina Gunarathne <[EMAIL PROTECTED]>
wrote:

> Hi,
> 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"/>*
>             ....
>         </java>
>
> thanks,
> Thilina
>
>
>         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(XMLBeansExtension.java:103)
> >        at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:79)
> >        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:28)
> >        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:22)
> > Caused by: org.apache.xmlbeans.XmlException: error: Could not load
> > resource "xmime.xsd" (network downloads disabled).
> >        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:667)
> >        at
> > org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:69)
> >        ... 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> Thilina Gunarathne - http://thilinag.blogspot.com




-- 
Thilina Gunarathne - http://thilinag.blogspot.com

Reply via email to