Hi ,
I want to call an ejb object through an applet using a jboss as an application server .
I created the ejb object .
I created an applet , and html contains the applet tag in it.
I deployed the application ( ear file).
Everything seems fine so far .
I have checked that the applet class file exists.
The problem is , when i open the browser and go to http://localhost:8080/myapp/html/myhtml.html
I see a ‘NullPointerException’ – that probably because of the server does not find the
applet class.
What shoud i do in order to make it ( the server ) find it ?
What should I write in my html file to tell the server to load the applet class from the
right place ?
Here is a code snippest of my html file :
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>My applet ‘EjbCallerApplet’ starting page</title>
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”this is my page”>
<meta http-equiv=”content-type” content=”text/html; charset=UTF-8″>
<!–<link rel=”stylesheet” type=”text/css” href=”./styles.css”>–>
</head>
<body>
<applet codebase=”.”
code=”EjbCallerApplet.class”
name=”EjbCallerApplet”
width=”320″
height=”240″>
<!–<param name=”p0″ value=””>
<param name=”p1″ value=””>–>
</applet>
</body>
</html>
Can anyone tell me please what are the exect steps to create an applet that works with jboss and ejb object ?