Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 419109C1F for ; Fri, 24 Feb 2012 11:37:14 +0000 (UTC) Received: (qmail 59423 invoked by uid 500); 24 Feb 2012 11:37:12 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 59318 invoked by uid 500); 24 Feb 2012 11:37:12 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 59310 invoked by uid 99); 24 Feb 2012 11:37:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 11:37:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nadans@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-tul01m020-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 11:37:04 +0000 Received: by obbup16 with SMTP id up16so3415108obb.32 for ; Fri, 24 Feb 2012 03:36:43 -0800 (PST) Received-SPF: pass (google.com: domain of nadans@gmail.com designates 10.60.9.233 as permitted sender) client-ip=10.60.9.233; Authentication-Results: mr.google.com; spf=pass (google.com: domain of nadans@gmail.com designates 10.60.9.233 as permitted sender) smtp.mail=nadans@gmail.com; dkim=pass header.i=nadans@gmail.com Received: from mr.google.com ([10.60.9.233]) by 10.60.9.233 with SMTP id d9mr649781oeb.58.1330083403993 (num_hops = 1); Fri, 24 Feb 2012 03:36:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=iaeA1Uq6RM+RG3Sjggw9hrbDN8+VgqmGM7BHRqbn24w=; b=NyPun5p3jUaaskX8j9KyfQ3Ng3agn9CsKoiHIl/kt8Cq3dfwvoIR8hD475FaEUC6t6 lxYenDZa7TQwwhiVQoI+dZLM4NUHUf330ppx7sK67i+Wke+iKDp0FnGVVdOf2dMxOjfx v1/Bs49ilIiAYxkbWP+BVEQPLncCDXO9BG7hs= MIME-Version: 1.0 Received: by 10.60.9.233 with SMTP id d9mr574551oeb.58.1330083403943; Fri, 24 Feb 2012 03:36:43 -0800 (PST) Received: by 10.182.9.165 with HTTP; Fri, 24 Feb 2012 03:36:43 -0800 (PST) Date: Fri, 24 Feb 2012 17:06:43 +0530 Message-ID: Subject: Issue with rampart 1.6.1 From: Natanasabai C To: java-user@axis.apache.org Content-Type: multipart/alternative; boundary=e89a8f3b55d6d0507604b9b42cdc X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f3b55d6d0507604b9b42cdc Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to build a secured webservices using axis2 1.6.1 and rampart 1.6.1. I am getting the following exception at the time of executing the WSDL2Java commands. WSDL2Java.bat -uri http://localhost:8080/axis2/services/SecureService?wsdl-p tutorial.rampart.client Using AXIS2_HOME: V:\Ecomm\axis2-1.6.1 Using JAVA_HOME: V:\Ecomm\JDK_1_5_0_14 Retrieving document at ' http://localhost:8080/axis2/services/SecureService?wsdl'. log4j:WARN No appenders could be found for logger (org.apache.axis2.description. WSDL11ToAllAxisServicesBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Malformed uri: SigOnly at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:293) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: java.lang.RuntimeException: Malformed uri: SigOnly at org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyReference.java:155) at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:110) at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:238) at org.apache.axis2.description.PolicyInclude.getPolicy(PolicyInclude.java:255) at org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:240) at org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:277) at org.apache.axis2.description.PolicyInclude.calculateEffectivePolicy(PolicyInclude.java:224) at org.apache.axis2.description.PolicyInclude.getEffectivePolicy(PolicyInclude.java:277) at org.apache.axis2.wsdl.codegen.extension.PolicyEvaluator.engage(PolicyEvaluator.java:137) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:246) Howver if I perform the same WSDL2Java command with axis2 1.6.0 and rampart 1.6.0 I am not getting any exceptions. Please let me know if this is a known issue in rampart 1.6.1. When I searched over internet I found out the mail archive. http://mail-archives.apache.org/mod_mbox/axis-java-user/201202.mbox/browser Is this issue related to the one which I mentioned above? Please respond as early as possible. Thanks, Natanasabai. --e89a8f3b55d6d0507604b9b42cdc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,
=A0
I am trying to build a secured webservices using axis2 1.6.1 and rampart 1.6.1.
I am getting the following exception at the time=20 of executing the WSDL2Java commands.
=A0
WSDL2Java.bat -uri http://localhost:8080/axis2/services/SecureService?wsdl -p tutorial.rampart.client
Using AXIS2_HOME:=A0=A0 V:\Ecomm\axis2-1.6.1
Using JAVA_HOME:=A0=A0=A0= =20 V:\Ecomm\JDK_1_5_0_14
Retrieving document at 'http://loc= alhost:8080/axis2/services/SecureService?wsdl'.
log4j:WARN No appenders could be found for logger=20 (org.apache.axis2.description.
WSDL11ToAllAxisServicesBuild= er).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationExc= eption: java.lang.RuntimeException: Malformed uri: SigOnly
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.wsdl.codegen.CodeGenerationEngine= .generate(CodeGenerationEngine.java:293)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Cod= e.java:35)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Jav= a.java:24)
Caused by: java.lang.RuntimeException: Malformed uri: SigOnly
=A0=A0=A0= =A0=A0=A0=A0 at org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyRefer= ence.java:155)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.neethi.PolicyReference.normalize(P= olicyReference.java:110)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.util.PolicyUtil.getMergedPolicy(P= olicyUtil.java:238)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.description.PolicyInclude.ge= tPolicy(PolicyInclude.java:255)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.description.PolicyInclude.ca= lculateEffectivePolicy(PolicyInclude.java:240)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.description.PolicyInclude.getEffe= ctivePolicy(PolicyInclude.java:277)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.description.PolicyInclude.ca= lculateEffectivePolicy(PolicyInclude.java:224)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.description.PolicyInclude.ge= tEffectivePolicy(PolicyInclude.java:277)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.wsdl.codegen.extension.PolicyEval= uator.engage(PolicyEvaluator.java:137)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.axis2.wsdl.codegen.CodeGenerationE= ngine.generate(CodeGenerationEngine.java:246)
=A0
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
Howver if I perform the same WSDL2Java command with axis2 1.6.0 and=20 rampart 1.6.0 I am not getting any exceptions.
Please let me know if=20 this is a known issue in rampart 1.6.1.
=A0
When I searched over=20 internet I found out the mail archive.
http://mail-archives.apache.org/mod_mbox/axi= s-java-user/201202.mbox/browser
Is this issue related to the one which I mentioned above?
=A0
Please respond as early as possible.
=A0
Thanks,
Natanasaba= i.
--e89a8f3b55d6d0507604b9b42cdc--