Re: [mapsforge-dev] Osmosis with Mapsforge plugin on Ubuntu. Am I doing it right?

193 views
Skip to first unread message

Jürgen Broß

unread,
Mar 19, 2013, 8:59:32 AM3/19/13
to mapsfo...@googlegroups.com
Hi Nick,

I guess this is a duplicate of issue303 in our issue tracker. Please
consult the comments at [1].

Best regards,
J�rgen

[1] https://code.google.com/p/mapsforge/issues/detail?id=303

On 03/19/2013 01:16 PM, Nick Katsipoulakis wrote:
> I need to convert an .osm file to a .map in order to test a Mapsforge
> Android application. Thus, I attempted to install Osmosis on my Ubuntu
> 12.04 PC. I install osmosis using the debian package with the following
> command:
>
> | sudo apt-get install osmosis
> |
>
>
> After the installation is finished, I download the mapsforge jar file
> from http://code.google.com/p/mapsforge/downloads/list and I copy it to the
>
> | ~/.openstreetmap/osmosis/plugins/
> |
>
>
> folder. However, when I attempt to execute the following command:
>
> | osmosis --rx file=rethimno.osm --mw file=rethimno.map
> |
>
>
> I get the following stack trace:
>
> |Mar 19, 2013 11:46:27 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.40.1
> Mar 19, 2013 11:46:27 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Mar 19, 2013 11:46:27 AM org.openstreetmap.osmosis.core.Osmosis main
> SEVERE: Execution aborted.
> java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
> at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:72)
> at org.mapsforge.map.writer.OSMTagMapping.<init>(OSMTagMapping.java:123)
> at org.mapsforge.map.writer.OSMTagMapping.getInstance(OSMTagMapping.java:110)
> at org.mapsforge.map.writer.OSMTagMapping.getInstance(OSMTagMapping.java:94)
> at org.mapsforge.map.writer.model.MapWriterConfiguration.loadTagMappingFile(MapWriterConfiguration.java:412)
> at org.mapsforge.map.writer.osmosis.MapFileWriterFactory.createTaskManagerImpl(MapFileWriterFactory.java:53)
> at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
> at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:50)
> at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112)
> at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
> 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:601)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
> |
>
>
> Has anyone came across the same problem? If yes, how can I fix it?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapsforge-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--


J�rgen Bro�
Institute of Computer Science
Databases and Information Systems
Freie Universit�t Berlin
Takustr. 9
D-14195 Berlin, Germany
phone: +49 30 838-75108
email: juerge...@fu-berlin.de

Nick Katsipoulakis

unread,
Mar 19, 2013, 10:09:40 AM3/19/13
to mapsfo...@googlegroups.com
Thank you for your help. I should have first checked the issue tracker before posting the topic.

Best Regards,
Nick

2013/3/19 Jürgen Broß <juerge...@fu-berlin.de>
Hi Nick,

I guess this is a duplicate of issue303 in our issue tracker. Please consult the comments at [1].

Best regards,
Jürgen

For more options, visit https://groups.google.com/groups/opt_out.




--


Jürgen Broß

Institute of Computer Science
Databases and Information Systems
Freie Universität Berlin

Takustr. 9
D-14195 Berlin, Germany
phone: +49 30 838-75108
email: juerge...@fu-berlin.de


--
You received this message because you are subscribed to a topic in the Google Groups "mapsforge-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapsforge-dev/PAkzFCQIIK8/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to mapsforge-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages