[osmosis-dev] use classworlds-Loader fort start script?

Sarah Hoffmann lonvia at denofr.de
Thu Dec 10 20:48:42 GMT 2009


Uh,

On Tue, 08 Dec 2009 02:04:55 +0100, Hakan Tandogan <hakan at gurkensalat.com>
wrote:
> Brett Henderson wrote:
>> If it isn't too invasive it should be fine.  I guess the best way is to 
>> try it out and see if any problems crop up.
> 
> I committed my changes to use the classworlds launcher a few hours ago.
> 
> The configuration is in the file config/plexus.conf and instructs the 
> launcher to load all jars from lib and lib/default ; I also modified the 
> windows and unix scripts to use the classworlds launcher.

I'm really out of luck today. That didn't work on my virgin build of
osmosis, either.

First of all, it couldn't find the plexus-classworlds*.jar, then it was
looking for a lib/plexus.conf instead of a config/plexus.conf and, finally,
the osmosis.jar itself was missing in the plexus.conf. The attached patch
finally did the trick.

Final point to note: the paths in plexus.conf are relative to the
current working directory. Launching osmosis from anywhere else than
the root of the source directory results in a FileNotFoundException.

Sarah

-------------- next part --------------
A non-text attachment was scrubbed...
Name: osmosis_classlauncher.patch
Type: text/x-diff
Size: 1561 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20091210/08486270/attachment.patch>


More information about the osmosis-dev mailing list