不管是在Eclipse下导入项目还是自己新建立的项目,运行后种种异常.主要有:
2013-11-7 0:49:57 org.apache.catalina.core.StandardContext listenerStop 严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError: org/springframework/web/context/ContextCleanupListener at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:80) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4980) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5626) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3947) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) at java.lang.Thread.run(Unknown Source)
最终还是跑起来了,总结如下:
- 要将所有用到的JAR文件放在WEB-INF/lib文件夹下面
- 原始的项目代码里缺少一个jstl-1.2.jar,需要将这个补上
-
原项目的Web根目录设置是WebRoot,Eclipse下默认新建的是WebContent,可以通过修改.mymetadata文件的如下部分为WebContent:
<attributes> <attribute name="webrootdir" value="WebContent" /> </attributes>
最后感叹一下这个helloworld居然用了将近30个JAR包,截图纪念一下:
相关推荐
1.精通Spring 4.x 企业应用开发实战精通Spring 4.x 企业应用开发实战精通Spring 4.x 企业应用开发实战精通Spring 4.x 企业应用开发实战精通Spring 4.x 企业应用开发实战精通Spring 4.x 企业应用开发实战精通Spring 4...
《Spring 3.x 企业应用开发实战》一书的部分lib包
Spring3.x企业应用开发实战(包括源码)绝对完整版 因未见太大,分8个小块(其他部分在本人资料里面查找),只有前4个每个收1分,后面4个免费下载,共4分,绝对完整,包含所有章节,不完整浏览分享
《Spring 3.x企业应用开发实战》
Spring 3.x 企业应用开发实战 Spring 3.x 企业应用开发实战 Spring 3.x 企业应用开发实战 Spring 3.x 企业应用开发实战
Spring+3.x企业应用开发实战光盘源码(全) 资源内容如下: chapter2 ---schema ---src ---test ---WebRoot .... .myeclipse .settings .classpath .mymetadata .project charpter3 同上 .... .... .... charpter...
Spring3.x企业应用开发实战
Spring3.x 企业应用开发实战 光盘源码 1-19章完全版,删除class
跟着spring3.x企业应用开发实战这本书做练习,结果代码照书里的敲发现各种缺少jar包,一路补充了大概五六个包,把第二章需要的都拷贝进来了。spring部分的jar包可能多了些自行删掉。有asm.jar,cglib.jar,junit.jar...
精通Spring 4.x 企业应用开发实战:书和配套的源码。
本书是在《精通Spring 3.x――企业应用开发详解》的基础上,历时一年的重大调整改版而成的,延续了上一版本“追求深度,注重原理,不停留在技术表面”的写作风格,力求使读者在熟练使用Spring的各项功能的同时透彻...
Spring3.x企业应用开发实战各个章节的光盘源码,可结合Spring3.x企业应用开发实战共同学习。
Spring 3.x 企业应用开发实战.pdf spring入门利器,通俗易懂,值得拥有
精通Spring4.x企业应用开发实战pdf+源码,书和代码对的上呦
《Spring 3.x 企业应用开发实战》光盘附带各章节源代码。压缩分卷第二部分
《Spring3.x企业应用开发实战》是在《精通Spring2.x——企业应用开发详解》的基础上,经过历时一年的重大调整改版而成的,本书延续了上一版本追求深度,注重原理,不停留在技术表面的写作风格,力求使读者在熟练...
Spring3.x 企业应用开发实战 pdf 有目录 ,方便定位到章节
Spring+3.x企业应用开发实战光盘源码(全).rar
spring 3.x企业应用开发实战