`

配置 jsf+spring+hibernate 问题整理

    博客分类:
  • jsf
阅读更多
1.
org.apache.jasper.JasperException: /login.jsp(12,9) The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
问题解决:
在web.xml里添加
<jsp-config></jsp-config>
xml 代码
 
  1. <jsp-config>  
  2.     <taglib>  
  3.         <taglib-uri>http://java.sun.com/jstl/coretaglib-uri>  
  4.         <taglib-location>/WEB-INF/c.tldtaglib-location>  
  5.     taglib>       
  6.   jsp-config>  

 
并将c.tld添加到WEB-INF/下
2.
Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
问题解决:
缺少standard.jar包,将standard.jar复制到lib目录下即可
standard.jar下载:http://www.apache.org/dist/jakarta/taglibs/standard/ 下载jakarta-taglibs-standard-current.tar.gz,在lib里.
3.
Exception sending context initialized event to listener instance of class com.sun.faces.config.GlassFishConfigureListener
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/AbstractHashedMap
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
commons-collections.jar 版本过低,下载最新版的commons-collections-3.2.jar添加到工程的lib目录下即可.
4.添加 richfaces-ui-3.1.2 后要保证 工程lib中有:
commons-digester.jar ,commons-beanutils.jar 和commons-collections-3.2.jar

5.添加myfaces1.2 报错:
ERROR MyfacesConfig:199 - Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics