[
https://issues.apache.org/activemq/browse/SMX4-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46287#action_46287
]
Jamie Goodyear commented on SMX4-133:
-------------------------------------
I've worked out a solution based in part upon the approach take in
servicemix-cxf-bc component, however in this case an alternate java.security
property file will be forced upon test cases run by surefire.
The key to this solution is the use a double equals (==) when specifying the
new properties file. If you use a single equals (=) then it appends to the
default property file, thereby not picking up changes required for the IBM JDK.
Please note that the new java.security properties file will only be used on IBM
JDK, all other JVMs will use their own default values.
Will attach patch once fully tested on AIX and a non-IBM JDK system.
> WS Security Test failing on AIX
> -------------------------------
>
> Key: SMX4-133
> URL: https://issues.apache.org/activemq/browse/SMX4-133
> Project: ServiceMix 4
> Issue Type: Test
> Affects Versions: 4.0-m2
> Environment: AIX 5.3
> Java 1.5
> Reporter: Jamie Goodyear
> Assignee: Jamie Goodyear
>
> The test case "org.apache.servicemix.camel.nmr.ws.security.WSSecurityTest" is
> failing on AIX.
> In the first fail scenario the test case can not find the jaxb libraries, in
> the second scenario the IBM JDK security providers are not being found. Both
> issues are related to differences in IBM JDK and SUN SDK. Please note that
> even with jaxp-ri.jar added to classpath the providers list will have to be
> adjusted.
> A more permanent solution will need to be devised to allow the IBM Java
> security providers be re-configured via pom instead of configuring the JDK's
> security file manually before maven build invocation.
> Two part work around:
> 1) Add to camel/servicemix-camel/pom.xml the dependency for jaxp-ri.jar (see
> smx4-128 for more details).
> 2) In ${JAVA_HOME}/jre/lib/security/java.security update the following
> (important part here is moving the crypto provider to first position in list):
> {noformat}
> #
> # List of providers and their preference orders (see above):
> #
> #security.provider.1=com.ibm.jsse2.IBMJSSEProvider2
> #security.provider.2=com.ibm.crypto.provider.IBMJCE
> #security.provider.3=com.ibm.security.jgss.IBMJGSSProvider
> #security.provider.4=com.ibm.security.cert.IBMCertPath
> #security.provider.5=com.ibm.security.sasl.IBMSASL
> ## Work around for IBM JDK to be compatible with Sun SDK ##
> security.provider.1=com.ibm.crypto.provider.IBMJCE
> security.provider.2=com.ibm.jsse.IBMJSSEProvider
> security.provider.3=com.ibm.jsse2.IBMJSSEProvider2
> security.provider.4=com.ibm.security.jgss.IBMJGSSProvider
> security.provider.5=com.ibm.security.cert.IBMCertPath
> security.provider.6=com.ibm.security.sasl.IBMSASL
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.