<oxm:jaxb2-marshaller id="marshaller">
<oxm:class-to-be-bound name="myclass"/>
</oxm:jaxb2-marshaller>
Я получаю исключение:
java.lang.NoSuchMethodError:
org.springframework.http.MediaType.sortBySpecificity (Ljava / Util / Список;) V
В чем здесь проблема?
трассировка всего стека:
2010-09-10 21:02:53 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service () для исключения по умолчанию для сервлета
java.lang.NoSuchMethodError: org.springframework.http.MediaType.sortBySpecificity (Ljava / util / List;) V
в org.springframework.web.servlet.view.ContentNegotiatingViewResolver.getMediaTypes (ContentNegotiatingViewResolver.java:295)
в org.springframework.web.servlet.view.ContentNegotiatingViewResolver.resolveViewName (ContentNegotiatingViewResolver.java:355)
в org.springframework.web.servlet.DispatcherServlet.resolveViewName (DispatcherServlet.java:1091)
в org.springframework.web.servlet.DispatcherServlet.render (DispatcherServlet.java:1040)
в org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:798)
в org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:716)
в org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:647)
в org.springframework.web.servlet.FrameworkServlet.doGet (FrameworkServlet.java:552)
на javax.servlet.http.HttpServlet.service (HttpServlet.java:617)
на javax.servlet.http.HttpServlet.service (HttpServlet.java:717)
в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290)
в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
в org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:646)
в org.apache.catalina.core.ApplicationDispatcher.processRequest (ApplicationDispatcher.java:436)
в org.apache.catalina.core.ApplicationDispatcher.doForward (ApplicationDispatcher.java:374)
в org.apache.catalina.core.ApplicationDispatcher.forward (ApplicationDispatcher.java:302)
в org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite (NormalRewrittenUrl.java:195)
в org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite (RuleChain.java:159)
в org.tuckey.web.filters.urlrewrite.RuleChain.doRules (RuleChain.java:141)
в org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest (UrlRewriter.java:90)
в org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter (UrlRewriteFilter.java:417)
в org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:235)
в org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206)
в org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233)
в org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191)
в com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke (HttpRequestOperationCollectionValve.java:60)
в org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128)
в org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
в org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109)
в org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:293)
в org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:849)
в org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process (Http11Protocol.java:583)
в org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run (JIoEndpoint.java:379)
в java.util.concurrent.ThreadPoolExecutor $ Worker.runTask (ThreadPoolExecutor.java:885)
в java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:907)
at java.lang.Thread.run (Thread.java:619)