No global scope object has been set! #111
-
Hi @phax , I want to know what environment variables will be set; is there a way we can initialize in web.xml instead like below:
`` Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi Ashok, So your initialization code looks good to me. hth, Philip |
Beta Was this translation helpful? Give feedback.
-
Hi @phax , We would appreciate your help on this. Caused by: org.apache.wss4j.common.ext.WSSecurityException: Expected AttachmentTransformParameterSpec
at org.apache.wss4j.dom.message.WSSecSignatureBase.addAttachmentReferences(WSSecSignatureBase.java:304) ~[ibis_tools.jar:8.0.19-SNAPSHOT]
at org.apache.wss4j.dom.message.WSSecSignatureBase.addReferencesToSign(WSSecSignatureBase.java:119) ~[ibis_tools.jar:8.0.19-SNAPSHOT]
... 13 more
Caused by: java.security.InvalidAlgorithmParameterException: Expected AttachmentTransformParameterSpec
at org.apache.wss4j.dom.transform.AttachmentContentSignatureTransform.init(AttachmentContentSignatureTransform.java:68) ~[ibis_tools.jar:8.0.19-SNAPSHOT]
at org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory.newTransform(DOMXMLSignatureFactory.java:321) ~[ibis_tools.jar:8.0.19-SNAPSHOT]
at org.apache.wss4j.dom.message.WSSecSignatureBase.addAttachmentReferences(WSSecSignatureBase.java:293) ~[ibis_tools.jar:8.0.19-SNAPSHOT]
at org.apache.wss4j.dom.message.WSSecSignatureBase.addReferencesToSign(WSSecSignatureBase.java:119) ~[ibis_tools.jar:8.0.19-SNAPSHOT] |
Beta Was this translation helpful? Give feedback.
Hi @phax ,
We have found a solution to resolve the issue. We have placed dependency jar's (Wss4j) in the Tomcat/shared/lib folder. So initialization happens when the context is initialized only once and there won't be any parallel class loading issue. We have managed to run both the webapp's in same tomcat instance.
Thanks for the input.