服务器上部署tomcat出错Failed to process JAR found at URL [/gps-HttpService] for ServletContainerInitializers
2016-09-20 17:14
1226 查看
项目为maven项目,使用SSM框架,JDK为1.8+tomcat8,在本机开发,部署都没问题的
但是部署到服务器上时,使用服务器上的tomcat8,会出现以下错误
org.apache.catalina.startup.ContextConfig.processServletContainerInitializers Failed to process JAR found at URL [/gps-HttpService] for
ServletContainerInitializers for context with name [{1}]
java.io.IOException: java.lang.ClassCastException: Cannot cast org.springframework.web.SpringServletContainerInitializer to javax.servlet.ServletContainerInitializer
服务器环境为JDK1.7,并且已经将项目编译为JDK1.7,但还是无法解决此问题。
不知道此问题是什么情况导致,最后是更换了一个新下载的tomcat8替换即可解决。
但是部署到服务器上时,使用服务器上的tomcat8,会出现以下错误
org.apache.catalina.startup.ContextConfig.processServletContainerInitializers Failed to process JAR found at URL [/gps-HttpService] for
ServletContainerInitializers for context with name [{1}]
java.io.IOException: java.lang.ClassCastException: Cannot cast org.springframework.web.SpringServletContainerInitializer to javax.servlet.ServletContainerInitializer
服务器环境为JDK1.7,并且已经将项目编译为JDK1.7,但还是无法解决此问题。
不知道此问题是什么情况导致,最后是更换了一个新下载的tomcat8替换即可解决。
相关文章推荐
- JeeSite的开发环境部署 -- 异常:java.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializer
- 关于android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
- 安装tomcat时出错:failed to install tomcat6 service问题的解决方法
- ArcMap 连接SDE 出错“Failed to connect to the specified server. Entry for SDE instance no found in services file.”
- Android-67-Tomcat启动出错:Server Tomcat v7.0 Server at localhost failed to start.
- eeplat 在tomcat 6.0下面部署的时候出现Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessi
- 解决安装tomcat服务出错:failed to install tomcat6 service
- 在Eclipse里面启动tomcat服务器出现Server Tomcat v8.0 Server at localhost failed to start.问题
- "server tomcat v8.0 server at localhost failed to start"+"A child container failed during start"
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX
- HTTP could not register URL http://+:8000/testservice/. Your process does not have access rights to this namespace 解决方案
- 关于android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
- springmvc应用程序使用maven部署到tomcat中时产生的异常的解决(javax/servlet/ServletContext&SpringServletContainerInitializer->javax.servlet.ServletContainerInitializer)
- 关于android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
- 关于android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
- Iphone真机调试出错:launching remote program: failed to get the task for process XXX
- android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
- Android-67-Tomcat启动出错:Server Tomcat v7.0 Server at localhost failed to start.
- eclipse安装PyDev插件出错No software site found at jar:file:[离线包路径]!/. Do you wish to edit the location?