Opened 3 years ago
Closed 3 years ago
#5348 closed defect (fixed)
WMS dependency on RemoteControl plugin
| Reported by: | Zverik | Owned by: | bomm |
|---|---|---|---|
| Priority: | major | Component: | Core imagery |
| Version: | latest | Keywords: | |
| Cc: | bodo@… |
Description
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 3 years ago by bomm
- Cc bodo@… added
- Owner changed from team to bomm
comment:2 Changed 3 years ago by bastiK
-> see mailing list
comment:3 Changed 3 years ago by bastiK
When you reference a class in wms plugin, that class has to be copied to wms.jar
comment:4 Changed 3 years ago by bastiK
But there are potential problems, when wms and remotecontrol have different versions, etc.
comment:5 Changed 3 years ago by bomm
- Resolution set to fixed
- Status changed from new to closed
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.



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.