Modify

Opened 4 years ago

Closed 3 years ago

#2297 closed defect (fixed)

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 (0)

Change History (8)

comment:1 Changed 4 years ago by stoecker

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

comment:2 Changed 4 years ago by stoecker

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

comment:3 Changed 4 years 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.

comment:4 Changed 4 years ago by stoecker

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

comment:5 Changed 4 years ago by plaicy

  • Keywords webstart added

comment:6 Changed 4 years ago by stoecker

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

comment:7 Changed 3 years 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?

comment:8 Changed 3 years ago by jttt

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

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'.
Author


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

 
Note: See TracTickets for help on using tickets.