archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stallard,David" <>
Subject 404 after changing context in Archiva 2.0.1
Date Thu, 05 Jun 2014 14:17:35 GMT
Changed the subject line to more accurately reflect the current issue…any ideas?


From: <Stallard>, "Stallard,David" <<>>
Date: Tuesday, June 3, 2014 at 1:31 PM
To: "<>" <<>>
Subject: Re: 405 error when uploading to Archiva 2.0.1

If I change the context to “/archiva” and then restart Archiva, when I try to go to th
web interface I get this:

Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:

  *   /archiva ---> o.e.j.w.WebAppContext{/archiva,file:/svn/maven/apache-archiva-2.0.1/apps/archiva/},/svn/maven/apache-archiva-2.0.1/apps/archiva<>

There is nothing in archiva.log, but there are messages like this in the request log:

[ip address] -  -  [03/Jun/2014:14:52:12 +0000] "GET /restServices/archivaUiServices/runtimeInfoService/archivaRuntimeInfo/en?_=1401807132949
HTTP/1.1" 404 1338 "http://host:port/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0)
Gecko/20100101 Firefox/29.0"

[ip address] -  -  [03/Jun/2014:15:32:53 +0000] "GET / HTTP/1.1" 404 802 "-" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0"

On 6/3/14, 8:05 AM, "Olivier Lamy" <<>>

With changing  to <Set name="contextPath">/archiva</Set> ?
Sounds weird (I just tested with 2.0.1 and got it working)
Do you have any errors in log?

On 3 June 2014 00:15, Stallard,David <<>>
If I want to change the context back to what it was previously so that our
URLs don’t change, is there something else I need to do besides modify
contexts/archiva.xml?  I changed the contextPath from “/“ to “/archiva”
but that gives me a 404 that there is no known context.

On 5/30/14, 1:27 AM, "Olivier Lamy" <<>>

Note: per default archiva is now on root context.
section "Updated Jetty configuration"


On 30 May 2014 07:28, Stallard,David <<>>
It turns out that the URLs are slightly different.  In our 1.3.5
with tomcat the URLs look like this:


But in the 2.0.1 instance with jetty it looks like this (no ³archiva²


I don¹t know if the string ³archiva² is an inherent difference between
1.3.5 and 2.0.1, or if it¹s a difference between our tomcat setup and
jetty setup.  I browsed the 2.0.1 config files a bit but didn¹t see
this might be defined.

Once we changed our maven settings.xml to remove ³archiva² from the URL,
the 405 error went away.  It was replaced with a 401, but hopefully now
that is something we can work through.

On 5/29/14, 11:34 AM, "Pimentel, Robert" <<>>

Is it using the appropriate URL value? Can you provide the error stack
from maven (mvn -e)? Can you provide a snippet from the Archiva log(s)?


-----Original Message-----
From: Stallard,David []
Sent: Thursday, May 29, 2014 10:24 AM
Subject: Re: 405 error when uploading to Archiva 2.0.1

Just to add to the below, uploads are working fine through the web
interface but we get the http 405 error when a maven build tries to
upload.  Downloads are working fine as well.


From: <Stallard>, "Stallard,David"
Date: Tuesday, May 27, 2014 at 2:03 PM
To: "<><>"
Subject: 405 error when uploading to Archiva 2.0.1

We are trying to test a maven deploy against our test instance of
2.0.1, but we are getting http 405 when the build attempts to upload an
artifact.  It looks like 405 means that the upload method was not

The new instance is running on the same port as our live instance of
Archiva 1.3.5 (different host though), so I don't think the application
being built has a port number that needs to be changed.  The main
difference is that 1.3.5 is running with tomcat and 2.0.1 is using the
included jetty.  Could we be missing some setting in jetty.xml which is
set correctly in our 1.3.5 instance?  Any other ideas?


Olivier Lamy
Ecetera: |

Olivier Lamy
Ecetera: |

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message