2012-02-29 73 views
1

我嘗試從RichFaces的3.3至4.2和primefaces升級從1.1到2.2.1從RichFaces的3.3至4.2和primefaces升級從1.1到2.2.1

我有這些罐子:

  • JSF -API-2.0.3.jar(爲1.2之前)
  • JSF的小面-1.1.9.jar
  • JSF的參數impl-2.0.3.jar(爲1.2之前)
  • RichFaces的組件的API -4.2.0.Final
  • RichFaces的組件-UI-4.2.0.Final.jar
  • RichFaces的核-API-4.2.0.Final.jar
  • RichFaces的核 - IMPL-4.2.0.Final.jar
  • MyFaces的-orchestra核-1.4.jar
  • MyFaces的樂團-core20-1.4.jar
  • primefaces-2.2.1.jar
  • 番石榴11.0.2.jar
  • SLF4J-API-1.6.1 .jar
  • quartz-1.6.0.jar
  • servlet的api.jar文件(85.287字節)(2008年1月28日)
  • EL-IMPL-1.0.jar
  • EL-messages.jar
  • 小面-標籤庫-jsf12 - 彈簧 - 3-0.4.jar

和一些春季3.1.0罐子

,但我得到:

Error Loading Library: jar:file:/C:/Users/XXX/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/XXX/WEB-INF/lib/richfaces-components-ui-4.2.0.Final.jar!/META-INF/rich.taglib.xml 
java.io.IOException: Error parsing [jar:file:/C:/Users/XXX/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/XXX/WEB-INF/lib/richfaces-components-ui-4.2.0.Final.jar!/META-INF/rich.taglib.xml]: 

當我刪除JSF的小面-1.1.9.jar,我得到

com.sun.faces.config.ConfigurationException: 
Source Document: jndi:/localhost/XXX/WEB-INF/faces-config.xml 
Cause: Unable to find class 'com.sun.facelets.FaceletViewHandler' 

<application> 
    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> 
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver> 
    <locale-config> 
     <default-locale>en</default-locale> 
     <supported-locale>en</supported-locale> 
    </locale-config> 
    <message-bundle>messages</message-bundle> 
</application> 

刪除此標記後,我得到

Schwerwiegend: Servlet.service() for servlet Faces Servlet threw exception 
java.lang.IllegalArgumentException: Orchestra was unable to create an instance of bean with name 'AccessScopeManager'. Ensure that JSF variable resolution uses your dependency injection (DI) framework (eg Spring's DelegatingVariableResolver is in your faces-config.xml file) and the standard Orchestra configuration beans are defined (eg by using <import resource="classpath*:/META-INF/spring-orchestra-init.xml" />). 

...我想我需要一些幫助

感謝

回答

1

正如你已經升級到JSF 2和JSF 2自帶內置的facelets因此它是不太可能您希望在您的類路徑中使用舊的facelets jar jsf-facelets-1.1.9.jar

BalusC(stackoverflow的JSF專家)有這方面的寫作指導 Migrating from JSF 1.2 to JSF 2.0關於如何升級,還包括facelets升級。

我也在使用facelets-taglib- jsf12 -spring-3-0.4。罐子

按照spring-security-facelets-taglib,你將需要使用 小面,標籤庫,jsf20彈簧-3

我希望這有助於