解决Eclipse启动Tomcat时报Error loading WebappClassLoader错误
作者: 来源: 发布时间:2011-12-8 10:11:36 点击:
最近新建了一个JSF项目(网上查到用Struts,Spring MVC也会如此),配置好以后用Eclipse启动Tomcat报了如下错误:严重: Error loading WebappClassLoader
- context: /jsf2nd
- delegate: false
- repositories:
- /WEB-INF/classes/
- ----------> Parent Classloader:
- org.apache.catalina.loader.StandardClassLoader@1172e08
- javax.faces.webapp.FacesServlet
- java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
- at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
- at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
- at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
- at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
- at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
- at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
- at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
- at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
- at org.apache.catalina.core.StandardService.start(StandardService.java:525)
- at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
- at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
- 2011-12-8 9:11:27 org.apache.catalina.core.StandardContext loadOnStartup
- 严重: Servlet /jsf2nd threw load() exception
- java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
- at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
- at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
- at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
- at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
- at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
- at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
- at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
- at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
- at org.apache.catalina.core.StandardService.start(StandardService.java:525)
- at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
- at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
上一篇:JBoss7如何集成Spring 下一篇:
[收藏此文章]