java.lang.IllegalStateException: Cannot obtain endpoint meta data

JBoss Issue Tracker | cai jc | 9 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    I created a web service endpoint using JWS: /* * BookWS.java * * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package net.cjc.ws; import java.util.List; import javax.ejb.*; import javax.jws.*; import javax.jws.soap.SOAPBinding; import net.cjc.beans.AuthorManager; import net.cjc.entity.Book; @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<Book> getMyBook(String me) { return am.queryBooks(me); }*/ @WebMethod public String getMyBook(String me) { return "you have nothing!"; } } And modified web.xml to configure this endpoint as a servlet. At deploy time,the app server throws an exception: 06:13:45,593 ERROR [MainDeployer] Could not start deployment: file:/D:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp7551cjc.ear-contents/cjc-war.war java.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) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139) at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105) at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116) ... But I still can see this web service from http://localhost:8080/jbossws/services.While I click it to retrieve WSDL,another exception is thrown: 06:25:15,796 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) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doGet(RequestHandlerImpl.java:144) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:126) at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) .... Is this a bug? or my fault?

    JBoss Issue Tracker | 9 years ago | cai jc
    java.lang.IllegalStateException: Cannot obtain endpoint meta data
  3. 0

    I created a web service endpoint using JWS: /* * BookWS.java * * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package net.cjc.ws; import java.util.List; import javax.ejb.*; import javax.jws.*; import javax.jws.soap.SOAPBinding; import net.cjc.beans.AuthorManager; import net.cjc.entity.Book; @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<Book> getMyBook(String me) { return am.queryBooks(me); }*/ @WebMethod public String getMyBook(String me) { return "you have nothing!"; } } And modified web.xml to configure this endpoint as a servlet. At deploy time,the app server throws an exception: 06:13:45,593 ERROR [MainDeployer] Could not start deployment: file:/D:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp7551cjc.ear-contents/cjc-war.war java.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) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139) at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105) at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116) ... But I still can see this web service from http://localhost:8080/jbossws/services.While I click it to retrieve WSDL,another exception is thrown: 06:25:15,796 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) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doGet(RequestHandlerImpl.java:144) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:126) at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) .... Is this a bug? or my fault?

    JBoss Issue Tracker | 9 years ago | cai jc
    java.lang.IllegalStateException: Cannot obtain endpoint meta data

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot obtain endpoint meta data

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequestFromServletContext()
    2. JBoss Web Services - Native Server
      RequestHandlerImpl.handleHttpRequest
      1. org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequestFromServletContext(RequestHandlerImpl.java:649)
      2. org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:612)
      3. org.jboss.wsf.stack.jbws.RequestHandlerImpl.doGet(RequestHandlerImpl.java:153)
      4. org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:135)
      4 frames
    3. org.jboss.wsf
      AbstractEndpointServlet.service
      1. org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:109)
      1 frame
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      1 frame
    5. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    6. JBoss Application Server Tomcat
      ReplyHeaderFilter.doFilter
      1. org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      1 frame
    7. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      4 frames
    8. JBoss Application Server Tomcat
      SecurityAssociationValve.invoke
      1. org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      1 frame
    9. Glassfish Core
      AuthenticatorBase.invoke
      1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      1 frame
    10. JBoss Application Server Tomcat
      JaccContextValve.invoke
      1. org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      1 frame
    11. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      3. org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
      4. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      5. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      5 frames
    12. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      3 frames
    13. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame