You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Zemian Deng <ke...@gmail.com> on 2008/08/20 15:13:47 UTC

can't modify config

Hi,

I updated to Archiva 1.1.1, and things seems to runs fine, except now I
can't update any config without getting this error:

"Configuration can not be saved when it is loaded from two sources"

Is there something I misconfigured?

I startup archiva in a Tomcat instance where I specify
-Dappserver.home=/data/archiva -Dappserver.base=/data/archiva, and I have a
/data/archiva/conf/archiva.xml file exists.

The webapp is also setup to load from a context.xml file under
tomcat/conf/Catalina/localhost/arhiva.xml, and it points docBase back to the
war running unpackWar=true.

This config used to work on previos release. Any idea?

Much thanks.

-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

Re: can't modify config

Posted by Zemian Deng <ke...@gmail.com>.
Ahh.... there is a ~/.m2/archiva.xml file exists. I removed it and it's
working fine now.
Thank you Wendy.
-Z

On Wed, Aug 20, 2008 at 9:41 AM, Wendy Smoak <ws...@gmail.com> wrote:

> On Wed, Aug 20, 2008 at 6:13 AM, Zemian Deng <ke...@gmail.com>
> wrote:
>
> > I updated to Archiva 1.1.1, and things seems to runs fine, except now I
> > can't update any config without getting this error:
> >
> > "Configuration can not be saved when it is loaded from two sources"
> >
> > Is there something I misconfigured?
> >
> > I startup archiva in a Tomcat instance where I specify
> > -Dappserver.home=/data/archiva -Dappserver.base=/data/archiva, and I have
> a
> > /data/archiva/conf/archiva.xml file exists.
>
> Also look your home directory for a .m2 directory and another
> archiva.xml file, and remove it.  (You might want to combine the info
> with the other file first.)
>
> --
> Wendy
>



-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

Re: can't modify config

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Aug 20, 2008 at 6:13 AM, Zemian Deng <ke...@gmail.com> wrote:

> I updated to Archiva 1.1.1, and things seems to runs fine, except now I
> can't update any config without getting this error:
>
> "Configuration can not be saved when it is loaded from two sources"
>
> Is there something I misconfigured?
>
> I startup archiva in a Tomcat instance where I specify
> -Dappserver.home=/data/archiva -Dappserver.base=/data/archiva, and I have a
> /data/archiva/conf/archiva.xml file exists.

Also look your home directory for a .m2 directory and another
archiva.xml file, and remove it.  (You might want to combine the info
with the other file first.)

-- 
Wendy