Hello,

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.

CT


________________________________
From: Martin Gainty <[email protected]>
To: [email protected]
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 ..you 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
From: [email protected]
To: [email protected]

 
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
Source)
        at
schemaorg_apache_xmlbeans.system.sCA62E59A9FA1AB04F2C0D6123E3944E8.TypeSystemHolder.<clinit>(Unknown
Source)
        ... 30 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:501)
        ... 32 more
Caused by: java.lang.ClassCastException:
org.apache.xmlbeans.SchemaGlobalElement$Ref
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.buildContainers(SchemaTypeSystemImpl.java:690)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:322)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:185)
        ... 36 more
 
And my configuration
<groupId>org.apache.axis2</groupId>
               
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
               
<version>${axis2.version}</version>
               
<configuration>
                   
<packageName>samples.quickstart.service.xmlbeans</packageName>
                   
<generateServerSide>true</generateServerSide>
                   
<generateServerSideInterface>true</generateServerSideInterface>
                   
<databindingName>xmlbeans</databindingName>
                   
<generateServicesXml>false</generateServicesXml>
                   
<outputDirectory>src/main/</outputDirectory>
                   
<wsdlFile>${basedir}/src/main/resources/META-INF/StockQuoteService.wsdl</wsdlFile>
                   
<namespaceToPackages>
                        
http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd
                   
</namespaceToPackages>
                   
<targetSourceFolderLocation>java/</targetSourceFolderLocation>
                   
<targetResourcesFolderLocation>resources/</targetResourcesFolderLocation>
               
</configuration>
________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more.


      

Reply via email to