________________________________
From: Colm O hEigeartaigh
Sent: 12 August 2009 11:07
To: 'Pradhan, Priyatosh (MLX Technology)'; wss4j-dev@ws.apache.org
Subject: RE: Help Error using WSS4j
Hi,
First off, you should have xml-sec 1.4.3 on the classpath, not 1.4.1
which contains a critical security flaw.
It sounds like the relevant c14n implementation is not being loaded in
xml-sec. Can you enable log4j debug logging and see if you see something
like the following:
3938 [main] DEBUG org.apache.xml.security.Init -
Transform.register(http://www.w3.org/2001/10/xml-exc-c14n#,
org.apache.xml.security.transforms.implementations.TransformC14NExclusiv
e)
These get loaded from a config file in xml-sec...maybe something in your
environment is preventing it from happening.
Another possibility is that the (static) code in WSS4J that initializes
XML-Security is not getting reached. Try putting this line in your code
before the calls to WSS4J and see if it works:
org.apache.ws.security.WSSConfig config =
org.apache.ws.security.WSSConfig.getNewInstance();
Colm.