This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Applet not initiated" in Tomcat 3.3

 
Shazia Javed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting an error saying "applet not initiated" in the status bar of my browser. I am using firefox to run a web-based application developed in PHP. There is a PHP page which displays html page in one frame. that HTML page has some java script and an applet tag which when browsed results into error message.

The location of HTML page and associated jar files is a sub-directory within htdocs and this can not be changed.

I have jdk1.3.1_01, Apache 2.0.55 (with mod_jk 1.2.15), php-5.0.5-Win32 and jakarta-tomcat-3.3.2 installed on my standalone PC. Tomcat is running for JSP pages (placed in both htdocs directory and ROOT directory). I need to make tomcat work for my js and applets regardless of the location of the jar files and/or anyother related files.

I have searched the web for solution and found some threads discussing servlet-mappings for the invoker. I dont have any web.xml file for my tomcat version. No other xml file has the invoker keyword! I have no idea as to what and where changes are to be made!

I dun know what to do! Please help me in this regard. I have a deadline approaching and I really need to make the applet run!

regards,
Shazia
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

You need to look at the "Java Console" (the details of accessing same vary by browser and platform) which will give you a full error stack trace; if it doesn't make sense to you, you can cut and paste it in a reply in this thread, and we can help you out.
[ November 26, 2005: Message edited by: Ernest Friedman-Hill ]
 
Shazia Javed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the reponse. Actually, I ahve never worked with Java stuff. I am just trying to import a web page with applet thing in my PHP based application. Would you please tell me how to look for Java Console thing. Where is it? and how to use it? or if you can refer to some webpage.. describing all this? Please.

regards,
Shazia
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do realize that Tomcat has nothing to do with applets, right?
Applets can be served up with any webserver.
You just need to put the files where the browser can access them.
As far as Tomcat is concerned, applet files are no different than any other static files.
 
Shazia Javed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, now I have a fine idea that Applets can run without Tomcat.. But, now I am getting this error!! What could be the problem?! Please, help!

Java(TM) Plug-in: Version 1.4.0 Using JRE version 1.4.0-beta Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\AdministratorProxy Configuration: Browser Proxy Configuration---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console s: dump system properties t: dump thread list x: clear classloader cache 0-5: set trace level to ---------------------------------------------------- java.lang.NullPointerException at sun.plugin.javascript.navig5.SecurityContext.getURL(Unknown Source) at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(Unknown Source) at sun.plugin.javascript.navig5.JSObject.(Unknown Source) at sun.plugin.navig.win32.AppletPluginContext.nativeGetJSObject(Unknown Source) at sun.plugin.ActivatorAppletContext.showStatus(Unknown Source) at sun.plugin.AppletViewer.println(Unknown Source) at sun.plugin.usability.Trace.firePrintlnEvent(Unknown Source) at sun.plugin.usability.Trace.netPrintln(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.connectStep1(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.(Unknown Source) at sun.misc.URLClassPath$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getResource(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 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)java.lang.NullPointerException at sun.plugin.javascript.navig5.SecurityContext.getURL(Unknown Source) at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(Unknown Source) at sun.plugin.javascript.navig5.JSObject.(Unknown Source) at sun.plugin.navig.win32.AppletPluginContext.nativeGetJSObject(Unknown Source) at sun.plugin.ActivatorAppletContext.showStatus(Unknown Source) at sun.plugin.AppletViewer.println(Unknown Source) at sun.plugin.usability.Trace.firePrintlnEvent(Unknown Source) at sun.plugin.usability.Trace.netPrintln(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.connectStep1(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.(Unknown Source) at sun.misc.URLClassPath$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getResource(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 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 java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.adl.testsuite.rte.lms.LMSTestSCODriver.(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.InflatableConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(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)java.lang.NullPointerException at sun.plugin.javascript.navig5.SecurityContext.getURL(Unknown Source) at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(Unknown Source) at sun.plugin.javascript.navig5.JSObject.(Unknown Source) at sun.plugin.navig.win32.AppletPluginContext.nativeGetJSObject(Unknown Source) at sun.plugin.ActivatorAppletContext.showStatus(Unknown Source) at sun.plugin.AppletViewer.println(Unknown Source) at sun.plugin.usability.Trace.firePrintlnEvent(Unknown Source) at sun.plugin.usability.Trace.netPrintln(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.connectStep1(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.(Unknown Source) at sun.misc.URLClassPath$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getResource(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 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 java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.adl.testsuite.rte.lms.LMSTestSCODriver.(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.InflatableConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(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)java.lang.NullPointerException at sun.plugin.javascript.navig5.SecurityContext.getURL(Unknown Source) at sun.plugin.javascript.navig5.JSObject.JSGetNativeJSObject(Unknown Source) at sun.plugin.javascript.navig5.JSObject.(Unknown Source) at sun.plugin.navig.win32.AppletPluginContext.nativeGetJSObject(Unknown Source) at sun.plugin.ActivatorAppletContext.showStatus(Unknown Source) at sun.plugin.AppletViewer.println(Unknown Source) at sun.plugin.usability.Trace.firePrintlnEvent(Unknown Source) at sun.plugin.usability.Trace.netPrintln(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.connectStep1(Unknown Source) at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source) at sun.misc.URLClassPath$JarLoader.(Unknown Source) at sun.misc.URLClassPath$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getLoader(Unknown Source) at sun.misc.URLClassPath.getResource(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) 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 java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.adl.testsuite.rte.lms.LMSTestSCODriver.(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.InflatableConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(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)IOException Error: java.io.FileNotFoundException: \config\adllog.properties (The system cannot find the path specified)FileNotFoundException java.io.FileNotFoundException: \config\adllog.properties (The system cannot find the path specified)
 
Shazia Javed
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies people!! but please have a look at posted error log and suggest something..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shazia Javed:
Thanks for the replies people!! but please have a look at posted error log and suggest something..


I think at this point, you'd probably get better help in the Applets forum.
If this stack trace is occuring in the client rather than the server, there is really nothing Tomcat specific about it.


Moved to Applets
[ December 03, 2005: Message edited by: Ben Souther ]
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets can run without Tomcat

Well, yes and no. You can run them locally by opening the HTML file in appletviewer or a browser, but it's not quite the same in some regards. In your case specifically it says:
java.io.FileNotFoundException: \config\adllog.properties

Make sure that the properties file is in the "config" subdirectory of whatever directory you're now running the applet in.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic