Exception_java.lang.ClassNotFoundException: javax.faces.lifecycle.Lifecycle

2014-11-3 15:21:04[ERROR](CommonsLogger.java:38)  Actual exception

Could not load class org.apache.struts2.jsf.FacesSetupInterceptor. Perhaps it exists but certain dependencies are not available? - interceptor - jar:file:/D:/des/apache-tomcat-6.0.20/webapps/cmis/WEB-INF/lib/struts2-jsf-plugin-2.2.1.jar!/struts-plugin.xml:35:97

at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:213)

at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:70)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:998)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:817)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:830)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:853)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:460)

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)

at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)

at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)

at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)

at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)

at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)

at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:583)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.lang.NoClassDefFoundError: javax/faces/lifecycle/Lifecycle

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)

at java.lang.Class.getDeclaredMethods(Class.java:1808)

at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:90)

at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(ContainerImpl.java:86)

at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:71)

at com.opensymphony.xwork2.inject.ContainerImpl$1.create(ContainerImpl.java:67)

at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76)

at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116)

at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:483)

at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:523)

at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:521)

at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)

at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:521)

at com.opensymphony.xwork2.ObjectFactory.injectInternalBeans(ObjectFactory.java:138)

at com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(SpringObjectFactory.java:198)

at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:173)

at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:144)

at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)

at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:191)

... 41 more

Caused by: java.lang.ClassNotFoundException: javax.faces.lifecycle.Lifecycle

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)

... 64 more

 

原因 : 缺少jsf必须得jar 补全即可

JSF含所需的七个jar包

* jsf-impl.jar 

* jsf-api.jar 

* commons-digester.jar 

* commons-collections.jar 

* commons-beanutils.jar 

* jstl.jar 

* standard.jar 

 

你可能感兴趣的:(Exception_java.lang.ClassNotFoundException: javax.faces.lifecycle.Lifecycle)