JSF环境搭建问题

pujialei 2010-01-09
为了搭建JSF2下载了myeclipse7.5但是不说JSF2了,就连JSF1.2都环境搭建不起来。直接用myeclipse内置的配置JSF tomcat运行就报错了。已经加了那些jar包

哪位好心的帮我看下原因 
com.sun.faces.config.ConfigureListener configure
严重: Cant instantiate class: family=facelets,rendererType=com.sun.facelets.component.RepeatRenderer,rendererClass={3}.
java.lang.ClassCastException: com.sun.facelets.component.RepeatRenderer
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1061)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1133)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:543)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
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:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:578)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-1-9 16:44:57 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.ClassCastException: com.sun.facelets.component.RepeatRenderer
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:442)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
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:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:578)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassCastException: com.sun.facelets.component.RepeatRenderer
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1061)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1133)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:543)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
... 24 more
2010-1-9 16:44:57 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
simaguang 2010-01-09
不要使用自带的tomcat
自己下一个解压缩版的
pujialei 2010-01-10
弄明白了,facelets包没加,加进去就好了
现在我JSF2功能都能用,但是就myeclipse6.5 7.5都不认识标签
6.5报红,7.5不报 都无法alt+/提示h:head h:body 和 f:ajax
Global site tag (gtag.js) - Google Analytics