[SWS-444] XwssMessageInterceptorEncryptTest testDecrypt() can be enabled again - problem solution known Created: 02/Nov/08  Updated: 04/May/12  Resolved: 04/Nov/08

Status: Closed
Project: Spring Web Services
Component/s: Security
Affects Version/s: 1.5.4
Fix Version/s: 1.5.5

Type: Improvement Priority: Minor
Reporter: Aleksander Adamowski Assignee: Tareq Abedrabbo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

JDK 1.6


Attachments: Text File SWS-444.patch    

 Description   

Citing from
http://static.springframework.org/spring-ws/sites/1.5/xref-test/org/springframework/ws/soap/security/xwss/XwssMessageInterceptorEncryptTest.html :

99 /*
100 This test fails under JDK 1.6, giving a IllegalArgumentException:
101 com.sun.xml.internal.messaging.saaj.soap.LocalStrings != com.sun.xml.messaging.saaj.soap.LocalStrings
102
103 No idea how to fix it
104 public void testDecrypt() throws Exception {
...

The problem is due to JDK 1.6 having an integrated SAAJ implementation that places implementation classes in a different namespace than the ones in the Metro stack saaj-impl JAR.

This is problem exhibits itself e.g. with saaj-impl-1.3.jar under JDK 1.6. However, the newer versions of saaj-impl JAR (starting with 1.3.1, and the newest at the writing of this report was 1.3.2) have proper entries in META-INF/services to override the factory classes provided by JDK 1.6.

For examples of problems that are related to this see:
http://forums.java.net/jive/thread.jspa?threadID=41696
http://os-lists.sun.com/thread.jspa?messageID=10107053



 Comments   
Comment by Arjen Poutsma [ 03/Nov/08 ]

Thanks for pointing this out!

Comment by Tareq Abedrabbo [ 04/Nov/08 ]

Patch. Thanks Aleksander!

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Mon Dec 11 23:06:27 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.