【问题标题】:I'm trying to implement the Lapis JSF Exporter use PrimeFaces 5.3我正在尝试使用 PrimeFaces 5.3 实现 Lapis JSF Exporter
【发布时间】:2016-04-27 12:29:18
【问题描述】:
在 2.1.20 版本中出现 jsf 错误并且 Project NOT 上升
2016 年 1 月 26 日下午 5:29:21 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks GRAVE:Web 应用程序 [] 创建了一个 ThreadLocal,其键类型为 [javax.faces.context.FacesContext$1](值 [ javax.faces.context.FacesContext$1@1e0429c3]) 和 [org.apache.myfaces.context.servlet.StartupFacesContextImpl] 类型的值(值 [org.apache.myfaces.context.servlet.StartupFacesContextImpl@2351d09a])但失败在 Web 应用程序停止时将其删除。线程将随着时间的推移而更新,以避免可能的内存泄漏
在 2.1.28 版本的 jsf 项目中使用 JSF Lapis Exporter 出现错误:
java.lang.UnsupportedOperationException
字体:https://github.com/rdicroce/jsfexporter
【问题讨论】:
标签:
jsf
primefaces
exporter
【解决方案1】:
经过验证,我发现在我的 pom.xml 文件中使用的前提是“api and impl” MyFaces 与“api and 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>