Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8924B200D26 for ; Fri, 20 Oct 2017 17:08:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 87A21160BCB; Fri, 20 Oct 2017 15:08:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3E4561609E1 for ; Fri, 20 Oct 2017 17:08:20 +0200 (CEST) Received: (qmail 97705 invoked by uid 500); 20 Oct 2017 15:08:19 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 97693 invoked by uid 99); 20 Oct 2017 15:08:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2017 15:08:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1978C1A0B73 for ; Fri, 20 Oct 2017 15:08:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.284 X-Spam-Level: ** X-Spam-Status: No, score=2.284 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id agn2G4406nky for ; Fri, 20 Oct 2017 15:08:16 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7445D5F566 for ; Fri, 20 Oct 2017 15:08:16 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id 1DC471350AC8 for ; Fri, 20 Oct 2017 08:08:16 -0700 (MST) Date: Fri, 20 Oct 2017 08:08:16 -0700 (MST) From: "praman@tracelink.com" To: users@cxf.apache.org Message-ID: <1508512096119-0.post@n5.nabble.com> In-Reply-To: References: <1508424885885-0.post@n5.nabble.com> <1508432802514-0.post@n5.nabble.com> <1508490322434-0.post@n5.nabble.com> <1508509417663-0.post@n5.nabble.com> Subject: Re: Cannot load the resource for signing of a soap message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Fri, 20 Oct 2017 15:08:21 -0000 Yes I tried the full path and it won't work. The reason being the same, the AbstractBindingBuilder.getCrypto method tries to load it from the classpath. If it doesn't find it then it throws a PolicyException. I cannot upgrade to cxf latest versions unfortunately. It looks like I could use a BusFactory (not SpringBusFactory). The reason I say this is: when spring is used, this line of code gives one more resolver for the ResourceManager than my code without spring: ResourceManager rm = (ResourceManager)((Bus)this.message.getExchange().get(Bus.class)).getExtension(ResourceManager.class); With that one more spring resolver, the code is able to resolve the resource without any errors. Can I do something like this without the SpringBusFactory? How do I use a BusFactory? I dont use spring in my application because it is frowned upon so spring is out of the question. Any inputs is greatly appreciated. -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html