Hi Brett! I have now tried with the pre-compiled binaries:
wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz > tar zxvf osmosis-latest.tgz > I have then modified the entry in the PATH variable so that it matches the new installation echo $PATH > /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/humadat/data/prog/osm2pgsql:/home/humadat/data/prog/osmosis-0.41/bin > And it works already better! If I try to sort an osm file, for example, it works out without any exception or error. But, unfortunately, I get other exceptions when I try to acquire the replication data (the variable $WORKDIR_OSM is properly defined: /home/humadat/tmp): > osmosis --read-replication-interval workingDirectory=$WORKDIR_OSM > --simplify-change --write-xml-change changes.osc.gz Sep 3, 2012 1:00:22 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Osmosis Version > 0.41 > Sep 3, 2012 1:00:23 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Preparing > pipeline. > Sep 3, 2012 1:00:23 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Launching pipeline > execution. > Sep 3, 2012 1:00:23 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Pipeline executing, waiting for > completion. > Sep 3, 2012 1:00:24 PM > org.openstreetmap.osmosis.core.pipeline.common.ActiveTask > Manager > waitForCompletion > SEVERE: Thread for task 1-read-replication-interval > failed > org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read the > prope > rties from file > /home/humadat/tmp/configuration.txt. > at > org.openstreetmap.osmosis.core.util.PropertiesPersister.load(Properti > esPersister.java:71) > > at > org.openstreetmap.osmosis.replication.v0_6.impl.ReplicationDownloader > Configuration.<init>(ReplicationDownloaderConfiguration.java:33) > > at > org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader. > runImpl(BaseReplicationDownloader.java:263) > > at > org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader. > run(BaseReplicationDownloader.java:360) > > at > java.lang.Thread.run(Thread.java:662) > Caused by: java.io.FileNotFoundException: > /home/humadat/tmp/configuration.txt (N > o such file or > directory) > at java.io.FileInputStream.open(Native > Method) > at > java.io.FileInputStream.<init>(FileInputStream.java:106) > at > org.openstreetmap.osmosis.core.util.PropertiesPersister.load(Properti > esPersister.java:59) > > ... 4 > more > Sep 3, 2012 1:00:24 PM org.openstreetmap.osmosis.core.Osmosis > main > SEVERE: Execution > aborted. > org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks > failed > . > at > org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple > tion(Pipeline.java:146) > at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92) > at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun > cher.java:329) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav > a:239) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La > uncher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: > 352) > at org.codehaus.classworlds.Launcher.main(Launcher.java:47) > 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? I just created an empty file configuration.txt at this location and... Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Osmosis Version > 0.41 > Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Preparing > pipeline. > Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Launching pipeline > execution. > Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis > run > INFO: Pipeline executing, waiting for > completion. > Sep 3, 2012 1:05:28 PM > org.openstreetmap.osmosis.core.pipeline.common.ActiveTask > Manager > waitForCompletion > SEVERE: Thread for task 1-read-replication-interval > failed > java.lang.NullPointerException > > at > org.openstreetmap.osmosis.replication.v0_6.impl.ReplicationDownloader > Configuration.getBaseUrl(ReplicationDownloaderConfiguration.java:47) > > at > org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader. > runImpl(BaseReplicationDownloader.java:267) > > at > org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader. > run(BaseReplicationDownloader.java:360) > > at > java.lang.Thread.run(Thread.java:662) > Sep 3, 2012 1:05:28 PM org.openstreetmap.osmosis.core.Osmosis main > SEVERE: Execution aborted. > org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks > failed > . > at > org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple > tion(Pipeline.java:146) > at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92) > at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun > cher.java:329) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav > a:239) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La > uncher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: > 352) > at org.codehaus.classworlds.Launcher.main(Launcher.java:47) > Thanks a lot if you have any idea what the problem can be! Cheers, Stéphane -- "Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux" -- Albert Einstein "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 Photos de voyages, photos de montagne: http://www.henriod.info On Sun, Sep 2, 2012 at 7:10 AM, Brett Henderson <[email protected]> wrote: > On 2 September 2012 04:26, Stéphane Henriod <[email protected]> wrote: > >> Hi Brett >> >> Thanks for your answer! >> >> Yes I have compiled the source with the command ant build. >> > > 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? > > >> 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. >> > > You don't need admin rights. You can simply download a precompiled binary > package from here and extract it somewhere in your home directory. > http://wiki.openstreetmap.org/wiki/Osmosis#Latest_Stable_Version > > I'd strongly recommend trying the binary build first. > > >> 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". >> >> 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. >> > > 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. > > >> Does it make a difference that osmosis is installed in my home and not in >> a higher level directory? >> > > It can be installed anywhere you please, so installing in your home > directory should be okay. > > Brett > >
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

