2 Replies Latest reply: Sep 27, 2012 1:12 AM by Ajay Sharma RSS

    Exception while calling other class method in web service class

    Ajay Sharma

      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 ?