Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 48012 invoked from network); 26 Apr 2008 10:50:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2008 10:50:49 -0000 Received: (qmail 95556 invoked by uid 500); 26 Apr 2008 10:50:48 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 95527 invoked by uid 500); 26 Apr 2008 10:50:47 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 95516 invoked by uid 99); 26 Apr 2008 10:50:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 03:50:47 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 10:50:01 +0000 Received: by ug-out-1314.google.com with SMTP id k3so240673ugf.5 for ; Sat, 26 Apr 2008 03:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=EPWtSu+ef/42mj0YdMQ38YJXqsWa9/vUKOGs9U87Xco=; b=p+QSpcWIso+/kFGfpiLs9VJrW2hNp1G5DKvY6+P/BjXz9RW+O8e8FTlb51adIGW1rMP1aId7l6XdiWzKoZr+3PnPsbNer/yod09EsnxpGlgq2L+s/d/mbMzSH/XJakgbS+3+phQ4SD/ITuqNHSb0DScawFlFxkrMjyShJSR0kZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=FeSczHa+aPLpbeQHyWv/x3aV3LgrW3qfI8ut305JzJeKmd3peGz+nZdO77rZt2TumR/9PRzZM8afKIcptXWVQgg3sDp5v27Z1LjWBLrpzF4XhrJAB3x3F6W1JJ/iPfQnv4DRGHQuXfs7wKRlkuWK4dFZLRv9Y7bTSH2YbgMo+dc= Received: by 10.67.87.6 with SMTP id p6mr1623107ugl.53.1209207013356; Sat, 26 Apr 2008 03:50:13 -0700 (PDT) Received: by 10.66.237.3 with HTTP; Sat, 26 Apr 2008 03:50:13 -0700 (PDT) Message-ID: <36e91d9d0804260350i21294e39q8884d04b953d9966@mail.gmail.com> Date: Sat, 26 Apr 2008 12:50:13 +0200 From: "Dejan Bosanac" Sender: chubrilo@gmail.com To: dev@activemq.apache.org Subject: Re: Patch for authenticating http-proxy: Compile error In-Reply-To: <16894123.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_57_618409.1209207013348" References: <16894123.post@talk.nabble.com> X-Google-Sender-Auth: 744045bcbbc6e5c9 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_57_618409.1209207013348 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, great you've decided to contribute. As I can see, org.apache.commons.httpclient.auth.AuthScope is available in http client since version 3.0 and optional package is currently using 2.0.1. You might want to upgrade it 3.1 (I think this is the latest) by changing a property in parent's pom file. Thanks -- Dejan Bosanac www.scriptinginjava.net On Fri, Apr 25, 2008 at 11:53 AM, j0llyr0g3r < timo.roessner@wincor-nixdorf.com> wrote: > > Hey folks, > > as described in this thread: > > http://www.nabble.com/Request-for-patch%3A-http-proxy--%3E-setting-user---password-not-possible-td16823746s2354.html > > we are in need of a patch to authenticate against a http-proxy. > > Since nobody said "Yes, i will write one" i decided to write one > myself....:-) > > The patch is written and should work fine, but unfortunately i can't > compile > the amq-sources (note: if i leave your code untouched, it compiles > flawlesslsy). > > I can reproduce the problem in a simple fashion by adding this import > statement: > > import org.apache.commons.httpclient.auth.AuthScope; > > to > > > activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java > > Extract from the import-section: > > import org.apache.commons.httpclient.HttpClient; > import org.apache.commons.httpclient.HttpMethod; > import org.apache.commons.httpclient.HttpStatus; > /* here is my import statement */ > import org.apache.commons.httpclient.auth.AuthScope; > /* the rest was left "untouched" */ > import org.apache.commons.httpclient.methods.GetMethod; > import org.apache.commons.httpclient.methods.HeadMethod; > import org.apache.commons.httpclient.methods.PostMethod; > > > > When i try to build the whole thing via: > > mvn clean install -Dmaven.test.skip=true -e > > i get: > > > [INFO] Compiling 32 source files to > > /mnt/data/sw/amq/apache-activemq-5.0.0/src/activemq-optional/target/classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > > /mnt/data/sw/amq/apache-activemq-5.0.0/src/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java:[33,42] > cannot find symbol > symbol : class AuthScope > location: package org.apache.commons.httpclient.auth > > > > > /mnt/data/sw/amq/apache-activemq-5.0.0/src/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java:[33,42] > cannot find symbol > symbol : class AuthScope > location: package org.apache.commons.httpclient.auth > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.BuildFailureException: Compilation failure > > /mnt/data/sw/amq/apache-activemq-5.0.0/src/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java:[33,42] > cannot find symbol > symbol : class AuthScope > location: package org.apache.commons.httpclient.auth > > I am absolutely clueless why this error occurs, since all the other > http-client import statements don't cause any errors. > > -> I checked the path and import statement twice : correct > -> the package > > org.apache.commons.httpclient.auth.AuthScope; > > is in the standard http-client distribution. > > -> And the weirdest thing: Neither before nor after an successfull build > the > http-client library is somewhere in the source-directory? I don't get, how > can this be built at all? Do you put the compiler in a > "just-trust-me-on-this-one-mode"? > > First i thought, that maven would download the needed jar-files, but > compilation even works if there is no network available? > > Ok, all of the above leads me to 2 possible assumptions: > > 1.) You really put the compiler in a "just-trust-me-on-this-one-mode" for > certain predefined import statements. That's why > > org.apache.commons.httpclient.auth.AuthScope; > > fails, but > > import org.apache.commons.httpclient.HttpMethod; > > doesn't. > > 2. You download the required jar-files (like http-client) on the fly and > delete it afterwards. Furthermore you use a http-client library which has > does not have the package > > org.apache.commons.httpclient.auth.AuthScope; > > (This still doesn't explain why you can build amq even without network > access) > > Folks, > > i am lost. Could somebody shed some light on how amq is build and how i > can > solve this problem? > > P.S.: > > - I am building amq the "standard" way: > > export MAVEN_OPTS=-Xmx512M > mvn clean install -Dmaven.test.skip=true -e > > - java-version: 1.5.0_13 > - OS: Ubuntu 7.10 > - amq-version: latest stable release version 5 > -- > View this message in context: > http://www.nabble.com/Patch-for-authenticating-http-proxy%3A-Compile-error-tp16894123s2354p16894123.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > > ------=_Part_57_618409.1209207013348--