You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by "Stallard,David" <st...@oclc.org> on 2014/06/05 16:17:35 UTC

404 after changing context in Archiva 2.0.1

Changed the subject line to more accurately reflect the current issue…any ideas?

Thanks,
David

From: <Stallard>, "Stallard,David" <st...@oclc.org>>
Date: Tuesday, June 3, 2014 at 1:31 PM
To: "users@archiva.apache.org<ma...@archiva.apache.org>" <us...@archiva.apache.org>>
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<http://svnap01qxdu.dev.oclc.org:10000/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" <ol...@apache.org>> wrote:

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 <st...@oclc.org>> wrote:
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" <ol...@apache.org>> wrote:

Note: per default archiva is now on root context.
See http://archiva.apache.org/docs/2.0.1/adminguide/upgrade.html
section "Updated Jetty configuration"

HTH
Olivier

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

http://server:port/archiva/repository/internal/...

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

http://server:port/repository/internal/Š

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
our
jetty setup.  I browsed the 2.0.1 config files a bit but didn¹t see
where
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" <Ro...@tgslc.org>>
wrote:

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)?

Thanks,
Rob

-----Original Message-----
From: Stallard,David [mailto:stallard@oclc.org]
Sent: Thursday, May 29, 2014 10:24 AM
To: users@archiva.apache.org<ma...@archiva.apache.org>
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.

Thanks,
David

From: <Stallard>, "Stallard,David"
<st...@oclc.org>>
Date: Tuesday, May 27, 2014 at 2:03 PM
To: "users@archiva.apache.org<ma...@archiva.apache.org>"
<us...@archiva.apache.org>>
Subject: 405 error when uploading to Archiva 2.0.1

We are trying to test a maven deploy against our test instance of
Archiva
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
allowed.

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?

Thanks,
David






--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy




--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy


Re: 404 after changing context in Archiva 2.0.1

Posted by "Stallard,David" <st...@oclc.org>.
Ah, I’m sure you’re right — our 1.3.5 instance requires /archiva at the
end of the URL so I should have done the same thing with our 2.0.1
instance.  Thanks!


On 6/5/14, 11:03 AM, "Pimentel, Robert" <Ro...@tgslc.org> wrote:

>What is the URL you are using to pull up the web interface?
>http://svnap01qxdu.dev.oclc.org:10000/? If so, have you tried using
>http://svnap01qxdu.dev.oclc.org:10000/archiva? I am not using Archiva
>2.0.1, nor have I ever used jetty. It is possible that you may need to
>setup a redirect in jetty for '/', if you expect it to send your request
>to /archiva. Otherwise, if you explicitly specify /archiva as part of
>your URL, you should be able to pull up the console.
>
>Best of luck.
>
>
>-----Original Message-----
>From: Stallard,David [mailto:stallard@oclc.org]
>Sent: Thursday, June 05, 2014 9:18 AM
>To: users@archiva.apache.org
>Subject: 404 after changing context in Archiva 2.0.1
>
>Changed the subject line to more accurately reflect the current issue…any
>ideas?
>
>Thanks,
>David
>
>From: <Stallard>, "Stallard,David"
><st...@oclc.org>>
>Date: Tuesday, June 3, 2014 at 1:31 PM
>To: "users@archiva.apache.org<ma...@archiva.apache.org>"
><us...@archiva.apache.org>>
>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/a
>rchiva/},/svn/maven/apache-archiva-2.0.1/apps/archiva<http://svnap01qxdu.d
>ev.oclc.org:10000/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"
><ol...@apache.org>> wrote:
>
>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
><st...@oclc.org>> wrote:
>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"
><ol...@apache.org>> wrote:
>
>Note: per default archiva is now on root context.
>See http://archiva.apache.org/docs/2.0.1/adminguide/upgrade.html
>section "Updated Jetty configuration"
>
>HTH
>Olivier
>
>On 30 May 2014 07:28, Stallard,David
><st...@oclc.org>> wrote:
>It turns out that the URLs are slightly different.  In our 1.3.5 instance
>with tomcat the URLs look like this:
>
>http://server:port/archiva/repository/internal/...
>
>But in the 2.0.1 instance with jetty it looks like this (no ³archiva²
>string):
>
>http://server:port/repository/internal/Š
>
>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 our
>jetty setup.  I browsed the 2.0.1 config files a bit but didn¹t see where
>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"
><Ro...@tgslc.org>>
>wrote:
>
>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)?
>
>Thanks,
>Rob
>
>-----Original Message-----
>From: Stallard,David [mailto:stallard@oclc.org]
>Sent: Thursday, May 29, 2014 10:24 AM
>To: users@archiva.apache.org<ma...@archiva.apache.org>
>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.
>
>Thanks,
>David
>
>From: <Stallard>, "Stallard,David"
><st...@oclc.org>>
>Date: Tuesday, May 27, 2014 at 2:03 PM
>To: 
>"users@archiva.apache.org<ma...@archiva.apache.org><mailto:users@ar
>chiva.apache.org>"
><us...@archiva.apache.org><mailto:users@ar
>chiva.apache.org>>
>Subject: 405 error when uploading to Archiva 2.0.1
>
>We are trying to test a maven deploy against our test instance of Archiva
>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 allowed.
>
>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?
>
>Thanks,
>David
>
>
>
>
>
>
>--
>Olivier Lamy
>Ecetera: http://ecetera.com.au
>http://twitter.com/olamy | http://linkedin.com/in/olamy
>
>
>
>
>--
>Olivier Lamy
>Ecetera: http://ecetera.com.au
>http://twitter.com/olamy | http://linkedin.com/in/olamy
>


