You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Phee, Marty" <mp...@devry.edu> on 2010/05/18 17:32:18 UTC

Weird problem

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.TypeS
ystemHolder.loadTypeSystem(Unknown Source)

        at
schemaorg_apache_xmlbeans.system.sCA62E59A9FA1AB04F2C0D6123E3944E8.TypeS
ystemHolder.<clinit>(Unknown Source)

        ... 30 more

Caused by: java.lang.reflect.InvocationTargetException

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

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)

        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.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(Sch
emaTypeSystemImpl.java:690)

        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(Sche
maTypeSystemImpl.java:322)

        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSy
stemImpl.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>


RE: Weird problem

Posted by "Phee, Marty" <mp...@devry.edu>.
Thanks, but it looks like the file is being found.

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.sFB382F0125080271F6EF0AC64E086488.TypeSystemHolder.loadTypeSystem(Unknown Source)
        at schemaorg_apache_xmlbeans.system.sFB382F0125080271F6EF0AC64E086488.TypeSystemHolder.<clinit>(Unknown Source)
       
It seems to be here

Caused by: java.lang.ClassCastException: org.apache.xmlbeans.SchemaGlobalElement$Ref
        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.buildContainers(SchemaTypeSystemImpl.java:690)
        at org.apa



-----Original Message-----
From: robert lazarski [mailto:robertlazarski@gmail.com] 
Sent: Tuesday, May 18, 2010 11:21 AM
To: java-user@axis.apache.org
Subject: Re: Weird problem

On Tue, May 18, 2010 at 12:32 PM, Phee, Marty <mp...@devry.edu> wrote:
> 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)

A similar TypeSystemHolder problem and resolution is in the docs. The
difference is probably due to the docs were written a while back, and
later xmlbean packages changed the message:

http://ws.apache.org/axis2/tools/1_4/CodegenToolReference.html

The url is broken on the latest few releases, so I see, but nothing
has changed here AFAIK. I don't use the axis2-wsdl2code-maven-plugin
so I can't help there specifically, the resolution is most likelly the
same.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Weird problem

Posted by robert lazarski <ro...@gmail.com>.
On Tue, May 18, 2010 at 12:32 PM, Phee, Marty <mp...@devry.edu> wrote:
> 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)

A similar TypeSystemHolder problem and resolution is in the docs. The
difference is probably due to the docs were written a while back, and
later xmlbean packages changed the message:

http://ws.apache.org/axis2/tools/1_4/CodegenToolReference.html

The url is broken on the latest few releases, so I see, but nothing
has changed here AFAIK. I don't use the axis2-wsdl2code-maven-plugin
so I can't help there specifically, the resolution is most likelly the
same.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


RE: Weird problem

Posted by "Phee, Marty" <mp...@devry.edu>.
1.       Seems to be using the latest.  I have a separate pom for the webapp using this:

<dependency>

            <groupId>org.apache.axis2</groupId>

            <artifactId>axis2-webapp</artifactId>

            <version>1.5.1</version>

            <type>war</type>

        </dependency>

 

2.        It’s packaged in the aar by the plugin and it’s not complaining about not finding the file.

 

From: ceri tandogan [mailto:ceritandogan@yahoo.com] 
Sent: Tuesday, May 18, 2010 12:03 PM
To: java-user@axis.apache.org
Subject: Re: Weird problem

 


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


RE: Weird problem

Posted by "Phee, Marty" <mp...@devry.edu>.
If I include the schemaorg_apache_xmlbeans in the aar at the root of the
package (aar/schemaorg_apache_xmlbeans) it fails, but if I include them
in a jar like the ant script does (aar/lib/XBeans-packaged.jar) it works
fine.  So it must be some kind of loading problem and finding the wrong
ones...

-----Original Message-----
From: Phee, Marty [mailto:mphee@devry.edu] 
Sent: Tuesday, May 18, 2010 1:11 PM
To: java-user@axis.apache.org
Subject: RE: Weird problem

Axis2 1.5.1
I tried xmlbeans 2.4.0 and same problem.  

Why would the ant build work, but not maven on the same code base?


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


RE: Weird problem

Posted by "Phee, Marty" <mp...@devry.edu>.
Axis2 1.5.1
I tried xmlbeans 2.4.0 and same problem.  

Why would the ant build work, but not maven on the same code base?

-----Original Message-----
From: robert lazarski [mailto:robertlazarski@gmail.com] 
Sent: Tuesday, May 18, 2010 12:42 PM
To: java-user@axis.apache.org
Subject: Re: Weird problem

On Tue, May 18, 2010 at 2:36 PM, Phee, Marty <mp...@devry.edu> wrote:
> When I use the plugin it generates this for struct8d8bdoctype.xsb
>
> SchemaTypeSystemImpl:690
>
> 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.

http://grepcode.com/file/repo1.maven.org$maven2@org.apache.xmlbeans$xmlb
eans@2.4.0@org$apache$xmlbeans$impl$schema$SchemaTypeImpl.java

Not sure what axis2 and xmlbeans version you are using, but the source
does indicate later versions fixed a ClassCastException issue, maybe
that's the issue you are hitting.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Weird problem

Posted by robert lazarski <ro...@gmail.com>.
On Tue, May 18, 2010 at 2:36 PM, Phee, Marty <mp...@devry.edu> wrote:
> When I use the plugin it generates this for struct8d8bdoctype.xsb
>
> SchemaTypeSystemImpl:690
>
> 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.

http://grepcode.com/file/repo1.maven.org$maven2@org.apache.xmlbeans$xmlbeans@2.4.0@org$apache$xmlbeans$impl$schema$SchemaTypeImpl.java

Not sure what axis2 and xmlbeans version you are using, but the source
does indicate later versions fixed a ClassCastException issue, maybe
that's the issue you are hitting.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


RE: Weird problem

Posted by "Phee, Marty" <mp...@devry.edu>.
When I use the plugin it generates this for struct8d8bdoctype.xsb

SchemaTypeSystemImpl:690

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

_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) it.next();

            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 ..you spelled "wired" incorrectly..

 

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

 

From: ceri tandogan [mailto:ceritandogan@yahoo.com] 
Sent: Tuesday, May 18, 2010 12:03 PM
To: java-user@axis.apache.org
Subject: Re: Weird problem

 


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 <mg...@hotmail.com>
To: java-user@axis.apache.org
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: mphee@devry.edu
To: java-user@axis.apache.org

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. <http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1> 

 


Re: Weird problem

Posted by ceri tandogan <ce...@yahoo.com>.
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 <mg...@hotmail.com>
To: java-user@axis.apache.org
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: mphee@devry.edu
To: java-user@axis.apache.org

 
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.


      

RE: Weird problem

Posted by Martin Gainty <mg...@hotmail.com>.
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: mphee@devry.edu
To: java-user@axis.apache.org
















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.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1