[
https://issues.apache.org/jira/browse/RAMPART-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614710#comment-17614710
]
Jeff Thomas commented on RAMPART-449:
-------------------------------------
So, I think I have done all I can - have reached a point where I just am not
deep enough into the BouncyCastle stuff.
I went crazy and have done the following:
* Updated Apache parent-POM version
* Updated to JRE 1.8 (parallel to Axis2) / built with JDK 11 - and made many
Java 8 optimizations in code (Generics etc.)
* Updated to Log4j2 - changed all loggers and updated some log output to use
lambda performance-optimization
* Updated dependencies on Axis to 1.8.2 and Axiom 1.4.0
* Updated almost all JUnit tests to JUnit 5 (with exception of
rampart-integration which depends on axis2-testutils which still uses JUnit 4
Rules)
* Updated bouncycastle dependencies to bcprov-jdk18on
* Fixed some problems with samples and no longer supported "endorsed.dirs"
* Cleaned up lots of Javadoc warnings in build
* Some other cleanup (ie. source-files had mix of indents: tab/space[2|4|8]
and most are now space-2)
Open problems:
* rampart-integration tests not working - bouncycastle "corrupted stream"
which is probably causing other error "security header not found"
TODO:
* Review distribution - some xercesImpl JARs aren't added because they are not
dependencies - either add dependencies or remove from bin.xml
* Review README.txt (and rampart-samples/README.txt)
If anyone wants to pick this up from here you are welcome to fork from me - I
am not sure how to create a branch in the Rampart repository.
https://github.com/JWT007/rampart
I make no promises on the changes :) I normally don't contribute on
open-source projects and probably went overboard.
> 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: [email protected]
For additional commands, e-mail: [email protected]