aspose file tools*
The moose likes Tomcat and the fly likes Illegal UTF8 string in constant pool in class file org/apache/jasper/compiler/Collector$CollectVisit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Illegal UTF8 string in constant pool in class file org/apache/jasper/compiler/Collector$CollectVisit" Watch "Illegal UTF8 string in constant pool in class file org/apache/jasper/compiler/Collector$CollectVisit" New topic
Author

Illegal UTF8 string in constant pool in class file org/apache/jasper/compiler/Collector$CollectVisit

Ryan McClain
Ranch Hand

Joined: Nov 27, 2010
Posts: 106
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 the Java version Tomcat 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.
 
 
subject: Illegal UTF8 string in constant pool in class file org/apache/jasper/compiler/Collector$CollectVisit