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

Bill Looby edited comment on RAMPART-449 at 9/3/24 8:41 PM:
------------------------------------------------------------

The first issue is that the following line was removed from 
AsymmetricBindingBuilder (line 501 originally) as the document was passed in 
the constructor and the call is no longer available in wss4j.
{code:java}
dkEncr.setExternalKey(this.encryptedKeyValue, this.encryptedKeyId); {code}
This meant that the tokenid was never being set up, so I added the following
{code:java}
dkEncr.setTokenIdentifier(this.encryptedKeyId);{code}
This fixes test 7, unfortunately it is still giving an error on test 9...
{code:java}
java.io.IOException: exception unwrapping private key - 
java.security.InvalidKeyException: pad block corrupted
at 
org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.unwrapKey(Unknown
 Source)
{code}
Update : there are 4 tests still failing : 9,28, 34, 35 and the fixes look like 
they need significant knowledge of the intentions of the test to resolve - very 
much non-trivial.

It would be easier if I could compare with 1.6.1 (as has helped resolve other 
issues) - but it also suffers from out of date certificates, and an attempt to 
apply the updated certificates just led to other problems.

 


was (Author: JIRAUSER302589):
The first issue is that the following line was removed from 
AsymmetricBindingBuilder (line 501 originally) as the document was passed in 
the constructor and the call is no longer available in wss4j.
{code:java}
dkEncr.setExternalKey(this.encryptedKeyValue, this.encryptedKeyId); {code}
This meant that the tokenid was never being set up, so I added the following
{code:java}
dkEncr.setTokenIdentifier(this.encryptedKeyId);{code}
This fixes test 7, unfortunately it is still giving an error on test 9...
{code:java}
java.io.IOException: exception unwrapping private key - 
java.security.InvalidKeyException: pad block corrupted
at 
org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.unwrapKey(Unknown
 Source)
{code}
 

 

> NoClassDefFoundError with Axis2 1.8.0
> -------------------------------------
>
>                 Key: RAMPART-449
>                 URL: https://issues.apache.org/jira/browse/RAMPART-449
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.7.1
>            Reporter: Matthias Kraaz
>            Priority: Major
>
> Axis2 1.8.0 updated Axiom to 1.3 thereby breaking rampart, which uses an 
> Axiom API that has been removed:
>  
> {noformat}
> java.lang.NoClassDefFoundError: 
> org/apache/axiom/soap/impl/builder/StAXSOAPModelBuilder
> at 
> org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:159)
>  
> at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:280) 
> at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61) 
> at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65) 
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:335) 
> at org.apache.axis2.engine.Phase.invoke(Phase.java:308) 
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250) 
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:415) 
> at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
>  
> at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>  
> at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150) 
> at pls.soap.client.SOAPClient.sendRequest(SOAPClient.java:284) 
> at pls.soap.client.SOAPClient.handleRequest(SOAPClient.java:143) 
> at pls.soap.client.SOAPClient.processSendJob(SOAPClient.java:101) 
> at 
> pls.soap.client.SendJobProcessorImpl.processSendJob(SendJobProcessorImpl.java:10)
>  
> at ls.osis.server.prot.SendJobQueue.process(SendJobQueue.java:139) 
> at ls.osis.server.prot.SendJobQueue$SendJobTask.run(SendJobQueue.java:108) 
> at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>  
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
> at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>  
> at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>  
> at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder 
> at 
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
> at 
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>  
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 
> 22 more
> {noformat}
>  
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to