Hello everybody I wrote a little application which does some transformation from a specific messaging protocol into XML and vice versa. It works well when used as an application but does not work correctly when used with/as an "hidden" applet (simple wrapper) and accessed by JavaScript. Here are the exceptions:
javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: net/myexp/msg/extension/MSGExtension at net.myexp.msg.MSGXalan25.msg2xmlAsString(MSGXalan25.java:1603) at MyApplet.msg2xmlString(MyApplet.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) at sun.plugin.com.DispatchImpl.invoke(Unknown Source) The applet and the "main application" do use the MSGExtension class (which I use to avoid stack overflows during transformation) without any problems but the transformer can't find it at all only when used with an applet. Here is some additional info about my application: Xerces-J 2.4.0 Xalan Java 2.5.1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java"> <xsl:output method="text" omit-xml-declaration="yes" indent="no"/> . . <xsl:variable name="getString" select="java:net.myexp.msg.extension.MSGExtension.getString('String')"/> Any help would be much appreciated. THX, Bernard