[OSM-dev] Problems with mapsforge osmosis plugin

Michal Migurski mike at teczno.com
Sat Apr 20 01:38:29 UTC 2013


Hi,

I am having difficulties with the Mapsforge Osmosis plugin, on an Ubuntu 12.04 system.

I initially attempted to follow these installation instructions, but found that Osmosis could not find the plugin:
	http://code.google.com/p/mapsforge/wiki/GettingStartedMapWriter#Plugin_Installation

I googled my error ("Unable to load plugin class") and instead copied the .jar file to here:
	/usr/local/lib/default/mapsforge-map-writer-0.3.0-jar-with-dependencies.jar

Osmosis is installed under /usr/local for me. I have the latest version, 4.3 from earlier this month.

With the plugin under lib/default I now see this error:

    osmosis -p org.mapsforge.map.writer.osmosis.MapFileWriterPluginLoader
    Apr 20, 2013 1:34:50 AM org.openstreetmap.osmosis.core.Osmosis run
    INFO: Osmosis Version 0.42-6-gf39a160-dirty
    Apr 20, 2013 1:34:51 AM org.openstreetmap.osmosis.core.Osmosis main
    SEVERE: Execution aborted.
    org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot load JPF-plugin 'org.mapsforge.MapFileWriter' for extensionpoint 'Task'
        at org.openstreetmap.osmosis.core.TaskRegistrar.loadJPFPlugins(TaskRegistrar.java:186)
        at org.openstreetmap.osmosis.core.TaskRegistrar.initialize(TaskRegistrar.java:88)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:81)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
    Caused by: org.java.plugin.PluginLifecycleException: plug-in org.mapsforge.map.mapfile-writer requires plug-in org.openstreetmap.osmosis.core.plugin.Core which is unknown or has incompatible version
        at org.java.plugin.standard.StandardPluginManager.checkPrerequisites(StandardPluginManager.java:460)
        at org.java.plugin.standard.StandardPluginManager.activatePlugin(StandardPluginManager.java:397)
        at org.java.plugin.standard.StandardPluginManager.activatePlugin(StandardPluginManager.java:245)
        at org.openstreetmap.osmosis.core.TaskRegistrar.loadJPFPlugins(TaskRegistrar.java:182)
        ... 12 more

Searching for the new error is inconclusive. Some posts report that it's a fixed issue, others suggest that I need to recompile either Osmosis or Mapsforge from scratch. I'm not familiar with Java, can anyone shed some light on this incompatibility with org.openstreetmap.osmosis.core.plugin.Core?

-mike.

----------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html







More information about the dev mailing list