When running a servlet from within Tomcat I get the following exception:

java.lang.IllegalAccessError: try to access field org.w3c.tidy.ParserImpl._parseHead 
from class org.w3c.tidy.ParserImpl$ParseHTML
     at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
     at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
     at org.w3c.tidy.Tidy.parse(Tidy.java)
     at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
                ...

A method in the inner class $ParseHTML is trying to access a private field
_parseHead in the containing class, but that is legal as far as I know.
When I move the body of this servlet to a stand alone application it runs
fine - no exceptions.  Is there some strange JVM security manager here that
is different from running as a real application?  Anyone have an idea what
is going on?

Reply via email to