4 Replies Latest reply on Apr 5, 2010 11:40 PM by Tim Eakins

    Web service call or javax.xml.bind.JAXBException

    Ilya Romanenko Newbie

      When i'm calling web service there is

      17:09:29,562 ERROR [RequestHandlerImpl] Error processing web service request
      org.jboss.ws.WSException: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
      - with linked exception:
      [javax.xml.bind.JAXBException: class com.mtsys.services.ResourceID nor any of its super class is known to this context.]
      at org.jboss.ws.WSException.rethrow(WSException.java:68)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
      at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)

      ResourceID class:
      package test;
      
      import javax.xml.bind.annotation.XmlAccessorType;
      import javax.xml.bind.annotation.XmlAccessType;
      import javax.xml.bind.annotation.XmlType;
      import javax.xml.bind.annotation.XmlElement;
      
      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name = "ResourceID")
      public class ResourceID {
       @XmlElement(nillable = true)
       private ULongLong container;
       @XmlElement(nillable = true)
       private ULongLong fragment;
      
       public ResourceID(ULongLong container, ULongLong fragment) {
       this.container = container;
       this.fragment = fragment;
       }
      
       public ULongLong getContainer() {
       return container;
       }
      
       public void setContainer(ULongLong container) {
       this.container = container;
       }
      
       public ULongLong getFragment() {
       return fragment;
       }
      
       public void setFragment(ULongLong fragment) {
       this.fragment = fragment;
       }
      }
      

      Is there any suggestions?