Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet not not loading axis2 xmlBeans jar

 
Sathees sam
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic