#2297 closed defect (fixed)
JOSM Webstart fails at loading plugins
Reported by: | stoecker | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core Webstart | Version: | latest |
Keywords: | webstart | Cc: |
Description
JOSM Webstart does not have rights to load plugins.Probably this is a solution:
http://lopica.sourceforge.net/faq.html
iceryx reports: The classes I loaded with my own URLClassLoader didn't have the same permissions as the classes loaded directly through Web Start. So I included my own policy file in a jar to grant
java.security.AllPermissions to all codebases. Then in my main class, I wrote:
URL policyUrl = Thread.currentThread().getContextClassLoader().getResource("my.java.policy");
Policy.getPolicy().refresh();
This fixed it. I guess that when you give "all-permissions" to your Web Start app, it assigns java.security.AllPermissions only to code loaded from the Web Start codebase, but not to code from other
codebases. Changing the policy widened this permission to everything.
As another alternative you can also write your own Policy subclass permitting everything and then call Policy.setPolicy() to turn it on.
Attachments (0)
Change History (9)
comment:1 by , 16 years ago
comment:3 by , 15 years ago
I would vote for this ticket (if there were a voting system).
You need plugins for JOSM more sooner than later, best examples of essential plugins being AgPifoJ, validator and wmsplugin.
So recommending someone to use Java WebStart which would solve several problems (how can the newbie start JOSM in a convenient way, how can he keep it up to date) is a dead end solution because he can't use plugins, cutting him off from essential things.
So this pretty much renders the Java WebStart "version" of JOSM useless if you ask me. :-(((
But WebStart would make things so much easier and JOSM still needs to get easier to set up and use.
comment:5 by , 15 years ago
Keywords: | webstart added |
---|
comment:7 by , 15 years ago
Version: | → latest |
---|
Guys, is nobody interested in this, does nobody of you think this is important?<br>
I tried to make you aware that I find this pretty important to get people started with JOSM, and I'm still convinced that this is true.<br>
And didn't the original filer already provide a solution, so that this shouldn't be too hard to solve?
comment:8 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:9 by , 5 years ago
Component: | Core → Core Webstart |
---|
Ticket #2301 has been marked as a duplicate of this ticket.