Java项目启动问题...帮忙看下什么问题_Spring

来源:百度知道 编辑:UC知道 时间:2024/06/04 07:32:41
信息: validateJarFile(D:\workspace\Web_WWW\WWW\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
- Set web app root system property: 'webapp.root' = [D:\workspace\Web_WWW\WWW\]
- Initializing Log4J from [D:\workspace\Web_WWW\WWW\WEB-INF\log4j.properties]
2009-05-09 16:49:21 [org.springframework.web.context.ContextLoader]-[INFO] Root WebApplicationContext: initialization started
2009-05-09 16:49:21 [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Web_WWW]]-[INFO] Loading Spring root WebApplicationContext
2009-05-09 16:49:21 [org.springframework.core.CollectionFactory]-[INFO] JDK 1.4+ collections available
2009-05-09 16:49:21 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2009-05-0

你的validateJarFile(D:\workspace\Web_WWW\WWW\WEB-INF\lib\servlet-api.jar) 问题是myeclipse构建路径问题,在加载到TOMCAT之前要让它构建完毕,再加载到TOMCAT,我也遇到了,要==在加载就好了

org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'cacheContainer' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Bean class [an.com.www.util.cache.CacheContainer] not found; nested exception is java.lang.ClassNotFoundException:

没有找到相应的类

您配置的路径可能有点问题
你自己好好的检查一下路径吧!

alidateJarFile(D:\workspace\Web_WWW\WWW\WEB-INF\lib\servlet-api.jar) - jar not loaded.

第一个问题,这个jar包没有加载,因为jar包冲突问题,可能你使用的web容器同样有这个jar包(可能名字不同),版本不一样。比如它可能是基于2.4协议的。
解决方案是,将web容器中的同样的jar包,删除使用你的jar包替换。或者删除你的jar包,使用容器的jar包,编译你的工程,然后再重新发布即可。