This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Ryan McClain
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/ 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic