tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Drake <Geoff.Dr...@amdocs.com>
Subject Configuring Applets in TC4.0.1 and IE 5
Date Thu, 16 May 2002 15:45:27 GMT

Hi All

I have configured TomCat 4.0.1 to run our application and it works except
for Applets.
We are using TC4.0.1 IE 5 and Java-Plugin 1.3.1

Whenever I try to load an Applet I get a ClassNotFound / FileNotFound
Exception:

load: class com.amdocs.BASP.sessionmanager.applet.BASPTreeApplet not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: File not
found:
http://geoffd01:8080/campaign/WEB-INF/classes/com/amdocs/BASP/sessionmanager
/applet/BASPTreeApplet.class 	at
sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown
Source) 	at java.net.HttpURLConnection.getResponseCode(Unknown
Source) 	at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source) 	at
sun.applet.AppletClassLoader$1.run(Unknown Source) 	at
java.security.AccessController.doPrivileged(Native Method) 	at
sun.applet.AppletClassLoader.findClass(Unknown Source) 	at
sun.plugin.security.PluginClassLoader.findClass(Unknown Source) 	at
java.lang.ClassLoader.loadClass(Unknown Source) 	at
sun.applet.AppletClassLoader.loadClass(Unknown Source) 	at
java.lang.ClassLoader.loadClass(Unknown Source) 	at
sun.applet.AppletClassLoader.loadCode(Unknown Source) 	at
sun.applet.AppletPanel.createApplet(Unknown Source) 	at
sun.plugin.AppletViewer.createApplet(Unknown Source) 	at
sun.applet.AppletPanel.runLoader(Unknown Source) 	at
sun.applet.AppletPanel.run(Unknown Source) 	at
java.lang.Thread.run(Unknown Source) 


The APPLET Tag is (using jsp:plugin)

<jsp:plugin     codebase="WEB-INF/classes"
code="com.amdocs.BASP.sessionmanager.applet.BASPTreeApplet"
 
archive="WEB-INF/lib/campaign.jar,WEB-INF/lib/pvAll.jar,WEB-INF/lib/xerces.j
ar" width="300" height="100%" type="applet" name ="BASPTreeApplet">
    <jsp:params>
        <jsp:param name="treeurl" value="<%= servletUrl %>" />
        <jsp:param name="ExpandTree" value="true" />
        <jsp:param name="treecolour" value="lightgrey" />
    </jsp:params>
</jsp:plugin>

Our directory structure is:
	tom.. etc.../webapps/campaign		JSP's etc
	tom.. etc.../webapps/WEB-INF/classes 	empty
	tom.. etc.../webapps/lib			All JARS as above
campaign.jar contains the Applet code

I have tried all combinations of codebase / archive / code and it always
gives the dame error.

Then was a similar posting some time back, but I cannot find a reply to it.

Any help gratefully received.

Regards
Geoff
	
Mime
View raw message