Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 63408 invoked from network); 28 Apr 2006 16:11:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 16:11:06 -0000 Received: (qmail 3848 invoked by uid 500); 28 Apr 2006 16:10:58 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 3830 invoked by uid 500); 28 Apr 2006 16:10:57 -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 3816 invoked by uid 99); 28 Apr 2006 16:10:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 09:10:57 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.212.29.135] (HELO mtagate2.uk.ibm.com) (195.212.29.135) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 09:10:56 -0700 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k3SGAYnT037738 for ; Fri, 28 Apr 2006 16:10:34 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k3SGBLH6057396 for ; Fri, 28 Apr 2006 17:11:21 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11/8.13.3) with ESMTP id k3SGAYTv005906 for ; Fri, 28 Apr 2006 17:10:34 +0100 Received: from 237392G (sig-9-145-126-219.uk.ibm.com [9.145.126.219]) by d06av02.portsmouth.uk.ibm.com (8.12.11/8.12.11) with SMTP id k3SGAUM5005875 for ; Fri, 28 Apr 2006 17:10:32 +0100 Message-ID: <019101c66ade$4574bc00$db7e9109@237392G> From: "Rob Henley" To: Subject: [Axis2] WSS4J - Trying to engage a module which is not available : addressing Date: Fri, 28 Apr 2006 17:10:29 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_018E_01C66AE6.A66DE4C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_018E_01C66AE6.A66DE4C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am having problems getting a client to work with security (RC2 build). = My most promising attempt so far is with the following client code: ConfigurationContext ctx =3D = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null= , = "C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF\\conf\\axis2.xm= l"); PurchasingStub stub =3D new PurchasingStub(ctx, = "http://localhost:8081/axis2/services/Purchasing"); Other combinations of parameters to = createConfigurationContextFromFileSystem() have all resulted in either = 'Request does not contain required Security header' from the server = (implying to me that the client didn't use the specified axis2.xml) or a = NullPointerException. With the above code I get: org.apache.axis2.deployment.DeploymentException: Trying to engage a = module which is not available :addressing; nested exception is: org.apache.axis2.AxisFault: Trying to engage a module which is not = available : addressing at = org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(Deployment= Engine.java:132) addressing.mar etc are available in the modules directory and axis2 is = picking these up ok when I start tomcat. The problem is that the client = is not finding the module. This probably means that the client has (at = last :-) found my axis2.xml, so is a step forward. I've tried adding all = the 'mar' files explicitly to the client classpath but this doesn't seem = to help. Possibly I need an environment variable? Any idea gratefully received! Rob ------=_NextPart_000_018E_01C66AE6.A66DE4C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I am having problems getting a client to work with security (RC2 = build). My=20 most promising attempt so far is with the following client = code:

ConfigurationContext ctx =3D=20 ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
  =20 "C:\\Progra~1\\Apache\\Tomcat5.5\\webapps\\axis2\\WEB-INF\\conf\\axis2.xm= l");
PurchasingStub stub =3D new = PurchasingStub(ctx, =20 "http://localhost= :8081/axis2/services/Purchasing");
 
Other combinations of parameters to=20 createConfigurationContextFromFileSystem() have all resulted in=20 either 'Request does not contain required Security header' from the = server=20 (implying to me that the client didn't use the specified axis2.xml) = or=20 a NullPointerException.
 
With the above code I get:
 
org.apache.axis2.deployment.DeploymentException:=20 Trying to engage a module which is not available :addressing;
nested exception is:
 =20 org.apache.axis2.AxisFault: Trying to engage a module which is not = available :=20 addressing
  at=20 org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(Deployment= Engine.java:132)
 
addressing.mar etc are available in the = modules=20 directory and axis2 is picking these up ok when I start tomcat. The = problem is=20 that the client is not finding the module. This probably means that the = client=20 has (at last :-) found my axis2.xml, so is a step forward. I've tried = adding all=20 the 'mar' files explicitly to the client classpath but this doesn't seem = to=20 help.
 
Possibly I need an environment = variable? Any=20 idea gratefully received!
Rob
 
------=_NextPart_000_018E_01C66AE6.A66DE4C0--