Zillionnn 2015-12-09 13:37 采纳率: 28.6%
浏览 3000

springMVC的web.xml,加listener有什么要求吗,不能启动

 [2015-12-09 09:36:26,193] Artifact demoAmiguo3:war exploded: Artifact is being deployed, please wait...
十二月 09, 2015 9:36:26 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(G:\PROJECT\demoAmiguo3\target\spring\WEB-INF\lib\servlet-api-2.3.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
十二月 09, 2015 9:36:26 下午 org.apache.catalina.deploy.WebXml setVersion
警告: Unknown version string [3.1]. Default version will be used.
十二月 09, 2015 9:36:27 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
十二月 09, 2015 9:36:27 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十二月 09, 2015 9:36:27 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors

上面是报错的,

  • 写回答

3条回答 默认 最新

  • pucheung 2015-12-10 04:36
    关注

    建议把完整的错误贴出来,listener监听器,是spring提供的,表示在启动程序的时候会去加载一些配置文件 而这些配置文件是需要在context-param中
    去配置的,当然我们还有另外一种方式去加载配置文件,那就是直接在web.xml中dispatcherServlet中去配置init-param来指定配置文件。另外还有一种方式比较固定
    那就是我们既不需要配置listener也不需要init-param,直接在web-inf下配置applicationContext-servlet.xml 注意必须使用固定的文件名

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog