Opened 11 years ago

Closed 11 years ago

#5348 closed defect (fixed)

WMS dependency on RemoteControl plugin

Reported by: Zverikk Owned by: bomm
Priority: major Milestone:
Component: Core imagery Version: latest
Keywords: Cc: bomm


java.lang.NoClassDefFoundError: org/openstreetmap/josm/plugins/remotecontrol/RemoteControlPlugin

After installing rcp the exception went away. But this dependency is bad: almost every josm user needs WMS, but much less need remote control (and it opens a potential hole, probably).

Attachments (0)

Change History (5)

comment:1 Changed 11 years ago by bomm

Cc: bomm added
Owner: changed from team to bomm

If possible, please add the full stack trace of the exception.

The intention was not to introduce a hard dependency. WMS plugin should use the remote control plugin only if it is installed. I successfully tested the WMS plugin without remote control plugin.

I will investigate the problem.

comment:2 Changed 11 years ago by bastiK

-> see mailing list

comment:3 Changed 11 years ago by bastiK

When you reference a class in wms plugin, that class has to be copied to wms.jar

comment:4 Changed 11 years ago by bastiK

But there are potential problems, when wms and remotecontrol have different versions, etc.

comment:5 Changed 11 years ago by bomm

Resolution: fixed
Status: newclosed

I was able to reproduce the problem on a virtual machine which is not my development system. (Before I had tested it successfully on my development machine only.)

I fixed it by using reflection to call the RemoteControlPlugin from WMSPlugin.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain bomm.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.