After further investigation this seems to be something specific to the
4.0b5 version of Tomcat. It does not occur in 3.3 milestone 3 or 3.2. I
think this may indicate a classloader problem. I will investigate further
and post something to the bug database. Thanks for your suggestions.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 11:20 AM
Subject: IllegalAccessError when run from Tomcat
> 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?
>