You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by "Hemanth, Yamini (MSAS Sys Dev IBD)" <Ya...@morganstanley.com> on 2006/12/20 14:51:17 UTC

Query:Runtime exception in AXIS2 while using xmlbeans

Hi,
I am using AXIS2 and the databinding used is Xmlbeans.  When I run the
wsdl command -  C:\Axis2\axis3\bin>wsdl2java  -uri C:/SNOOPY/Snoopy.wsdl
-o C:/SNOOPY -ss -sd -d xmlbeans -g ,
  a list of files were generated. When I compile the application in
EclipseIDE, there are no errors. However, when I try running it , I get
the following errors:
 
Exception in thread "main" java.lang.ExceptionInInitializerError

at com.example.www.snoopy.xsd.Fund$Factory.newInstance(Fund.java:239)

at com.example.www.snoopy.Client.main(Client.java:18)

Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem.
Unable to load class with name
schemaorg_apache_xmlbeans.system.sF9A16A30B7A48352A3E6F4B6118CA60F.TypeS
ystemHolder. Make sure the generated binary files are on the classpath.

at
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783)

at com.example.www.snoopy.xsd.Fund.<clinit>(Fund.java:19)

... 2 more

Caused by: java.lang.ClassNotFoundException:
schemaorg_apache_xmlbeans.system.sF9A16A30B7A48352A3E6F4B6118CA60F.TypeS
ystemHolder

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769)

... 3 more

 

TypeSystemHolder.class is present in the package
resources/schemaorg_apache_xmlbeans/system/sF9A16A30B7A48352A3E6F4B6118C
A60F  . All the other files in this folder have the .xsb extension
except this file. However , after the application is compiled , the
TypeSystemHolder.class  is not present in the output directory. I also
included the same.

Please help.

Please find attached the wsdl file.

 

 

 
Regards,
 
Yamini Hemanth 
Morgan Stanley | Securities Integration Group
Bldg. 5, Sector 30, Mindspace, Goregaon (West) | Floor 02
Mumbai (Ex Bombay), 400 090
Phone: +91 22 6641-0579
yamini.hemanth@morganstanley.com
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

RE: Query:Runtime exception in AXIS2 while using xmlbeans

Posted by "Hemanth, Yamini (MSAS Sys Dev IBD)" <Ya...@morganstanley.com>.
Hi Amila,
Thanks a lot..Someone just suggested the same thing sometime back and
its working fine now....
 
 
Regards,
 
Yamini 
 
 

________________________________

From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] 
Sent: Thursday, December 21, 2006 9:49 AM
To: axis-user@ws.apache.org
Cc: Hemanth, Yamini (MSAS Sys Dev IBD)
Subject: Re: Query:Runtime exception in AXIS2 while using xmlbeans




On 12/20/06, Hemanth, Yamini (MSAS Sys Dev IBD)
<Ya...@morganstanley.com> wrote: 

	
	
	 
	
	Hi,
	I am using AXIS2 and the databinding used is Xmlbeans.  When I
run the wsdl command -  C:\Axis2\axis3\bin>wsdl2java  -uri
C:/SNOOPY/Snoopy.wsdl -o C:/SNOOPY -ss -sd -d xmlbeans -g ,
	  a list of files were generated. When I compile the application
in EclipseIDE, there are no errors. However, when I try running it , I
get the following errors:
	 

try to do this.

go to C:/SNOOPY directory and type  ant (to run the ant task)
this generates a .aar file and  XBeans-packaged.jar in build/lib
directory.
put the XBeans-packaged.jar to your class path.


-- 
Amila Suriarachchi,
Software Engineer,
WSO2 Inc.
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

Re: Query:Runtime exception in AXIS2 while using xmlbeans

Posted by Amila Suriarachchi <am...@gmail.com>.
On 12/20/06, Hemanth, Yamini (MSAS Sys Dev IBD) <
Yamini.Hemanth@morganstanley.com> wrote:
>
>
>
>
>  Hi,
> I am using AXIS2 and the databinding used is Xmlbeans.  When I run the
> wsdl command -  *C:\Axis2\axis3\bin>wsdl2java  -uri C:/SNOOPY/Snoopy.wsdl
> -o C:/SNOOPY -ss -sd -d xmlbeans -g* ,
>   a list of files were generated. When I compile the application in
> EclipseIDE, there are no errors. However, when I try running it , I get the
> following errors:
>
>
try to do this.

go to C:/SNOOPY directory and type  ant (to run the ant task)
this generates a .aar file and  XBeans-packaged.jar in build/lib directory.
put the XBeans-packaged.jar to your class path.


-- 
Amila Suriarachchi,
Software Engineer,
WSO2 Inc.