Modify

Opened 16 years ago

Closed 14 years ago

Last modified 5 years ago

#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 stoecker, 16 years ago

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

comment:2 by stoecker, 15 years ago

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

comment:3 by mabapla, 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:4 by stoecker, 15 years ago

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

comment:5 by plaicy, 15 years ago

Keywords: webstart added

comment:6 by stoecker, 15 years ago

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

comment:7 by mabapla, 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 jttt, 14 years ago

Resolution: fixed
Status: newclosed

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

comment:9 by Don-vip, 5 years ago

Component: CoreCore Webstart

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.