This discussion is archived
2 Replies Latest reply: Sep 26, 2012 11:12 PM by Ajay Sharma RSS

Exception while calling other class method in web service class

Ajay Sharma Newbie
Currently Being Moderated
Hi..

I created a Web Service. Later I need to add more functionality to web service. So what I did is I created a POJO class in same directory

Then in web service method I created object of newly created class and using object I called the method of that class.

While testing on browser I got Following Exception.
<faultstring>Caught exception while handling request: Caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError: 

       Missing class: webserviceversion.WebServiceVersion

     Dependent class: webserviceversion.VersionTest
              Loader: VesrionWebServiceTest-WebServiceVersion-WS.web.WebServices:0.0.0
         Code-Source: /C:/OAFramework/jdevbin/j2ee/home/applications/VesrionWebServiceTest-WebServiceVersion-WS/WebServices/WEB-INF/classes/
       Configuration: WEB-INF/classes/ in C:\OAFramework\jdevbin\j2ee\home\applications\VesrionWebServiceTest-WebServiceVersion-WS\WebServices\WEB-INF\classes

The missing class is not available from any code-source or loader in the system.</faultstring>
Can't we created Object on class in web service class ?


Regards,
Ajay

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points