Problem about Oxygen Applet

Having trouble installing Oxygen? Got a bug to report? Post it all here.
gymac
Posts: 19
Joined: Fri Dec 10, 2010 2:11 am

Problem about Oxygen Applet

Post by gymac »

Hi all,

I am a new user to Oxygen, and I've just downloaded the applet source code from here:

http://www.oxygenxml.com/demo/AuthorDem ... -dita.html

I am trying to delopy the whole applet on my local server.
I've imported the project into Eclipse IDE, and I've included my licensekey txt ( in the form of li.jar) into the buildpath, then I build the whole project using ANT in Eclipse, it was a successful build(generated two xml files: "build.xml" and "build_jws_native_jars.xml")

I then tried to load the "author-component-dita-requirements.html" in IE, it loaded successfully. However, when I tried to load "author-component-dita.html", it always prompts an error "Access is denied", and the applect is not loaded at all, only the HTML is loaded.I have no idea about this, is this because of my license key?

Thanks a lot for the help!
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem about Oxygen Applet

Post by Radu »

Hi,

If you run using ANT the "build.xml" from the project directory it should fail at first (at line 50) because you need to define a signature for the libraries which will be used by the applet:
So you need an:
alias="${alias}" keystore="${pfx}" storepass="${pfxPwd}"

Every one who wants to deploy the applet for his own project needs to sign the applet libraries (jars) using his own credentials.

So you can create a file called "default.properties" in the same folder as the "build.xml" and it should have the following content:

pfx=path/to/mycert.pfx
pfxPwd=passwordValue
alias=aliasValue
#From where the applet will be loaded, example:
codebase=http://www.oxygenxml.com/demo/AuthorDemoApplet/

The main idea is that "author-component-dita.html" from the root of the project is just a file template used in the build process, after the build is successful you should have a new folder on disk in the same project called "dist" which will contain an HTML file called "author-component-dita-local.html" which then can be double clicked for local loading.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply