Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 49457 invoked from network); 8 Jan 2007 06:08:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2007 06:08:48 -0000 Received: (qmail 17178 invoked by uid 500); 8 Jan 2007 06:08:52 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 17135 invoked by uid 500); 8 Jan 2007 06:08:52 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 17122 invoked by uid 99); 8 Jan 2007 06:08:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jan 2007 22:08:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ruchith.fernando@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jan 2007 22:08:43 -0800 Received: by nf-out-0910.google.com with SMTP id o63so8345932nfa for ; Sun, 07 Jan 2007 22:08:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XnAJvfpX9SJkbcPJ7PcF/MZfakL+vLnmIGM8UyKNDP3ijdLQgU3YiOTwg0myAzKQXUNt1xEhruQaCrfIf8LGvVU8geuRZjSh3bwZz2cqav9NfVUuOwt7ljFQ70ca0rJulEFTJj/GGNOn3ab4b97Tt9UsJ6pH1/z5l3g3O+Dd2j4= Received: by 10.49.90.4 with SMTP id s4mr995578nfl.1168236502354; Sun, 07 Jan 2007 22:08:22 -0800 (PST) Received: by 10.48.223.20 with HTTP; Sun, 7 Jan 2007 22:08:22 -0800 (PST) Message-ID: <559c463d0701072208o598b060ex91f0303d36e9cac0@mail.gmail.com> Date: Mon, 8 Jan 2007 11:38:22 +0530 From: "Ruchith Fernando" To: axis-dev@ws.apache.org Subject: Re: [Rampart] Cumbersome library dependencies In-Reply-To: <45A1C1C4.8020705@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45A1C1C4.8020705@web.de> X-Virus-Checked: Checked by ClamAV on apache.org Hi Thilo, On 1/8/07, Thilo Frotscher wrote: > > Hi! > > If you want to make use of password callback classes, these always > depend on org.apache.ws.security.WSPasswordCallback, because the > Callback instances which are passed into the handle() method have > to be cast. WSPasswordCallback is contained in WSS4J, which depends > itself von XML Security. > > This means, that when you develop client applications, you have to > have WSS4J and XML Security in your classpath. The same is true for > the server side: you must copy both JAR files to axis2/WEB-INF/lib, > otherwise your servlet container reports a ClassNotFoundException > for WSPasswordCallback. > > What I don't understand about this is that the Rampart module actually > contains these jars. Why do I have to add them a second time to my > client project and/or Axis2 web application. Why can't Rampart use > the JARs in its own module archive? The issue here is that service tries to load the callback handler class packaged with the service archive using the service classloader. The callback handler uses the WSPasswordCallback class and this requires the wss4j to be visible in the service classloader. Since these jars are required to be in the main classpath anyway ... how about leaving them out of the rampart mar file and then shipping an ant script that will copy the required jars (we already have this file in the rampart-1.1 distro). Thanks, Ruchith > > Am I missing something? > > Thanks, > Thilo > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-dev-help@ws.apache.org > > -- www.ruchith.org www.wso2.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org