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

    Help:Cannot obtain endpoint meta data!

    caijc

      jboss4.2.2+jdk6
      @WebService(name="BookWS",targetNamespace="http://net.cjc.ws",serviceName="BookWSService")
      @SOAPBinding(style= SOAPBinding.Style.RPC)
      @Stateless
      public class BookWS {
      @EJB
      private AuthorManager am;
      @WebMethod
      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)

      Why?


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

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

           

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

          <jboss-web>

              <class-loading java2ClassLoadingCompliance="false">

                  <loader-repository>

                      package:system.war=unique-system.war

                      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>

                  </loader-repository>

              </class-loading>

          </jboss-web>