• Uploader source build error

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #18689  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
 #18722  by pavila
 
1.- Which changes are you working on?

2.- You need to sign the applet.
 #18740  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!!
 #18749  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.
 #18753  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.
 #18778  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 ?
 #18786  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.
 #18836  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/ .
 #18837  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.
 #18852  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.