archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter" <brett.por...@gmail.com>
Subject Re: Separating the base from the installation not working
Date Mon, 18 Feb 2008 20:54:51 GMT
Ah, I see. You shouldn't move the original configuration (specifically
the classworlds configuration). I just copy the 3 XML files to the new
conf directory.

Also, you are write - the PID file is written to the installation
(which is probably a bug - we should make sure that is addressed in
MRM-688.

Thanks!

Cheers,
Brett

On 19/02/2008, Martin Hoeller <martin@xss.co.at> wrote:
> On 19 Feb 2008, Brett Porter wrote:
>
> > The doc could well be a bit wrong in step 2 - please file a bug for that :)
>
> Ok, done that: http://jira.codehaus.org/browse/MRM-701
>
> > I do use it successfully with the following script to start it though:
> >
> > #!/bin/sh
> > version=1.0.1
> > PLEXUS_BASE=$HOME/Library/Application\ Support/Archiva
> > /Applications/Archiva/apache-archiva-$version/bin/macosx-universal-32/run.sh
> > $@
>
> That's what I'd expect to work, but unfortunately it doesn't :-(
> (I suppose the "$@" should be on one line with the run.sh line)
>
> > Maybe you were missing an export of PLEXUS_BASE before starting? (the
> > above doesn't need it since it's all on one line, the env vars are
> > passed to the second run script).
>
> No, I did export PLEXUS_BASE and also tried it in a script like yours. No
> success.
>
> Here are exactly the steps i performed:
>
> 1) tar xzvf ~/downloads/apache-archiva-1.0.1-bin.tar.gz
> 2) mkdir -p archiva-data/logs
>    (NOTE: when I do not create the 'logs' directory archiva throws an
>    exception)
> 3) mv apache-archiva-1.0.1/conf archiva-data/
> 4) chmod ugo-w -R apache-archiva-1.0.1/
> 5) ./apache-archiva-1.0.1/bin/linux-x86-32/run.sh console
>
> The result is:
>   Running Archiva...
>   wrapper  | ERROR: Could not write pid file ./archiva.pid: Permission denied
>
> It tries to write the PID-File to bin/linux-x86-32/, not './'. If I allow
> for writing there by doing
>
> 6) chmod a+w apache-archiva-1.0.1/bin/linux-x86-32/
> 7) ./apache-archiva-1.0.1/bin/linux-x86-32/run.sh console
>
> The result is another exception:
> Running Archiva...
> wrapper  | --> Wrapper Started as Console
> wrapper  | Launching a JVM...
> jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
> jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
> jvm 1    |
> jvm 1    | java.io.FileNotFoundException: [...]/apache-archiva-1.0.1/conf/classworlds.conf
(No such file or directory)
> jvm 1    |      at java.io.FileInputStream.open(Native Method)
> jvm 1    |      at java.io.FileInputStream.<init>(FileInputStream.java:106)
> jvm 1    |      at java.io.FileInputStream.<init>(FileInputStream.java:66)
> jvm 1    |      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:385)
> jvm 1    |      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
> jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> jvm 1    |      at java.lang.reflect.Method.invoke(Method.java:585)
> jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> jvm 1    |      at java.lang.Thread.run(Thread.java:595)
> wrapper  | <-- Wrapper Stopped
>
> BTW, I'm running on Debian GNU/Linux, with java version 1.5.0_12.
>
> Anyone knows whats the problem here?
>
> - martin
> --
> Martin Höller                   | martin.hoeller@xss.co.at
> *x Software + Systeme           | http://www.xss.co.at/
> Karmarschgasse 51/2/20          | Tel: +43-1-6060114-30
> A-1100 Vienna, Austria          | Fax: +43-1-6060114-71
>
>


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

Mime
View raw message