问题1
每当我试图让我的动态Web应用程序在我的调试服务器(Apache)上运行时,我似乎在eclipse的浏览器上看到如下所示的错误。
问题2 (这已通过编辑2 解决)
在我的错误标签中,我收到如下所示的错误:
修改2
我已按照this帖子上的建议删除了问题标签中出现的问题。显然Tomcat目前还不支持Java 1.8。但是,我仍然没有设法解决问题1 和问题3 ,这些肯定是相关的。
问题3
最后,我的控制台似乎输出了这个:
INFO: 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.
Aug 03, 2015 6:51:56 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Aug 03, 2015 6:51:56 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener.class
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener.class
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1313)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1164)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:120)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4651)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Aug 03, 2015 6:51:56 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Aug 03, 2015 6:51:56 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Aug 03, 2015 6:51:56 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/informaticaAssignment] startup failed due to previous errors
Aug 03, 2015 6:51:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Aug 03, 2015 6:51:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Aug 03, 2015 6:51:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2142 ms
考虑到所有事情,我已经完成了本网站和互联网似乎为我提供的各种答案,但他们都没有得到这个动态的应用程序。我甚至在我的计算机上重新安装了Eclipse和Spring IDE。所有helpo将受到重视!
修改1
以下是我通过Maven添加的所有依赖项:
答案 0 :(得分:3)
你的classpath中没有spring-web-version.jar。添加它,它应解决
答案 1 :(得分:1)
我认为您必须检查所有必需的库是否在您的类路径中。如果是,您可以参考:
http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl