Re: SV: applet in wicket .. exception thrown ...
Hi, Am in similar situation, where i have an applet which takes two parameters and in my wicket web page thereis a link when user clicks on that link i need to display this applet. could you please share how you have created the applet object and passed the parameters and displayed the applet. I woulod really appreciate , if you can share the code for html and java class as well. Thanks in advance!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/applet-in-wicket-exception-thrown-tp1845048p4654083.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
Oh yeah it was a quick start ... Thanks loadz James Carman-3 wrote: > > You don't have to. It was already in a package. I opened up the > class file to see the package declaration and it was declared to be in > package com.mycompany for some reason (perhaps a quickstart?) > > On Mon, Dec 21, 2009 at 10:08 AM, local_shamil > wrote: >> >> Yeah it worked !!! thanks alot every 1 ... >> >> and what might be the reason for this. ? why do v have to insert the >> applet.class file inside a package ?? >> >> >> James Carman-3 wrote: >>> >>> You need to make sure your HelloWorld.class file is in >>> src/main/webapp/com/mycompany >>> >>> >>> On Mon, Dec 21, 2009 at 9:13 AM, local_shamil >>> wrote: this was my applet tag in HTML and i had it as this still i get the NOCLASS FOUND EXCEPTION James Carman-3 wrote: > > Try using the correct package: > > code="com.mycompany.HelloWorld" > > On Mon, Dec 21, 2009 at 6:13 AM, local_shamil > wrote: >> >> --- >> load: class /myproject/src/main/webapp/Class/HelloWorld not found. >> java.lang.ClassNotFoundException: >> .myproject.src.main.webapp.Class.HelloWorld >> 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: >> .myproject.src.main.webapp.Class.HelloWorld >> >> >> >> local_shamil wrote: >>> >>> should i create a package under WEBAPP called Class and then add the >>> applet.class file there ??? >>> >>> >>> but still i am getting a NOCLASSFOUND exception ... >>> >>> >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26874469.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26875243.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26875304.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.
Re: SV: applet in wicket .. exception thrown ...
You don't have to. It was already in a package. I opened up the class file to see the package declaration and it was declared to be in package com.mycompany for some reason (perhaps a quickstart?) On Mon, Dec 21, 2009 at 10:08 AM, local_shamil wrote: > > Yeah it worked !!! thanks alot every 1 ... > > and what might be the reason for this. ? why do v have to insert the > applet.class file inside a package ?? > > > James Carman-3 wrote: >> >> You need to make sure your HelloWorld.class file is in >> src/main/webapp/com/mycompany >> >> >> On Mon, Dec 21, 2009 at 9:13 AM, local_shamil wrote: >>> >>> this was my applet tag in HTML >>> >>> >>> >>> and i had it as this >>> >>> >>> >>> still i get the NOCLASS FOUND EXCEPTION >>> >>> >>> >>> >>> James Carman-3 wrote: Try using the correct package: code="com.mycompany.HelloWorld" On Mon, Dec 21, 2009 at 6:13 AM, local_shamil wrote: > > --- > load: class /myproject/src/main/webapp/Class/HelloWorld not found. > java.lang.ClassNotFoundException: > .myproject.src.main.webapp.Class.HelloWorld > 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: > .myproject.src.main.webapp.Class.HelloWorld > > > > local_shamil wrote: >> >> should i create a package under WEBAPP called Class and then add the >> applet.class file there ??? >> >> >> but still i am getting a NOCLASSFOUND exception ... >> >> >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26874469.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26875243.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
Yeah it worked !!! thanks alot every 1 ... and what might be the reason for this. ? why do v have to insert the applet.class file inside a package ?? James Carman-3 wrote: > > You need to make sure your HelloWorld.class file is in > src/main/webapp/com/mycompany > > > On Mon, Dec 21, 2009 at 9:13 AM, local_shamil wrote: >> >> this was my applet tag in HTML >> >> >> >> and i had it as this >> >> >> >> still i get the NOCLASS FOUND EXCEPTION >> >> >> >> >> James Carman-3 wrote: >>> >>> Try using the correct package: >>> >>> code="com.mycompany.HelloWorld" >>> >>> On Mon, Dec 21, 2009 at 6:13 AM, local_shamil >>> wrote: --- load: class /myproject/src/main/webapp/Class/HelloWorld not found. java.lang.ClassNotFoundException: .myproject.src.main.webapp.Class.HelloWorld 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: .myproject.src.main.webapp.Class.HelloWorld local_shamil wrote: > > should i create a package under WEBAPP called Class and then add the > applet.class file there ??? > > > but still i am getting a NOCLASSFOUND exception ... > > > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26874469.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26875243.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
You need to make sure your HelloWorld.class file is in src/main/webapp/com/mycompany On Mon, Dec 21, 2009 at 9:13 AM, local_shamil wrote: > > this was my applet tag in HTML > > > > and i had it as this > > > > still i get the NOCLASS FOUND EXCEPTION > > > > > James Carman-3 wrote: >> >> Try using the correct package: >> >> code="com.mycompany.HelloWorld" >> >> On Mon, Dec 21, 2009 at 6:13 AM, local_shamil wrote: >>> >>> --- >>> load: class /myproject/src/main/webapp/Class/HelloWorld not found. >>> java.lang.ClassNotFoundException: >>> .myproject.src.main.webapp.Class.HelloWorld >>> 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: >>> .myproject.src.main.webapp.Class.HelloWorld >>> >>> >>> >>> local_shamil wrote: should i create a package under WEBAPP called Class and then add the applet.class file there ??? but still i am getting a NOCLASSFOUND exception ... >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26874469.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
this was my applet tag in HTML and i had it as this still i get the NOCLASS FOUND EXCEPTION James Carman-3 wrote: > > Try using the correct package: > > code="com.mycompany.HelloWorld" > > On Mon, Dec 21, 2009 at 6:13 AM, local_shamil wrote: >> >> --- >> load: class /myproject/src/main/webapp/Class/HelloWorld not found. >> java.lang.ClassNotFoundException: >> .myproject.src.main.webapp.Class.HelloWorld >> 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: >> .myproject.src.main.webapp.Class.HelloWorld >> >> >> >> local_shamil wrote: >>> >>> should i create a package under WEBAPP called Class and then add the >>> applet.class file there ??? >>> >>> >>> but still i am getting a NOCLASSFOUND exception ... >>> >>> >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26874469.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
Try using the correct package: code="com.mycompany.HelloWorld" On Mon, Dec 21, 2009 at 6:13 AM, local_shamil wrote: > > --- > load: class /myproject/src/main/webapp/Class/HelloWorld not found. > java.lang.ClassNotFoundException: > .myproject.src.main.webapp.Class.HelloWorld > 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: > .myproject.src.main.webapp.Class.HelloWorld > > > > local_shamil wrote: >> >> should i create a package under WEBAPP called Class and then add the >> applet.class file there ??? >> >> >> but still i am getting a NOCLASSFOUND exception ... >> >> >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
This is the exact error message that i get Java Plug-in 1.6.0_10 Using JRE version 1.6.0_10 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\mohamed.s 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 r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to load: class /myproject/src/main/webapp/Class/HelloWorld not found. java.lang.ClassNotFoundException: .myproject.src.main.webapp.Class.HelloWorld 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://localhost:8080/myproject/src/main/webapp/Class/HelloWorld.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: .myproject.src.main.webapp.Class.HelloWorld local_shamil wrote: > > should i create a package under WEBAPP called Class and then add the > applet.class file there ??? > > > but still i am getting a NOCLASSFOUND exception ... > > > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872593.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: SV: applet in wicket .. exception thrown ...
should i create a package under WEBAPP called Class and then add the applet.class file there ??? but still i am getting a NOCLASSFOUND exception ... Wilhelmsen Tor Iver wrote: > >> Problem adding an applet to wicket still remains the same.. can some 1 >> help > > 1) Be aware that applets are not loaded from WEB-INF/classes, but it seems > you know this. > 2) The class attribute value should not end in .class since that can make > some browsers try to load HelloWorld.class.class instead. > 3) Remember to add the class' package as a folder structure under webapp > and use that package when naming the class in the applet element. > > - Tor Iver > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26872439.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: applet in wicket .. exception thrown ...
> Problem adding an applet to wicket still remains the same.. can some 1 > help 1) Be aware that applets are not loaded from WEB-INF/classes, but it seems you know this. 2) The class attribute value should not end in .class since that can make some browsers try to load HelloWorld.class.class instead. 3) Remember to add the class' package as a folder structure under webapp and use that package when naming the class in the applet element. - Tor Iver