我对弹簧框架很陌生,需要一些帮助,我在我的应用程序中使用 ebay 服务从 ebay 获取项目。当我在 tomcat 中运行应用程序时,应用程序崩溃并出现以下异常。
描述 服务器遇到一个内部错误 () 阻止它完成这个请求。
例外
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: [Ljavax/xml/ws/WebServiceFeature;
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:920)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.NoClassDefFoundError: [Ljavax/xml/ws/WebServiceFeature;
java.lang.Class.getDeclaredMethods0(Native Method)
java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
java.lang.Class.getDeclaredMethods(Class.java:1791)
com.ebay.common.ClientFactory.getServiceEndpointName(ClientFactory.java:106)
com.ebay.common.ClientFactory.getServiceClient(ClientFactory.java:85)
com.ebay.services.client.FindingServiceClientFactory.getServiceClient(FindingServiceClientFactory.java:34)
com.soft.echelon.eBayService.EBayFindItem.getEBayItemsByKeywords(EBayFindItem.java:89)
com.soft.echelon.Controllers.SearchController.onSubmit(SearchController.java:248)
org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
我应该怎么做才能摆脱这个异常。
提前致谢