You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by alec <al...@bigfoot.com> on 2000/10/09 05:53:15 UTC

java.lang.IllegalAccessError: try to access class com.sun.xml.tree

Dear struts-user,

I am encountering an error when I try to access the struts-example and
the struts-test applications. The error is as follows:
-------------
Error: 500
Location: /struts-test/bean-parameter.jsp
try to access class com.sun.xml.tree.ParentNode from class
org.apache.jasper.compiler.TagLibraryInfoImpl
-------------

This is my classpath:
-------------
CLASSPATH=.:/usr/java/jdk1.3/lib/dt.jar:/usr/java/jdk1.3/lib/tools.jar:/opt/jaxp/jaxp.jar:/opt/jaxp/parser.jar
-------------

and tomcat starts up with the following classpath
-------------
/opt/tomcat/bin/startup.sh
Using classpath:
.:/opt/tomcat/lib/ant.jar:/opt/tomcat/lib/jasper.jar:/opt/tomcat/lib/servlet.jar:/opt/tomcat/lib/test:/opt/tomcat/lib/webserver.jar:/opt/tomcat/lib/xml.jar:/usr/java/jdk1.3/lib/tools.jar:.:/usr/java/jdk1.3/lib/dt.jar:/usr/java/jdk1.3/lib/tools.jar:/opt/jaxp/jaxp.jar:/opt/jaxp/parser.jar  
-------------

I do not see anything untoward. Am I missing something in my
configuration? Any help or direction would be appreciated.

I also get the following stack trace from tomcat:-
-------------
Unhandled error! You might want to consider having an error page to
report such errors more gracefully
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:174)
        at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:665)
        at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
        at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
        at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:484)