cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
143
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Aamir Shahzad on 29-10-2009 12:13:40 PM
Dear All,
 
I am trying to creating applet using JAVA cil, when ever i try to run that applet from within the NetBean IDE> Run > Run File > Applet runs quite fine. All the events are received by this applet, but when i am trying to call that same applet in the internet explorer its end up with the following error.
 
load: class JDLunarLander.class not found.
java.lang.ClassNotFoundException: JDLunarLander.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.shire.net/learnwebdesign/lander/JDLunarLander/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: JDLunarLander.class
java.lang.NoClassDefFoundError: com/cisco/cti/ctios/cil/CtiOs_Enums$AgentState
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.cisco.cti.ctios.cil.CtiOs_Enums$AgentState
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 10 more
Caused by: java.io.FileNotFoundException: F:\adil\Cisco\WUAgent\build\classes\com\cisco\cti\ctios\cil\CtiOs_Enums$AgentState.class (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 14 more
Exception: java.lang.NoClassDefFoundError: com/cisco/cti/ctios/cil/CtiOs_Enums$AgentState

Subject: RE: Creating Applet using CTIOS
Replied by: Aamir Shahzad on 30-10-2009 06:43:55 AM
The above said problem is resolved by add archive="JavaCIL.jar", in applet tag in html, but now i am facing another issue.
 
Whenever i am running the applet from Netbeans it is receiving all the event but when i am trying to run that applet in browser it drops only one event that is "system offline", i am not able to receive any single event except this.
 

Subject: RE: Creating Applet using CTIOS
Replied by: Adnan Ashraf on 11-12-2009 01:04:32 AM
Curious if you made any progress on this issue. You can use tools like wireShark and Fiddler to see the activities happening behind the scenes.
 
You can try the following:
- It might be security settings in your browser. Try lower them and see if it makes any difference
- Run the applet on the same box as your CTIOS server is running to eliminate remote box security problems
- Run it in debug mode in NetBeans and see what happens
- Run it as a NetBeans application (as opposed to as an applet) and see if it works (this would confirm browser restriction problems)
 
Could you please let me know what you business requirements are around the use of applets? reason I ask is I would like  you to take a look at the CTIOS Thin client document I posted on this forum. It is completely thin client, zero downloads (no applets, activex security restriction problems) and provides a rich SDK as well. We are trying to promote it as much as we can.
 
Let me know if you are interested in exploring this option and we can help you. thanks
 
Adnan
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links