You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Andrew Newton <an...@netsol.com> on 2000/02/24 20:22:22 UTC

IllegalAccessError

I'm running Tomcat 3.1 M1 and when I run the simple taglib JSP example,
I get the following error:

java.lang.IllegalAccessError: try to access class com/sun/xml/tree/ParentNode from class org/apache/jasper/compiler/TagLibraryInfoImpl
        at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:155)
        at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:648)
        at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
        at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:198)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1027)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1002)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:998)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:154)
        at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:226)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:255)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:360)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:403)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:224)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:347)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
        at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:305)
        at java.lang.Thread.run(Thread.java:475)

I looked at line 155 of TagLibraryInfoImpl and couldn't figure out what was causing
the illegal access.

That's when I decided to switch jvm's.  I'm running on Linux and was using the jdk 1.2.2 rc3
from blackdown.  So I backed down to jdk 1.2.2 rc2 and got the same result.  Then I downloaded
the Linux production release of jdk 1.2.2 from Sun and still got the same result.  Finally I
tried using IBM's 1.1.8 and that worked.

Has anyone else run into this?


-- 
------------------------------------------------------------------------------
                 Andrew Newton - Senior Research Engineer
             CTO Research Department - Network Solutions, Inc.
------------------------------------------------------------------------------