[Mulgara-general] Cannot modify config-file in JAR-package
Paul Gearon
gearon at ieee.org
Tue Sep 23 04:50:26 UTC 2008
On Mon, Sep 22, 2008 at 10:28 PM, Rune Stilling <subs at rdfined.dk> wrote:
> Hi
>
> I'm trying to modify the "conf/mulgara-x-config.xml" i the Mulgara
> JAR-file by using the "jar -uf"-command. But with every version since
> 2.0 I get a duplicate entry exception. In version 2.0.5 the problem
> is around files in the Jasper directory.
>
> Are there other ways to run Mulgara with a modified config-file?
Yes, there are 2 ways:
1. Re-build with a new config file. In the Mulgara sources, edit the
conf/mulgara-config.xml file. During a build it is this file that gets
copied to obj/mulgara-x-config.xml, and from here it gets packaged
into the jar. (I have no idea whose idea this was, but that's the way
it works for now).
2. Use the -c or --serverconfig option on the command line. Note that
this takes a URL and *not* a filename. So an example might be:
# java -jar mulgara-2.0.5.jar -c file:/home/fred/conf/mulgara-conf.xml
Regards,
Paul
More information about the Mulgara-general
mailing list