Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 75018 invoked from network); 20 Mar 2006 12:53:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Mar 2006 12:53:45 -0000 Received: (qmail 67488 invoked by uid 500); 20 Mar 2006 12:53:37 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 67466 invoked by uid 500); 20 Mar 2006 12:53:37 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 67455 invoked by uid 99); 20 Mar 2006 12:53:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 04:53:37 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ruchith.fernando@gmail.com designates 64.233.184.194 as permitted sender) Received: from [64.233.184.194] (HELO wproxy.gmail.com) (64.233.184.194) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Mar 2006 04:53:36 -0800 Received: by wproxy.gmail.com with SMTP id 68so1599808wri for ; Mon, 20 Mar 2006 04:53:15 -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=f4VsZ3fWoWwzSKXApxA/9POJS4wz6xOVLjGvqYZ+cfgJMH9GsEBcKEj5aWz9VSpzb/UKoqVuQWHIGUg9SA1B2LV4g0PV/AFzzYmdiKlwyEkz1aF1WnRSqhzrx2J4jessFZVDCRDLZx7oKObuF6wVSlcqESa4jI+KkoXusw587vA= Received: by 10.35.18.4 with SMTP id v4mr1358078pyi; Mon, 20 Mar 2006 04:53:15 -0800 (PST) Received: by 10.35.72.9 with HTTP; Mon, 20 Mar 2006 04:53:15 -0800 (PST) Message-ID: <559c463d0603200453x2b8e78a6s36b638612a66fdf7@mail.gmail.com> Date: Mon, 20 Mar 2006 18:53:15 +0600 From: "Ruchith Fernando" To: axis-user@ws.apache.org Subject: Re: [Axis2] wss4j In-Reply-To: <02f201c64c19$5831f440$2b2a9109@237392G> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060316072113.88016.qmail@web32912.mail.mud.yahoo.com> <559c463d0603160300x47a2a20foaba8695731102b0e@mail.gmail.com> <02f201c64c19$5831f440$2b2a9109@237392G> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Rob, > > java.lang.ClassNotFoundException: > org.apache.ws.security.transform.STRTransform > > I can see that this class is in wss4j-SNAPSHOT.jar, which in turn is in m= y > security.mar in the modules directory. Extracting the jar into the lib > directory seems to solve the problem, but presumably that isn't the right > thing to do? No, you should not have to do that. In your scenario only the security module should contain the wss4j-SNAPSHOT.jar in its 'lib' directory and you should not be required to add it to your classpath separately. This sounds like a module classloading problem.... Deepal what do you think? Also can you send the complete stack trace of > java.lang.ClassNotFoundException: > org.apache.ws.security.transform.STRTransform > > The client code to set the configurationContext seemed to be for a versio= n > other than 0.94. My attempt looks like this: > > ConfigurationContextFactory ccf =3D new ConfigurationContextFactory(); > ConfigurationContext ctx =3D > ccf.createConfigurationContextFromFileSystem("C:/axis2"); > _serviceClient =3D new org.apache.axis2.client.ServiceClient(ctx, _serv= ice); > > (Just to get things working, I dropped this straight into the PurchasingS= tub > constructor generated by wsdl2java. C:/axis2 is where I unzipped axis. It > contains axis2.xml and subdirectories lib, modules etc.) > > The client classpath includes all the jars in the lib directory, but I > haven't set anything else specifically in the environment when the client > runs. To create a configuration context you have to give the path to an axis2 _repository_ to the createConfigurationContextFromFileSystem() method. NOT the place where you extracted Axis2. There has been a considerable amount of changes from 0.94 and I'd strongly recommend you to try the latest SVN head or checkout ht e0.95 release which will be out in a few days. Thanks, Ruchith