To elaborate on the #2, when we try to code gen from the AntTask the
code failed giving an
Initialization exception. It is fixed when we add the ClassLoader that
include the xml beans jar to the TCCL (Thread Context ClassLoader).
This works fine when it is only Ant, but failed when it is maven!

I belive  xmlbeans should accept a ClassLoader and use that in any
case where the reflection is needed. So far I do not find such
mechnisum yet. Relaying on the TCCL instead would be troublesome in
some enviorments like maven.



On 8/4/05, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> Hi all,
> As you all know we have been successfully using XMLBeans for data binding in
> Axis2. However right now, we seem to have some problems with XMLBeans.
> 
> 1. Some schemas are not compiled right by XMLBeans.Consider the following
> schema snippet.
>  <schema xmlns="http://www.w3.org/2001/XMLSchema";
> targetNamespace="http://SimpleTest.org/xsd";>
>         <element name="echoString">
>                <complexType>
>                  <sequence>
>                     <element name="inputString" type="xsd:string"
> nillable="true"/>
>                  </sequence>
>                </complexType>
>         </element>
>  </schema>
>  
>  The inputString element should belong to the targetNamespace. However the
> generated EchoStringDocument has the nested inputString in the empty Name
> space ?
>  
>  2. The  XMLBeans compiler fails to run inside Maven and Eclipse (and even
> Idea :)). David Jencks has been kind enough to provide us some good
> references and a code snippet but we still have some problems in running the
> tool inside maven and Eclipse. However , the  Ant task works.
>  
>  Any helpful hints in resolving these are welcome. I'll be sending these to
> the XMLBeans list as well.
>  
> Thanks
>  
> -- 
> Ajith Ranabahu
>

Reply via email to