You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Linda Derezinski <li...@interfacecontrol.com> on 2002/06/18 20:55:57 UTC
Xalan version 1.2.2 with Java 1.4.1_01 java.lang.NoSuchMethodError: org.apache.xalan.xslt.Process.getDefaultLiaison()Ljava/lang/String
We have a product which is using an old version of Xalan 1.2.2. A customer
upgraded from java 1.3.1 to 1.4.1_01. Now when they run the software they
get Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xalan.xslt.Process.getDefaultLiaison()Ljava/lang/String;
Besides upgrading to Xalan2 (definitely the correct solution), does anyone
know a work around to this problem?
Thanks in advance .
The complete stack trace is:
-- OS: SunOS 5.6
-- JDK Version 1.4.0_01
-- Memory: 3149296/3604480
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xalan.xslt.Process.getDefaultLiaison()Ljava/lang/String;
at
org.apache.xalan.xslt.XSLTEngineImpl.<init>(XSLTEngineImpl.java:367)
at
org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor(XSLTProcessorFactory
.java:79)
at com.ics.SML.SMLpp.processXSL(SMLpp.java:535)
*** Error code 1
At SMLpp.java:535 is XSLTProcessor processor =
XSLTProcessorFactory.getProcessor();
I opened the xalan.jar file and looked at the Process.class file and it
contains the following:
package org.apache.xalan.xslt;
// Imports
import java.lang.String;
import org.xml.sax.SAXException;
import java.net.URL;
import org.apache.xalan.xslt.res.XSLTErrorResources;
public class Process {
// Fields
private static int xercesDetected;
// Constructors
public Process() { }
// Methods
static { }
static String getDefaultLiaison() { }
public static URL getURLFromString(String p0, String p1) throws
SAXException { }
public static void main(String[] p0) { }
protected static void printArgOptions(XSLTErrorResources p0) { }
}
Linda Derezinski
Interface & Control Systems Inc.
Re: Xalan version 1.2.2 with Java 1.4.1_01 java.lang.NoSuchMethodError:
org.apache.xalan.xslt.Process.getDefaultLiaison()Ljava/lang/String
Posted by Tom Amiro <To...@Sun.COM>.
Hi Linda,
The problem may be caused by the fact that java 1.4.1 has the Xalan classes
from Xalan 2.2.D11 embedded in its rt.jar file. To override that version
of Xalan with the version that you've been using, copy your xalan.jar
<JAVA_HOME>/jre/lib/endorsed/
--
Tom Amiro -- SQA Engineer
Sun XML Technology Development
voice: 781-442-0589 Fax: 781-442-1437
eMail: tom.amiro@.sun.com