Re: fediz production

2017-10-20 Thread Matthew Broadhead
ok i now have a different error and it doesn't load the login screen 2017-10-20 19:25:39,175 [https-openssl-apr-9443-exec-2] WARN org.apache.cxf.fediz.service.idp.beans.EndpointAddressValidator  - No service config found for urn:org:apache:cxf:fediz:fedizhelloworld 2017-10-20 19:26:18,084

ASM - MethodVisitor - visitLabel(label)

2017-10-20 Thread Richard Stollar
Hello,     I'm having difficulties and hope someone can help - I initially thought it was classloader problems but now I am not so sure. I see java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)in the stack-trace but looked at the asm jar file

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread Colm O hEigeartaigh
I mean instead of specifying a String for the configuration property, instead set a Properties object. For example, here's a Spring example:

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread pra...@tracelink.com
Not sure exactly which class you want me to pass the crypto properties object to? -- Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Re: fediz production

2017-10-20 Thread Matthew Broadhead
Hi Colm, Yes I have: class="org.apache.cxf.fediz.service.idp.service.jpa.IdpEntity"> ...                             ... class="org.apache.cxf.fediz.service.idp.service.jpa.ApplicationEntity">     value="urn:org:apache:cxf:fediz:fedizhelloworld"

Re: fediz production

2017-10-20 Thread Colm O hEigeartaigh
Do you have an org.apache.cxf.fediz.service.idp.service.jpa.ApplicationEntity instance in your webapps/fediz-idp/WEB-INF/classes/entities-realma.xml with realm "urn:org:apache:cxf:fediz:fedizhelloworld"? Colm. On Fri, Oct 20, 2017 at 4:09 PM, Matthew Broadhead < matthew.broadh...@nbmlaw.co.uk>

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread Colm O hEigeartaigh
You could try creating a Properties Object with the contents of your crypto properties file and passing that through instead of a URL? Colm. On Fri, Oct 20, 2017 at 4:08 PM, pra...@tracelink.com wrote: > Yes I tried the full path and it won't work. The reason being the

fediz production

2017-10-20 Thread Matthew Broadhead
Hi, i have Fediz working now on (e.g.) domain.tld:9443/idp and i am trying to use it from localhost:9443/fedizhelloworld/secure/fedservlet.  it correctly redirects to the login page and seems to authenticate ok but then i get the following error 2017-10-20 15:56:17,424

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread pra...@tracelink.com
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

Re: CXF Client - HTTP Connection pooling

2017-10-20 Thread Daniel Kulp
By default, CXF will use the HttpURLConnection that is built into the JDK. That class does do some connection pooling by default, but very little of it is configurable. Do a google search to see what IS configurable. Dan > On Oct 19, 2017, at 12:34 PM, ravishankar.gopalakrishnan >

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread Colm O hEigeartaigh
I tested it with a more recent version of CXF and it works fine. Did you try specifying an absolute path using something like: " file:/data/config.xml"? Colm. On Fri, Oct 20, 2017 at 3:23 PM, pra...@tracelink.com wrote: > Colm, > > I used your suggestion and solved my

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread pra...@tracelink.com
Colm, I used your suggestion and solved my problem. But I m running into a similar problem elsewhere where the resource file is not found by the AbstractBindingBuilder class. Here is the exception: WARN [2017-10-20 12:56:45,022] org.apache.cxf.phase.PhaseInterceptorChain: Interceptor for

Re: fediz in production

2017-10-20 Thread Matthew Broadhead
the problem was that my certificate password contained an exclamation mark.  i changed the password to mixed case letters and numbers and then it worked On 19/10/2017 17:02, Matthew Broadhead wrote: i am using 1.4.2. my stsKeystore.properties is as follows, but i have had to modify values

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread Colm O hEigeartaigh
https://github.com/apache/wss4j/commit/cb50d1940f53027fb76da03201ee5dc8cb5c81c2 Colm. On Fri, Oct 20, 2017 at 10:05 AM, pra...@tracelink.com wrote: > Colm, > > For the workaround- can you show me the diff of your fix? Are you basically > loading the resource in a

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread pra...@tracelink.com
Colm, For the workaround- can you show me the diff of your fix? Are you basically loading the resource in a different way rather than the classloader way? If you show me what the diff is for the fix you put in then I will use that as the base. Again thanks for fixing and for the quick

Re: Cannot load the resource for signing of a soap message

2017-10-20 Thread Colm O hEigeartaigh
In terms of a workaround, yes you should be able to subclass the WSS4J interceptors and override AbstractWSS4JInterceptor.loadCryptoFromPropertiesFile with the fix that I committed to WSS4J. Colm. On Fri, Oct 20, 2017 at 9:21 AM, Colm O hEigeartaigh wrote: > The fix will