linux下部署项目报错信息,本地win7环境
500 Servlet Exception
[show]
java.lang.NoSuchMethodError: com.opensymphony.xwork2.util.finder.UrlSet.<init>(Lcom/opensymphony/xwork2/util/finder/ClassLoaderInterface;Ljava/util/Set;)V
javax.servlet.ServletException: java.lang.
NoSuchMethodError: com.opensymphony.xwork2.util.finder.UrlSet.<init>(Lcom/opensymphony/xwork2/util/finder/ClassLoaderInterface;Ljava/util/Set;)V
at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:233)
at com.caucho.server.dispatch.FilterMapper.buildDispatchChain(FilterMapper.java:169)
at com.caucho.server.webapp.WebApp.buildInvocation(WebApp.java:3782)
at com.caucho.server.webapp.WebAppContainer.buildInvocation(WebAppContainer.java:766)
at com.caucho.server.host.Host.buildInvocation(Host.java:755)
at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:319)
at com.caucho.server.cluster.Server.buildInvocation(Server.java:915)
at com.caucho.server.dispatch.InvocationServer.buildInvocation(InvocationServer.java:247)
at com.caucho.server.dispatch.InvocationServer.buildInvocation(InvocationServer.java:220)
at com.caucho.server.http.AbstractHttpRequest.buildInvocation(AbstractHttpRequest.java:1484)
at com.caucho.server.http.AbstractHttpRequest.getInvocation(AbstractHttpRequest.java:1457)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:793)
at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:1186)
at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:1148)
at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:1132)
at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:1055)
at com.caucho.network.listen.TcpSocketLink.handleAcceptTask(TcpSocketLink.java:903)
at com.caucho.network.listen.AcceptTask.doTask(AcceptTask.java:74)
at com.caucho.network.listen.ConnectionTask.runThread(ConnectionTask.java:97)
at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:80)
at com.caucho.network.listen.AcceptTask.run(AcceptTask.java:59)
at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:164)
at com.caucho.env.thread.ResinThread.run(ResinThread.java:130)
跑的maven项目,部署到linux下就报错了,本地可以跑,咋回事,哪个版本问题。。。
楼下看dependencies
------解决方案-------------------- <dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<scope>provided</scope>
<version>2.4</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
&