Java org.apache.catalina.core.ApplicationContext.log在类路径上未检测到Spring WebApplicationInitializer类型
下面是我从tomcat localhost.log文件获得的日志,虽然.war已成功部署到tomcat webapp文件夹,但没有任何错误,当我尝试通过tomcat manager gui访问war时,它总是给出404错误,如果有人能告诉我哪里出了问题,那就太好了。我也尝试了以前人们针对此类错误发布的几乎所有解决方案,到目前为止没有一个有效:Java org.apache.catalina.core.ApplicationContext.log在类路径上未检测到Spring WebApplicationInitializer类型,java,spring,tomcat7,Java,Spring,Tomcat7,下面是我从tomcat localhost.log文件获得的日志,虽然.war已成功部署到tomcat webapp文件夹,但没有任何错误,当我尝试通过tomcat manager gui访问war时,它总是给出404错误,如果有人能告诉我哪里出了问题,那就太好了。我也尝试了以前人们针对此类错误发布的几乎所有解决方案,到目前为止没有一个有效: 10-Aug-2016 16:50:18.116 INFO [http-nio-8080-exec-18] org.apache.catalina.cor
10-Aug-2016 16:50:18.116 INFO [http-nio-8080-exec-18] org.apache.catalina.core
.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
10-Aug-2016 16:51:41.073 INFO [http-nio-8080-exec-20] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
10-Aug-2016 17:19:16.874 INFO [http-nio-8080-exec-25] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
10-Aug-2016 17:19:16.914 INFO [http-nio-8080-exec-25] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
10-Aug-2016 17:19:17.841 INFO [http-nio-8080-exec-25] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcherServlet'
重新编辑:这是im使用的pom.xml文件
http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.surrey.neo
德莫斯特尼奥
0.0.1-快照
战争
假的
neo4jTest
org.springframework
弹簧芯
4.2.6.1发布
org.springframework
弹簧网
4.2.7.发布
org.springframework
SpringWebMVC
4.2.6.1发布
org.springframework
spring上下文
4.2.6.1发布
org.springframework.data
spring-data-neo4j
4.1.2.1发布
org.springframework.security
spring安全内核
4.0.3.1发布
org.springframework.security
spring安全网
4.0.3.1发布
org.springframework.security
spring安全标记库
4.0.3.1发布
玻璃鱼
javax.faces
2.2.10
javax.validation
验证api
1.0.0.GA
javax.servlet
javax.servlet-api
3.1.0
javax.servlet
jstl
1.2
javax.servlet.jsp
jsp api
2.2
org.apache.tiles
平铺jsp
3.0.5
org.apache.tomcat.maven
tomcat7 maven插件
2.2
/${deploy.name}
真的
http://localhost:8080/manager/text
雄猫
雄猫
maven编译器插件
3.2
1.8
1.8
org.apache.maven.plugins
maven战争插件
2.4
**/*.jsp
WEB-INF/pages
src/main/resources
WEB-INF
**/*
org.apache.maven.plugins
maven依赖插件
复制依赖项
准备包装
复制依赖项
${project.build.directory}/${deploy.name}/WEB-INF/lib
假的
假的
真的
org.apache.maven.plugins
maven eclipse插件
2.9
假的
第二次编辑:web.xml当前正在使用的im文件
<?xml version="1.0" encoding="UTF-8"?>
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
元数据完成=“true”>
上下文配置位置
org.springframework.web.context.ContextLoaderListener
调度员服务
org.springframework.web.servlet.DispatcherServlet
上下文配置位置
WEB-INF/servlet-context.xml
1.
调度员服务
/
index.jsp
60
请发布您如何构建您的战争以及其中包含的内容。谢谢发布web.xml请发布您如何构建您的war以及它包含哪些内容。感谢您发布web.xml
<?xml version="1.0" encoding="UTF-8"?>
<context-param>
<param-name>
contextConfigLocation
</param-name>
<param-value>
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>dispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/servlet-context.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>60</session-timeout>
</session-config>