Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-23 Thread Mark Thomas
On 21/01/2023 15:07, Christopher Schultz wrote: Mark, On 1/20/23 07:17, Mark Thomas wrote: On 20/01/2023 11:18, Dave Breeze wrote: Many thanks Mark for the answers - appreciated. Just to be clear I am running 9.0.71 simply by invoking startup.sh (currently testing). I am not running embedded.

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-21 Thread Christopher Schultz
Mark, On 1/20/23 07:17, Mark Thomas wrote: On 20/01/2023 11:18, Dave Breeze wrote: Many thanks Mark for the answers - appreciated. Just to be clear I am running 9.0.71 simply by invoking startup.sh (currently testing). I am not running embedded. I am not too sure therefore about the "Call org.

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Dave Breeze
thanks i have just done a quick and dirty test - I found a tomcat launcher code I did as an exercise - quickly modified it to set the handler to a concatenation. Tomcat launches correctly and uses the ibm safkeyring thanks again Dave Breeze Linkedin:https://uk.linkedin.com/in/dabreeze On Fri, 20

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Thomas Meyer
The reason was class loader issues Am 20. Januar 2023 13:37:11 MEZ schrieb Mark Thomas : >From memory, there is a reason the Tomcat handler has to be first. I forget >exactly why that is. I'd need to dig into this some more (and I have my hands >full working on the RFC 9128 implementation at the

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Mark Thomas
From memory, there is a reason the Tomcat handler has to be first. I forget exactly why that is. I'd need to dig into this some more (and I have my hands full working on the RFC 9128 implementation at the moment). In your case, it looks like a custom LifecycleListener would work. In terms of c

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Dave Breeze
Thanks again Mark I have no access to the source for the webapp. what I was think was that if in catalina.sh the line: JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources" was simply re-ordered to JAVA_OPTS="-Djava.protocol.handler.pkgs=org.apache.catalina.webreso

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Mark Thomas
On 20/01/2023 11:18, Dave Breeze wrote: Many thanks Mark for the answers - appreciated. Just to be clear I am running 9.0.71 simply by invoking startup.sh (currently testing). I am not running embedded. I am not too sure therefore about the "Call org.apache.catalina.webresources.TomcatURLStreamH

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Dave Breeze
Many thanks Mark for the answers - appreciated. Just to be clear I am running 9.0.71 simply by invoking startup.sh (currently testing). I am not running embedded. I am not too sure therefore about the "Call org.apache.catalina.webresources.TomcatURLStreamHandlerFactory#addUserFactory(URLStreamHand

Re: Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Mark Thomas
On 20/01/2023 09:53, Dave Breeze wrote: Tomcat 9.0.71 I need to use a custom protocol handler. I set JAVA_OPTS to: -Djava.protocol.handler.pkgs=com.ibm.crypto.provider My JAVA_OPTS setting,however, is ignored. This is due to catalina.sh containing JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handl

Setting java.protocol.handler.pkgs for Tomcat

2023-01-20 Thread Dave Breeze
Tomcat 9.0.71 I need to use a custom protocol handler. I set JAVA_OPTS to: -Djava.protocol.handler.pkgs=com.ibm.crypto.provider My JAVA_OPTS setting,however, is ignored. This is due to catalina.sh containing JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources"