my dog learned polymorphism
The moose likes Web Services and the fly likes Servlet not not loading axis2 xmlBeans jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Servlet not not loading axis2 xmlBeans jar" Watch "Servlet not not loading axis2 xmlBeans jar" New topic
Author

Servlet not not loading axis2 xmlBeans jar

Sathees Tharmarajah
Greenhorn

Joined: Aug 09, 2009
Posts: 20
hi All,

I have developed a small web application, there on Servlet call the Axis2 web services using its ws xml beans clients.
following line of code gives following error. but I have placed the xmlbeans-2.3.0.jar in Webapp/myApp/WEB-INF/lib
try{
Class.forname("test.xsd.SampleRequest");
}catch(Exception e){
e.printStractrace();
}
......................... console out is ..........................
java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

your valuable reply would be helpful to me.

sathees
 
Have you checked out Aspose?
 
subject: Servlet not not loading axis2 xmlBeans jar
 
It's not a secret anymore!