Page 1 of 1

Uploader source build error

PostPosted:Fri Oct 12, 2012 4:58 am
by shaardu
Hey,

I tried building the uploader from source code as I have made some major modifications but i am getting this error

access denied ("java.io.FilePermission" "C:/..." "read")

Any issue from the application side..Should i do some changes to the source.

Regards,
Sharadh

Re: Uploader source build error

PostPosted:Sat Oct 13, 2012 10:19 am
by pavila
1.- Which changes are you working on?

2.- You need to sign the applet.

Re: Uploader source build error

PostPosted:Mon Oct 15, 2012 4:35 am
by shaardu
I currently have the source from the site's svn checkout. I want to make it so that , on click of openkm image, i want the my windows folder structure to pop up apart from drag and drop but i tried simple compilation ,i cant drag and drop at all....i get that error shown above and and an exclamatory mark!!

Re: Uploader source build error

PostPosted:Mon Oct 15, 2012 3:58 pm
by macjaeger
The exclamation mark informs you that your applet is sandboxed, that means that it is disconnected from local filesystem and desktop interactions like drag and drop. To allow the applet access to your computers resources, it has to be signed, and you have to explicitly express your trust into the signing person or authority.

You can use self-signed certificates to sign the applet, it's rather easy to do this:

1. use keytool to generate a key named "MyName" (or whatever you like) in your local keystore, e.g.
Code: Select all
keytool -genkey -alias MyName -validity 365
this creates a key that is valid for one year (365 days).

2. use jarsigner to sign the applet with the key MyName (or whatever you chose), e.g.
Code: Select all
jarsigner /opt/openkm/tomcat-7.0.27/webapps/OpenKM/uploader.jar MyName
Once you start the signed applet, you will get a java-warning asking for your permission to trust this applet; if you agree, you should be able to drag&drop.

The same is neccessary to make the scanner.jar applet work, bytheway.

Re: Uploader source build error

PostPosted:Tue Oct 16, 2012 5:29 am
by shaardu
Thanks a ton, dude...You are awesome!!! Its working now...

@pavila and jllort, you have built an awesome product!! Keep it up guys...:):)

Also, if possible I wanted to know why i am not getting that swing gui source code which is available with community edition.

Once again, thanks again.

Re: Uploader source build error

PostPosted:Wed Oct 17, 2012 2:24 pm
by jllort
I do not understand the question about swing gui. Really we use gwt which compiles to javascript ... but there's no swing UI... which is the question ?

Re: Uploader source build error

PostPosted:Thu Oct 18, 2012 4:35 am
by shaardu
No What I am talking about is this:

When you click on uploader button , openkm uploader applet comes up! This applet has a Swing GUI where it shows the list of documents added and the progress. But when we compile the source code, we get an image in place of the GUI where we have to drag and drop. So what I am asking is the source code of the uploader jar which gives the swing gui.

Re: Uploader source build error

PostPosted:Sun Oct 21, 2012 10:32 am
by pavila
We have updated the applets with a dummy signature, as they was signed in OpenKM 5.1 so you will see a warning dialog, but the will work. Keep on min that these applets are signed with a certified signature in OpenKM 6.2 Professional and does not have this problem.

Try tonight nightbuild from http://integration.openkm.com/6.2/ .

Re: Uploader source build error

PostPosted:Sun Oct 21, 2012 12:32 pm
by shaardu
Well, thanks for the info but I didnt understand what you meant to say!

Actually what I wanted was the SOURCE CODE of the uploader applet along with the swing GUI.

Re: Uploader source build error

PostPosted:Mon Oct 22, 2012 7:53 pm
by pavila
Up, the forum thread seems a bit garbaged.

The last version of the Uploader applet has not been relased. We will try to release it in the next few weeks.

Re: Uploader source build error

PostPosted:Tue Oct 23, 2012 5:21 am
by shaardu
This is what I wanted. Thanks a lot!!