There is no clear instructions of how to run the compiled mapper.
By looking at the source code i think this command is correct(?)
java -jar md-mapper/target/md-mapper-0.1.a8ac39.jar config=/home/olof/5.4/config.xml
I have checked out the md-mapper and md-mapping where i also have some mapping examples.
config.xml contains:
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<!-- Parameters: any of these can be overridden via the command line. -->
<params>
<mapfile>/home/olof/5.4/md-mapping/mapfiles/cmdi.xml</mapfile>
<inputdir>/home/olof/5.4/md-mapping/testfiles/cmdi</inputdir>
<savestats>/home/olof/5.4/stats.log</savestats>
<!-- The parameter <outputdir>x</outputdir> can be used to set x
as the base directory against which directories in the
outputs section below are resolved. -->
</params>
<!--
Outputs: the directory name is given in the text content. An
empty tag means output to stdout instead of a file.
-->
<outputs>
<!-- <output type="simplejson" prettyPrint="true">json-simple</output> -->
<!-- <output type="xml" prettyPrint="true">xml</output> -->
<output type="ckan3json" prettyPrint="true">json</output>
</outputs>
</config>
I tried to have relative and full path for
The error when i run the mapper is:
[olof@k2 5.4]$ java -jar md-mapper/target/md-mapper-0.1.a8ac39.jar config=/home/olof/5.4/config.xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at nl.mpi.mdmapper.Main.<clinit>(Main.java:37)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 1 more
The build reported a successful build and log4j-1.2.17.jar is located in /home/olof/5.4/md-mapper/target/lib
Any suggestions of things to try to get the md-mapper running?
(A feature suggestion would be some default help text when running and detailed error messages.)
There is no clear instructions of how to run the compiled mapper.
By looking at the source code i think this command is correct(?)
I have checked out the md-mapper and md-mapping where i also have some mapping examples.
config.xml contains:
I tried to have relative and full path for
The error when i run the mapper is:
The build reported a successful build and
log4j-1.2.17.jaris located in/home/olof/5.4/md-mapper/target/libAny suggestions of things to try to get the md-mapper running?
(A feature suggestion would be some default help text when running and detailed error messages.)