Hi Brett!<br><br>I have now tried with the  pre-compiled binaries:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">wget <a href="http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz" target="_blank">http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz</a><br>

tar zxvf osmosis-latest.tgz<br></blockquote><br>I have then modified the entry in the PATH variable so that it matches the new installation<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">

echo $PATH<br></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/humadat/data/prog/osm2pgsql:/home/humadat/data/prog/osmosis-0.41/bin<br>

</blockquote><br>And it works already better! If I try to sort an osm file, for example, it works out without any exception or error. <br><br>But,
 unfortunately, I get other exceptions when I try to acquire the 
replication data (the variable $WORKDIR_OSM is properly defined: 
/home/humadat/tmp):<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">osmosis --read-replication-interval workingDirectory=$WORKDIR_OSM --simplify-change  --write-xml-change changes.osc.gz</blockquote>

<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Sep 3, 2012 1:00:22 PM org.openstreetmap.osmosis.core.Osmosis run               <br>INFO: Osmosis Version 0.41                                                      <br>

Sep 3, 2012 1:00:23 PM org.openstreetmap.osmosis.core.Osmosis run               <br>INFO: Preparing pipeline.                                                       <br>Sep 3, 2012 1:00:23 PM org.openstreetmap.osmosis.core.Osmosis run               <br>

INFO: Launching pipeline execution.                                             <br>Sep 3, 2012 1:00:23 PM org.openstreetmap.osmosis.core.Osmosis run               <br>INFO: Pipeline executing, waiting for completion.                               <br>

Sep 3, 2012 1:00:24 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTask<br>Manager waitForCompletion                                                       <br>SEVERE: Thread for task 1-read-replication-interval failed                      <br>

org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read the prope<br>rties from file /home/humadat/tmp/configuration.txt.                            <br>        at org.openstreetmap.osmosis.core.util.PropertiesPersister.load(Properti<br>

esPersister.java:71)                                                            <br>        at org.openstreetmap.osmosis.replication.v0_6.impl.ReplicationDownloader<br>Configuration.<init>(ReplicationDownloaderConfiguration.java:33)                <br>

        at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.<br>runImpl(BaseReplicationDownloader.java:263)                                     <br>        at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.<br>

run(BaseReplicationDownloader.java:360)                                         <br>        at java.lang.Thread.run(Thread.java:662)                                <br>Caused by: java.io.FileNotFoundException: /home/humadat/tmp/configuration.txt (N<br>

o such file or directory)                                                       <br>        at java.io.FileInputStream.open(Native Method)                          <br>        at java.io.FileInputStream.<init>(FileInputStream.java:106)             <br>

        at org.openstreetmap.osmosis.core.util.PropertiesPersister.load(Properti<br>esPersister.java:59)                                                            <br>        ... 4 more                                                              <br>

Sep 3, 2012 1:00:24 PM org.openstreetmap.osmosis.core.Osmosis main              <br>SEVERE: Execution aborted.                                                      <br>org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed<br>

.<br>        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple<br>tion(Pipeline.java:146)<br>        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)<br>        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)<br>

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.<br>java:39)<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces<br>

sorImpl.java:25)<br>        at java.lang.reflect.Method.invoke(Method.java:597)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun<br>cher.java:329)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav<br>

a:239)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La<br>uncher.java:409)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:<br>352)<br>        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)<br>

</blockquote><br><br>This error message talks about a config file 
$WORKDIR_OSM/configuration.txt but I don't have any at this location... 
Should I create it myself? And what should it contain?<br><br>I just created an empty file configuration.txt at this location and...<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis run               <br>INFO: Osmosis Version 0.41                                                      <br>

Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis run               <br>INFO: Preparing pipeline.                                                       <br>Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis run               <br>

INFO: Launching pipeline execution.                                             <br>Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis run               <br>INFO: Pipeline executing, waiting for completion.                               <br>

Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTask<br>Manager waitForCompletion                                                       <br>SEVERE: Thread for task 1-read-replication-interval failed                      <br>

java.lang.NullPointerException                                                  <br>        at org.openstreetmap.osmosis.replication.v0_6.impl.ReplicationDownloader<br>Configuration.getBaseUrl(ReplicationDownloaderConfiguration.java:47)            <br>

        at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.<br>runImpl(BaseReplicationDownloader.java:267)                                     <br>        at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.<br>

run(BaseReplicationDownloader.java:360)                                         <br>        at java.lang.Thread.run(Thread.java:662)                                <br>Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis main<br>

SEVERE: Execution aborted.<br>org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed<br>.<br>        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple<br>tion(Pipeline.java:146)<br>

        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)<br>        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)<br>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.<br>java:39)<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces<br>sorImpl.java:25)<br>        at java.lang.reflect.Method.invoke(Method.java:597)<br>

        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun<br>cher.java:329)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav<br>a:239)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La<br>

uncher.java:409)<br>        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:<br>352)<br>        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)<br></blockquote><br>Thanks a lot if you have any idea what the problem can be!<br>

<br>Cheers,<br><br>Stéphane<br clear="all">--<br>"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux" -- Albert Einstein<br><br>"A journey does not need reasons. Before long, it proves to be reason enough in itself. One thinks that one is going to make a journey, yet soon it is the journey that makes or unmakes you." -- Nicolas Bouvier<br>
<br>Photos de voyages, photos de montagne: <a href="http://www.henriod.info/" target="_blank">http://www.henriod.info</a><span dir="ltr"><span dir="ltr" title="Appeler ce numéro de téléphone en/au(x) Tadjikistan avec Skype : +992934624662"><span>  </span></span> <br>
</span><br>
<br><br><div class="gmail_quote">On Sun, Sep 2, 2012 at 7:10 AM, Brett Henderson <span dir="ltr"><<a href="mailto:brett@bretth.com" target="_blank">brett@bretth.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2 September 2012 04:26, Stéphane Henriod <span dir="ltr"><<a href="mailto:s@henriod.info" target="_blank">s@henriod.info</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p>Hi Brett</p>
<p>Thanks for your answer!</p>
<p>Yes I have compiled the source with the command ant build.</p></blockquote><div><br>What command did you run to build the software, and which directory did you run the command from?  Did the ant command complete without errors?<br>

 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>The reason I didn't use the binaries is that I work on a mutualised server where I don't have admin rights. Thus  I can't do anything that requires a sudo command like sudo apt-get.</p></blockquote><div><br>

You don't need admin rights.  You can simply download a precompiled binary package from here and extract it somewhere in your home directory.<br><a href="http://wiki.openstreetmap.org/wiki/Osmosis#Latest_Stable_Version" target="_blank">http://wiki.openstreetmap.org/wiki/Osmosis#Latest_Stable_Version</a><br>

<br>I'd strongly recommend trying the binary build first.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>After compilation I have put the path to osmosis (home/my_user/data/prog/package/bin) in the path variable. So now I simply call it from anywhere with the command "osmosis".</p>
<p>When I try osmosis --arguments I get this java error which makes me think that osmosis is found properly but that he doesn't find the path to some java library or something.</p></blockquote><div><br>It is usually caused by a problem during compilation.  The launch script is a shell script which you are executing successfully.  As you've suggested, the problem is caused by missing libraries.  In your case, a file called package/lib/default/plexus-classworlds-2.4.jar might be missing.<br>

 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Does it make a difference that osmosis is installed in my home and not in a higher level directory?</p></blockquote><div><br>It can be installed anywhere you please, so installing in your home directory should be okay.<span class="HOEnZb"><font color="#888888"><br>

<br>Brett<br><br></font></span></div></div>
</blockquote></div><br>