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:

  1. read , try understand stacktrace
  2. check if applet works in applet-viewer (without embedding in html)
  3. check if works in static html page make sure wicket-related problem, not java-applet-specific problem
  4. if works in static page, can save page generated wicket , try if works.
  5. 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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -