Ticket #2297 (closed defect: fixed)

Opened 18 months ago

Last modified 4 months ago

JOSM Webstart fails at loading plugins

Reported by: stoecker Owned by: team
Priority: major Component: Core
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

Change History

Changed 18 months ago by stoecker

Ticket #2301 has been marked as a duplicate of this ticket.

Changed 15 months ago by stoecker

Ticket #2733 has been marked as a duplicate of this ticket.

Changed 14 months ago by mabapla

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.

Changed 13 months ago by stoecker

Ticket #3106 has been marked as a duplicate of this ticket.

Changed 13 months ago by plaicy

  • keywords webstart added

Changed 10 months ago by stoecker

Ticket #3824 has been marked as a duplicate of this ticket.

Changed 7 months ago by mabapla

  • version set to 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?

Changed 4 months ago by jttt

  • status changed from new to closed
  • resolution set to fixed

(In [3232]) Fix #2297 JOSM Webstart fails at loading plugins, cleanup puwg projection

Add/Change #2297 (JOSM Webstart fails at loading plugins)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.