NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I cloned todays current git repository, but the build stops somewhere because of a failed unit test. The build results in a jar file in the dist/ directory, but that doesn't run either.

Here is the last bit of output from running "ant all":

checkstyle: [cs:checkstyle] Running Checkstyle 5.4 on 75 files

build_test:

test:
    [junit] Running org.openstreetmap.osmosis.apidb.v0_6.ApiDbTest
    [junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 0.765 sec
    [junit] Test org.openstreetmap.osmosis.apidb.v0_6.ApiDbTest FAILED
    [junit] Running org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicatorTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.054 sec
    [junit] Test org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicatorTest FAILED
    [junit] Running org.openstreetmap.osmosis.apidb.v0_6.impl.ChangesetManagerTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.075 sec
    [junit] Test org.openstreetmap.osmosis.apidb.v0_6.impl.ChangesetManagerTest FAILED
    [junit] Running org.openstreetmap.osmosis.apidb.v0_6.impl.ReplicationSequenceFormatterTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.028 sec
    [junit] Running org.openstreetmap.osmosis.apidb.v0_6.impl.ReplicatorTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.068 sec
    [junit] Running org.openstreetmap.osmosis.apidb.v0_6.impl.TransactionSnapshotTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.003 sec

BUILD FAILED /home/mok/osm/sources/osmosis/build.xml:30: The following error occurred while executing this line: /home/mok/osm/sources/osmosis/build-support/script/build-java.xml:128: O
ne or more junit tests failed.

Here is the output when I try to run the osomosis application:

$ osmosis -h
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.codehaus.classworlds.Launcher. Program will exit.

I guess the question is: what's wrong?

asked 09 Feb '12, 11:01

mok0's gravatar image

mok0
11112
accept rate: 0%

closed 09 Feb '12, 11:45

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

The question has been closed for the following reason "Unsuitable question for help forum." by Frederik Ramm 09 Feb '12, 11:45


This help forum is a place where we try to find answers of a general relevance, i.e. ideally answers that will be useful to other people than just you, and that will be valid over a longer period of time.

On the Osmosis page in our Wiki, under "getting help and reporting bugs", it says:

The best place to get answers to questions on osmosis usage is the osmosis dev mailing list.

http://lists.openstreetmap.org/listinfo/osmosis-dev

Please discuss potential bugs on the dev mailing list before creating new tickets. If you're confident you have discovered a bug, it can be logged in the OSM trac system against the "osmosis" component:

http://trac.openstreetmap.org/query?component=osmosis

Please follow that advice.

permanent link

answered 09 Feb '12, 11:44

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252
×252
×84

question asked: 09 Feb '12, 11:01

question was seen: 4,432 times

last updated: 09 Feb '12, 11:45

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum