How to run a Java applet in Apache Wicket 6.5? -
i trying run applet in web application using apache wicket. put myapplet.jar , html page in same directory got error when deploying page:
nullpointerexception : error occurred while running application
any please ?? how can track down point error happens, or else can try?
thanks in advance.
my html page is
<html xmlns:wicket="http://wicket.apache.org/"> <body> <wicket:extend> <div class="intro-lead-in">signing documents</div> <applet code=wct.applet.welcome.class archive="myapplet3.jar" codebase="http://localhost:8080/wicketspringdemo" width=550 height=300> </applet> </wicket:extend> </body>
i have experience serving applets wicket. can nasty, because there many things need setup correctly.
to tackle kind of problem:
- read , try understand stacktrace
- check if applet works in applet-viewer (without embedding in html)
- check if works in static html page make sure wicket-related problem, not java-applet-specific problem
- if works in static page, can save page generated wicket , try if works.
- check if java-applet-security settings allow running applet (java-plugin console)
edit
this code (wicket 1.2, should upgradable)
<applet wicket:id="applet" codebase="applet" code="nl.valuecare.pasteapplet" width="20" height="20" archive="pasteappletsigned.jar" mayscript="mayscript"> </applet>
where codebase
relativa path in war
the mayscript
allow java <> javascript communication.
i signed applet
valid code signing certificat because need elevated permissions.
maybe not allowed use absolute codebase?
Comments
Post a Comment