[ 
https://issues.apache.org/jira/browse/ARTEMIS-5340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram updated ARTEMIS-5340:
------------------------------------
    Description: 
Work was done via ARTEMIS-4710 to make the dependencies for the PEM security 
provider optional. However, that work was not complete.

The provider class still has to be loaded by the JVM the first time any 
reference to {{SSLSupport}} is made which is done when enabling SSL on any 
acceptor, e.g.:
{noformat}
Caused by: java.lang.NoClassDefFoundError: 
de/dentrassi/crypto/pem/PemKeyStoreProvider
        at 
org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor.<init>(NettyAcceptor.java:294){noformat}

  was:
Work was done via ARTEMIS-4710 to make the dependencies for the PEM security 
provider optional. However, that work was not complete.

> Additionally, by avoiding a global import on PemKeyStoreProvider, and only 
> referencing it upon use, those who wish would be able to exclude the 
> dependency when the functionality is not used.

The provider class still has to be loaded by the JVM the first time any 
reference to {{SSLSupport}} is made. Which is done when enabling ssl on any 
acceptor, e.g.:
{noformat}
Caused by: java.lang.NoClassDefFoundError: 
de/dentrassi/crypto/pem/PemKeyStoreProvider
        at 
org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor.<init>(NettyAcceptor.java:294){noformat}


> PEM provider not actually optional
> ----------------------------------
>
>                 Key: ARTEMIS-5340
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5340
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Work was done via ARTEMIS-4710 to make the dependencies for the PEM security 
> provider optional. However, that work was not complete.
> The provider class still has to be loaded by the JVM the first time any 
> reference to {{SSLSupport}} is made which is done when enabling SSL on any 
> acceptor, e.g.:
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: 
> de/dentrassi/crypto/pem/PemKeyStoreProvider
>       at 
> org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptor.<init>(NettyAcceptor.java:294){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to