[ 
https://issues.apache.org/jira/browse/TOMEE-4049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17611773#comment-17611773
 ] 

Tim Clapp edited comment on TOMEE-4049 at 9/30/22 9:29 PM:
-----------------------------------------------------------

Hi Richard,

Thanks for the response.

No, it won't work - no matter which javamail version I use.

The only thing that did work was completely removing the geronimo library, but 
if I do, then TomEE won't start.

The geronimo jar has the javamail packages within it, so there's some kind of 
conflict/compatibility issue there.

I need a way of safely removing that geronimo jar and whatever it is in TomEE 
that has a dependency on it...

any ideas ?


was (Author: JIRAUSER295972):
No, it won't work - no matter which javamail version I use.

The only thing that did work was completely removing the geronimo library, but 
if I do, then TomEE won't start.

The geronimo jar has the javamail packages within it, so there's some kind of 
conflict/compatibility issue there.

I need a way of safely removing that geronimo jar and whatever it is in TomEE 
that has a dependency on it...

 

any ideas ?

> Cannot Upgrade BouncyCastle libs due to incompatibility with Geronimo javamail
> ------------------------------------------------------------------------------
>
>                 Key: TOMEE-4049
>                 URL: https://issues.apache.org/jira/browse/TOMEE-4049
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>            Reporter: Tim Clapp
>            Priority: Major
>         Attachments: Signature.java, pom.xml
>
>
> I'm using BouncyCastle + JavaMail to implement AS2 services.
>  
> I tried to upgrade the BouncyCastle libs to 1.6.* and 1.7.* and in both cases 
> when I create a multi-part body, the signing of the message fails to return a 
> digest.
>  
> I tracked down the problem to the geronimo lib which includes java.mail:
> geronimo-javamail_1.4_mail-1.9.0-alpha-2.jar (used in TomEE 7.1)
> geronimo-javamail_1.6_mail-1.0.1.jar (used in TomEE8)
>  
> If I remove the geronimo library, signing works as expected, but I cannot 
> remove geronimo from TomEE as it will fail to start, so I'm in a bit of a 
> pickle.
>  
> I'm currently running:
>  * TomEE 7.1 
>  * BC 1.54
>  * geronimo-javamail_1.4_mail-1.9.0-alpha-2.jar
>  
> I'm not sure how to get around this  incompatibility and looking for some 
> help.
>  
> I've attached a pom+driver to demonstrate the issue.



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

Reply via email to