RE: 404 after changing context in Archiva 2.0.1

Posted by "Pimentel, Robert" <Ro...@tgslc.org>.
What is the URL you are using to pull up the web interface? http://svnap01qxdu.dev.oclc.org:10000/? If so, have you tried using http://svnap01qxdu.dev.oclc.org:10000/archiva? I am not using Archiva 2.0.1, nor have I ever used jetty. It is possible that you may need to setup a redirect in jetty for '/', if you expect it to send your request to /archiva. Otherwise, if you explicitly specify /archiva as part of your URL, you should be able to pull up the console.

Best of luck.


-----Original Message-----
From: Stallard,David [mailto:stallard@oclc.org] 
Sent: Thursday, June 05, 2014 9:18 AM
To: users@archiva.apache.org
Subject: 404 after changing context in Archiva 2.0.1

Changed the subject line to more accurately reflect the current issue…any ideas?

Thanks,
David

From: <Stallard>, "Stallard,David" <st...@oclc.org>>
Date: Tuesday, June 3, 2014 at 1:31 PM
To: "users@archiva.apache.org<ma...@archiva.apache.org>" <us...@archiva.apache.org>>
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<http://svnap01qxdu.dev.oclc.org:10000/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" <ol...@apache.org>> wrote:

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 <st...@oclc.org>> wrote:
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" <ol...@apache.org>> wrote:

Note: per default archiva is now on root context.
See http://archiva.apache.org/docs/2.0.1/adminguide/upgrade.html
section "Updated Jetty configuration"

HTH
Olivier

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

http://server:port/archiva/repository/internal/...

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

http://server:port/repository/internal/Š

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 our jetty setup.  I browsed the 2.0.1 config files a bit but didn¹t see where 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" <Ro...@tgslc.org>>
wrote:

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)?

Thanks,
Rob

-----Original Message-----
From: Stallard,David [mailto:stallard@oclc.org]
Sent: Thursday, May 29, 2014 10:24 AM
To: users@archiva.apache.org<ma...@archiva.apache.org>
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.

Thanks,
David

From: <Stallard>, "Stallard,David"
<st...@oclc.org>>
Date: Tuesday, May 27, 2014 at 2:03 PM
To: "users@archiva.apache.org<ma...@archiva.apache.org>"
<us...@archiva.apache.org>>
Subject: 405 error when uploading to Archiva 2.0.1

We are trying to test a maven deploy against our test instance of Archiva 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 allowed.

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?

Thanks,
David






--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy




--
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy