1 Reply Latest reply on Apr 17, 2015 7:52 AM by merbel

    Help:Cannot obtain endpoint meta data!


      @SOAPBinding(style= SOAPBinding.Style.RPC)
      public class BookWS {
      private AuthorManager am;
      public List getMyBook(String me)
      return am.queryBooks(me);

      and I also configured web.xml to define this endpoint as a servlet.
      While I deploy this war,the following exception is thrown:
      ava.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
      at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)...

      But I still can see this web service from jbossws;When I click the related link,the browser says it cannot phrase XML.Another exception is thrown on the console:
      01:25:36,750 ERROR [RequestHandlerImpl] Error processing web service request
      java.lang.IllegalStateException: Cannot obtain endpoint meta data
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:520)


        • 1. Re: Help:Cannot obtain endpoint meta data!

          In my case I had to add jboss-web.xml inside WEB-INF. Example is here:


          <?xml version='1.0' encoding='UTF-8' ?>


              <class-loading java2ClassLoadingCompliance="false">