Hi all,

I have to solve a problem after upgrading our project from CQ5.4 to AEM 5.6.1. 
As the subject say it is related to the bouncy castle jce provider and in 
detail to mail encryption.

The setup was that we added the provider to the classpath of our application 
and the required policies to the java installation directory as described in 
the documentation and everything worked great.

In the setup of the upgraded version I tried to install the provider as a 
bundle itself but I got a ClassCastException when the static initializer tries 
to add some mailcap stuff to the MailCapCommandMap that due to the 
javax.activation bundle of Sling isn't a MailCapCommandMap but a CommandMap 
only that doesn't support the addMailcap() method.

Is there any chance we can implement OsgiMailcapCommandMap  by extending 
MailCapCommandMap? I think the problem will be that the bundle context is 
missing for the add method and I'm not sure how the ClassLoader of the defining 
bundle (in this case it is bcmail) should be obtained to load the handler class 
later on. Any ideas?

Is there any workaround known to solve this issue? Unfortunately it blocks the 
go live of our project :(

Mit freundlichen Grüßen,

Dirk Rudolph


T-Systems Multimedia Solutions GmbH
Organisationseinheit CCS
Dirk Rudolph
Software-Entwicklung, OCJP
Hausanschrift: Riesaer Straße 5, 01129 Dresden
Postanschrift: Postfach 10 02 24, 01072 Dresden
+49 351 2820-5363       (Tel)
E-Mail: [email protected]<mailto:[email protected]>
Internet: http://www.t-systems-mms.com<http://www.t-systems-mms.de/>

T-Systems Multimedia Solutions GmbH
Aufsichtsrat: Thilo Kusch (Vorsitzender)
Geschäftsführung: Peter Klingenburg, Susanne Heger, Dr. Rolf Werner
Handelsregister: Amtsgericht Dresden HRB 11433
Sitz der Gesellschaft: Dresden
Ust-IdNr.: DE 811 807 949


Reply via email to