Hi all, Probably you can help me in the following question... I used a java extensions in xsl stylesheet. The declaration of extension is a very standard:
<xsl:stylesheet ... xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"> ... <xsl:variable name="debug" select="java:<my class>.printDebugInfo()"/> ... <xsl:value-of select="$debug"/> On trying to call this method (it's a static) I get ClassNotFoundException. java.lang.ClassNotFoundException: <my class> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.xalan.extensions.ExtensionHandler.getClassForName(ExtensionHandler.java:137) at org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(ExtensionHandlerJavaPackage.java:327) at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:257) I used servlet that prepares xml and calls transformation. <my class> is in the same packadge as a servlet. However it works fine on Windows but it doesn't on Unix... Any ideas? Thanks in advance. Best regards, Vladimir Vinogradov
