You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Dave Brosius <db...@baybroadband.net> on 2010/11/02 06:34:04 UTC

Re: Proxy problems with non .jar files

Would someone mind setting up this example and verifying that it does 
work for them?

Just need to run to standalone archiva's locally, with one proxied to 
the other.

thanks in advance.
dave


On 10/27/2010 03:09 PM, David Brosius wrote:
> In the east coast server (the source server) i see failed attempts to find
> the jar on it's list of external maven repositories, so i know that the
> request is making it to that server.
>
> To be clear, the client just hangs waiting for the request to complete.
>
> The xml files were added to archiva thru the archiva web interface.
>
> Perhaps this was a misstep by me: When i added them, the 'packaging'
> attribute i gave was xml, that's correct right?
>
> Again, these files are correctly pulled when clients go directly against
> the east coast server. It's only when there is a proxy involved that there
> are problems.
>
>
>
> ----- Original Message -----
> From: "Wendy Smoak"<ws...@gmail.com>
> Sent: Wed, October 27, 2010 14:37
> Subject:Re: Proxy problems with non .jar files
>
>
> On Wed, Oct 27, 2010 at 2:22 PM, David Brosius
> <db...@baybroadband.net>  wrote:
>> For instance .xml files in the east coast repository are not proxied into
>> the west coast server, and thus don't make it to the west coast client
>> developers.
> Does anything interesting show up in the logs (on either side) when
> you make a request for the file?
>
> Are the xml files proper artifacts with checksums and metadata?  How
> did they get into Archiva?
>


Re: Proxy problems with non .jar files

Posted by Dave Brosius <db...@baybroadband.net>.
On 11/03/2010 11:17 AM, Wendy Smoak wrote:
> Is it not working for you locally either?
>

This is what i did,

1) Downloaded archiva 1.3.1 standalone, and unzipped it into two 
directories called local and remote.

2) Edited the jetty.xml file of the remote directory install to use port 
9090

3) Started both archivas

4) On archiva in remote dir (9090) added a remote repository thru the 
gui that had this information:

     Identifier: proxy
     Name: Proxy of Local
     URL: http://localhost:8080/archiva/repository/internal/
     UserName: as defined
     Password: as defined
     Timeout in Seconds: 60
     Type: Maven 2.x repository

5) On archiva in remote dir (9090) added a proxy connector thru the gui 
that had this information:

     Network Proxy: (direct connection)
     Managed Repository: internal
     Remote Repository: proxy
     (all other settings defaulted)

6) On archiva in local dir (8080) uploaded an artifact thru the gui that 
had this information:

     Group Id: com.mebigfatguy
     Artifact Id: fb-contrib
     Version: 4.6.0
     Packaging: jar
     Classifier: (blank)
     Generate Maven 2 POM: checked
     Artifact file: fb-contrib.jar
     Repository Id: internal

     and submitted it.

7) Next brought up firefox and entered url for the archiva in the remote 
dir (9090)

     
http://localhost:9090/archiva/repository/internal/com/mebigfatguy/fb-contrib/4.6.0/fb-contrib-4.6.0.xml 
<http://localhost:9090/archiva/repository/internal/com/mebigfatguy/fb-contrib/4.6.0/fb-contrib-4.6.0.xml>

     and file is successfully downloaded

8) On archiva in local dir (8080) uploaded an artifact thru the gui that 
had this information:

     Group Id: com.mebigfatguy
     Artifact Id: build
     Version: 4.6.0
     Packaging: xml
     Classifier: (blank)
     Generate Maven 2 POM: checked
     Artifact file: build.xml
     Repository Id: internal

     and submitted it.

9) Next brought up firefox and entered url for the archiva in the 
*local* dir (8080)

     
http://localhost:8080/archiva/repository/internal/com/mebigfatguy/build/4.6.0/build-4.6.0.xml 
<http://localhost:9090/archiva/repository/internal/com/mebigfatguy/fb-contrib/4.6.0/fb-contrib-4.6.0.xml>

     and the file is successfully downloaded

10) Next brought up firefox and entered url for the archiva in the 
*remote* dir (9090)

     
http://localhost:9090/archiva/repository/internal/com/mebigfatguy/build/4.6.0/build-4.6.0.xml 
<http://localhost:9090/archiva/repository/internal/com/mebigfatguy/fb-contrib/4.6.0/fb-contrib-4.6.0.xml>

     Artifact is *not downloaded *and get this error page


         HTTP ERROR 404

     Problem accessing 
/archiva/repository/internal/com/mebigfatguy/build/4.6.0/build-4.6.0.xml. Reason:

     	Resource does not exist

------------------------------------------------------------------------
/Powered by Jetty:///





Re: Proxy problems with non .jar files

Posted by Wendy Smoak <ws...@gmail.com>.
On Tue, Nov 2, 2010 at 1:34 AM, Dave Brosius <db...@baybroadband.net> wrote:
> Would someone mind setting up this example and verifying that it does work
> for them?
>
> Just need to run to standalone archiva's locally, with one proxied to the
> other.

Is it not working for you locally either?

I haven't had time to try it, but meant to come back and ask for more
info on how to reproduce it.

In particular, details on how you added the xml file (values for all
the fields on the upload form,) and what the directory contents look
like after it is uploaded.

-- 
Wendy