I have the following error:
Illegal UTF8 string in constant pool in class file org/apache/jasper/compiler/Collector$CollectVisitor
I have seen an old thread about this issue right here on Javaranch. The only suggestions were that theJava versionTomcat was using and Netbeans was using was not the same.
So I went into the nbproject/project.properties files and changed this line so it would look like this: j2ee.platform=1.6 Then I did a clean and build. After going into the project properties -> Run (Netbeans) again, I saw Java EE version was now 6, but I couldn't select any server.
Strangely enough Tomcat was still used after running the project.
Nevertheless, there must be something in my Java classes that is too advanced for the Java version of Tomcat to handle?
I don't think that's logical, because I already checked and Tomcat is using JDK 1.6, same as my netbeans project.
This is really important for me and I'm stuck now. I keep getting the same error.
Can anyone help with this error please? Steps to take?..
Thank you very much.
//EDIT: I fixed my problem. I was running Tomcat 7.0.14.
I tried replacing the server with Tomcat 7.0.25.
I no longer receive the error.