Hi everybody,
I'm relatively new to Java and Birt. I'm developing an applet that displays a table and a field set of a HSQLDB database. The applet give the user the chance of visually navigate and search the database table and there is a button that print a pdf report (actually generate the pdf report file in the home directory of the user).
In the Eclipse applet viewer my code works well. I signed the applet and the jars needed to the applet with the jarsigner tool.
When I try to open the applet calling it from the html file, the browser opens it, asks the acceptance of the certificate and then display the applet in the web page. The applet seems to operate well, letting me to navigate the database and search, but the print button doesn't generate the pdf file. In Java console, when I start the applet I got the following message:
org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
at albo.start(albo.java:392)
at sun.applet.AppletPanel.run(AppletPanel.java:465)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.birt.core.exception.CoreException
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:90)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
... 3 more
This is the html file (index.html) that I use to start my applet:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Cerca</title>
<meta name="author" content="sviluppo">
<meta name="generator" content="Bluefish 1.0.7">
<meta name="description" content="" >
<meta name="keywords" content="" >
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" >
<meta http-equiv="Content-Script-Type" content="text/javascript" >
<meta http-equiv="Content-Style-Type" content="text/css" >
</head>
<body>
<CENTER><H1>Ordine degli Ingegneri della Provincia di Bari</H1></CENTER>
<CENTER><H3>Albo Elettronico 2009</H3></CENTER>
<APPLET code="albo.class" archive="signedalbo.jar, lib/signedhsqldb.jar, lib/signedcom.ibm.icu_3.8.1.v20080530.jar, lib/signedcoreapi.jar, lib/signeddataadapterapi.jar, lib/signeddteapi.jar, lib/signedengineapi.jar, lib/signedjs.jar, lib/signedmodelapi.jar, lib/signedodadesignapi.jar, lib/signedscritpapi.jar" width="1300" height="800" align="middle"></APPLET>
</body>
</html>
Since the applet and the engine will be burned on a CD, do I need to decompress the Report Engine directory in the home directory of the user? Actually a copy of the report engine directory is in my home directory of my developing pc. Have I to sign with certificate something else? Someone could help me? Thanks in advance.
Clemente Carlucci