[prev in list] [next in list] [prev in thread] [next in thread]
List: sandesha-dev
Subject: [jira] [Comment Edited] (RAMPART-449) NoClassDefFoundError with Axis2 1.8.0
From: "Bill Looby (Jira)" <jira () apache ! org>
Date: 2023-10-13 18:43:00
Message-ID: JIRA.13403140.1632484846000.148521.1697222580046 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/RAMPART-449?page=com.atlassian.jira.plugin \
.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775023#comment-17775023 ]
Bill Looby edited comment on RAMPART-449 at 10/13/23 6:42 PM:
--------------------------------------------------------------
Hi [~robertlazarski],
We're looking to upgrade Axis and need an upgraded rampart to be consistent, so in \
the best spirit of open source ...
_Two issues I believe I've figured out ..._
# The OMNode issue is as a result of some code that got changed in \
SAML2TokenIssuer.java:546. 'document' was removed as a parameter, causing xerces \
rather than axiom elements to be created (which therefore can't be cast to OMNode \
later). Just adding document back in fixes this. # When the newer version of \
{color:#0747a6}WSSecDKSign{color} was used (wss4j upgrade) it required a constructor \
parameter (AsymmetricBindingBuilder.java:697) and doc was passed in. It needed the \
other constructor (passing the security header using rmd.getSecHeader() ). Otherwise \
it gets a null pointer when it looks for it later.
I'll send a pull request with the above as soon as I've cleaned up my dev \
environment.
_Two more that I'm aware of (so far) both in the TestSuite .._
# Change to use the _docs.oasis-open.org_ rather than _schemas.xmlsoap.org_ \
namespace for {color:#0747a6}DerivedKeyToken{color} # A \
{color:#0747a6}NullPointerException{color} at AsymmetricBindingBuilder.java:177
If I get a chance I'll have a look at these.
was (Author: JIRAUSER302589):
Hi [~robertlazarski],
We're looking to upgrade Axis and need an upgraded rampart to be consistent, so in \
the best spirit of open source ...
_Two issues I believe I've figured out ..._
# The OMNode issue is as a result of some code that got changed in \
SAML2TokenIssuer.java:546. 'document' was removed as a parameter, causing xerces \
rather than axiom elements to be created. Just adding document back in fixes this. # \
When the newer version of {color:#0747a6}WSSecDKSign{color} was used (wss4j upgrade) \
it required a constructor parameter (AsymmetricBindingBuilder.java:697) and doc was \
passed in. It needed the other constructor (passing the security header using \
rmd.getSecHeader() ). Otherwise it gets a null pointer when it looks for it later.
I'll send a pull request with the above as soon as I've cleaned up my dev \
environment.
_Two more that I'm aware of (so far) both in the TestSuite .._
# Change to use the _docs.oasis-open.org_ rather than _schemas.xmlsoap.org_ \
namespace for {color:#0747a6}DerivedKeyToken{color} # A \
{color:#0747a6}NullPointerException{color} at AsymmetricBindingBuilder.java:177
If I get a chance I'll have a look at these.
> 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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic