Search code examples
javajsftomcatjsf-2tomcat8

"Unknow type constant pool at position X" in tomcat logs since java 8


I have a Java JSF2 web based application deployed on a Tomcat server, and since we moved to Java 8 / Tomcat 8 this error appears a lot in the tomcat output:

déc. 05, 2016 10:51:07 AM com.sun.faces.config.JavaClassScanningAnnotationScanner$ConstantPoolInfo containsAnnotation
GRAVE: Unknow type constant pool 0 at position 178

I tried different stuff to fix this warning but it always comes back.

Is this log a symptom of any issue ? Is it just a normal output? Is there a way to fix this?


Solution

  • I was presenting the same problem

    Today I updated my pom.xml file to jsf version: 2.2.15 and that ERROR log was gone.

    <dependency>
       <groupId>com.sun.faces</groupId>
       <artifactId>jsf-api</artifactId>
       <version>${jsf.version}</version>
       <scope>provided</scope>
    </dependency>
    
    <dependency>
       <groupId>com.sun.faces</groupId>
       <artifactId>jsf-impl</artifactId>
       <version>${jsf.version}</version>
       <scope>provided</scope>
    </dependency>