axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phee, Marty" <>
Subject RE: Weird problem
Date Tue, 18 May 2010 17:36:53 GMT
When I use the plugin it generates this for struct8d8bdoctype.xsb


value: org.apache.xmlbeans.SchemaGlobalElement$Ref = {org.apache.xmlbeans.SchemaGlobalElement$Ref@2173}

_handle = struct8d8bdoctype


So when it try’s to call addDocument and cast it as a SchemaType.Ref it fails.

for (Iterator it = _documentTypes.entrySet().iterator(); it.hasNext(); )


            Map.Entry entry = (Map.Entry);

            String ns = ((QName) entry.getKey()).getNamespaceURI();

            getContainerNonNull(ns).addDocumentType((SchemaType.Ref) entry.getValue());




With ant it’s

value: org.apache.xmlbeans.SchemaType$Ref = {org.apache.xmlbeans.SchemaType$Ref@2629} <mailto:%7borg.apache.xmlbeans.SchemaType$Ref@2629%7d>

_handle = struct8d8bdoctype


and it works…


I can supply the whole project.  It’s pretty small and it’s just using the sample code.


>>Martin Gainty 
>>BTW spelled "wired" incorrectly..


Good thing I wasn’t trying to spell wired then…


From: ceri tandogan [] 
Sent: Tuesday, May 18, 2010 12:03 PM
Subject: Re: Weird problem



Which application server or servlet container are you using?

1)try to update wsdl.jar of app server common lib directory

2)Check if schemaorg_apache_xmlbeans.system.* is in your classpath.



From: Martin Gainty <>
Sent: Tue, May 18, 2010 7:47:04 PM
Subject: RE: Weird problem

the axis2-wsdl2code-maven-plugin main site (and all mirrors appear to be down)..if you are
able to attach or post the jar you have we can try to replicate problem here

Martin Gainty 
BTW spelled "wired" incorrectly..
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire
 informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement
obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation,
nous ne pouvons accepter aucune responsabilité pour le contenu fourni.


Subject: Weird problem
Date: Tue, 18 May 2010 10:32:18 -0500

I’m trying to create a maven project for the quickstartxmlbeans example.  If I build it
using the axis2-wsdl2code-maven-plugin I get the error below.  If I build it using the ant
build.xml file which is generated it works fine.  This is on xp machine.  It seemed to work
fine on Osx.  I used ant within the pom build file instead of axis2-wsdl2code-maven-plugin
and it worked fine.  Any ideas where to look next?


Caused by: java.lang.RuntimeException: Could not instantiate SchemaTypeSystemImpl (java.lang.reflect.InvocationTargetException):
is the version of xbean.jar correct?

        at schemaorg_apache_xmlbeans.system.sCA62E59A9FA1AB04F2C0D6123E3944E8.TypeSystemHolder.loadTypeSystem(Unknown

        at schemaorg_apache_xmlbeans.system.sCA62E59A9FA1AB04F2C0D6123E3944E8.TypeSystemHolder.<clinit>(Unknown

        ... 30 more

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

        at java.lang.reflect.Constructor.newInstance(

        ... 32 more

Caused by: java.lang.ClassCastException: org.apache.xmlbeans.SchemaGlobalElement$Ref

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.buildContainers(

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(

        ... 36 more


And my configuration




















Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. <>


View raw message