0 Replies Latest reply on Mar 6, 2003 3:12 AM by David Hudson

    IllegalAccessError: try to access field org.apache.xpath.com

    David Hudson Newbie

      I have a JSP that uses the JSTL to perform an xslt transformation. The first time that this is called I get the stack trace at the bottom of the page. On subsequent invocations of the routine it works without any errors.

      The exception does not really make sense as the calling and references classes are in the same package, and the reference var is scoped at package level - i.e. not private, protected or public.

      I can work around the problem by recompiling the xalan library and setting the m_functions to public: -

      from static Hashtable m_functions;
      to public static Hashtable m_functions

      however I would rather not have to do this.

      This problem was first encountered with jbosss301tc404.
      I have since reproduced it with jboss306.

      I have also tried different levels of the xalan library - 2.1.0 & and various versions supplied with the JBoss system.

      I have check that their is only a single version of the xalan library in the system (and installed ear files).

      Anu ideas?



      java.lang.IllegalAccessError: try to access field org.apache.xpath.compiler.Keywords.m_functions from class org.apache.xpath.compiler.FunctionTable
      at org.apache.xpath.compiler.FunctionTable.installFunction(FunctionTable.java:286)
      at org.apache.xalan.processor.StylesheetHandler.init(StylesheetHandler.java:160)
      at org.apache.xalan.processor.StylesheetHandler.(StylesheetHandler.java:131)
      at org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(TransformerFactoryImpl.java:464)
      at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
      at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)
      at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(TransformSupport.java:161)
      at org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(TransformTag.java:104)
      at org.apache.jsp.JobView$jsp._jspService(JobView$jsp.java:231)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:280)
      at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:194)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129)
      at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:328)
      at edscs.mi.common.web.metricslogger.MetricsLoggerFilter.doFilter(Unknown Source)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:320)
      at edscs.mi.common.web.security.AuthorizationFilter.doFilter(Unknown Source)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:320)
      at edscs.mi.common.web.security.AuthenticationFilter.doFilter(Unknown Source)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:320)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:272)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:553)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1717)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:549)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1667)
      at org.mortbay.http.HttpServer.service(HttpServer.java:862)
      at org.jboss.jetty.Jetty.service(Jetty.java:497)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:759)
      at org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:247)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:776)
      at org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:204)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)