xalan and jdk 142_05

Fri, Feb 25, 2005

JDK 1.4.2_05 gave us a headache with Tomcat and xmlsec. It seems it ships with a buggy xalan.jar:

1.4.2_04: public static FuncLoader[] m_functions;

1.4.2_05: private static FuncLoader[] m_functions;

so you get the error: java.lang.IllegalAccessError: tried to access field org.apache.xpath.compiler.FunctionTable.m_functions from class org.apache.xml.security.Init org.apache.xml.security.Init.init(Unknown Source) org.Guanxi.SAMUEL.Utils.Utils.sign(Utils.java:39) org.Guanxi.IdentityProvider.SSO.doPost(SSO.java:176) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

To solve this problem, download the latest xalan.jar and copy it to: /usr/local/tomcat/common/endorsed This will make sure Tomcat loads the proper version of xalan instead of the buggy JDK one

comments powered by Disqus