2016-04-27 19 views
0

在2.1.20版本JSF出現錯誤,並且不計劃上升我試圖實現青金石JSF出口商使用PrimeFaces 5.3

Abr 26, 2016 5:29:21 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks GRAVE: The web application [] created a ThreadLocal with key of type [javax.faces.context.FacesContext$1] (value [[email protected]]) and a value of type [org.apache.myfaces.context.servlet.StartupFacesContextImpl] (value [[email protected]09a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak

在2.1.28版本JSF項目和使用JSF青金石出口出現錯誤:

java.lang.UnsupportedOperationException

豐泰:https://github.com/rdicroce/jsfexporter

回答

0

驗證後,我確定了我的pom.xml文件中使用的處所「API和實現」的MyFaces w^ith與「api和impl」JSF衝突後,刪除了jsf依賴關係的工作。

我的pom.xml ...

<dependency> 
     <groupId>org.apache.myfaces.core</groupId> 
     <artifactId>myfaces-api</artifactId> 
     <version>${myfaces.version}</version> 
</dependency> 

<dependency> 
    <groupId>org.apache.myfaces.core</groupId> 
    <artifactId>myfaces-impl</artifactId> 
    <version>${myfaces.version}</version> 
</dependency> 

評論或刪除...

<dependency> 
    <groupId>com.sun.faces</groupId> 
    <artifactId>jsf-api</artifactId> 
    <version>2.1.28</version> 
</dependency> 

<dependency> 
    <groupId>com.sun.faces</groupId> 
    <artifactId>jsf-impl</artifactId> 
    <version>2.1.28</version> 
</dependency>