I am getting a JaxenException in the client stub on
"_operationClient.execute(true);"
I started getting this exception after i setup the client to use rampart.
ConfigurationContext context =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("repository");
ClearingHouseServiceStub service = new ClearingHouseServiceStub(context,
this.jTextFieldMain_EndPoint.getText());
service._getServiceClient().engageModule("rampart");
Properties properties = new Properties();
properties.setProperty("org.apache.ws.security.crypto.merlin.keystore.type",
"JKS");
properties.setProperty("org.apache.ws.security.crypto.merlin.file",
jTextFieldMain_KeyStore.getText());
properties.setProperty("org.apache.ws.security.crypto.merlin.keystore.password",
String.valueOf(jPasswordKeystoreMain_Password.getPassword()));
CryptoConfig signcryptoInfo = new CryptoConfig();
signcryptoInfo.setProvider(Merlin.class.getName());
signcryptoInfo.setProp(properties);
CryptoConfig encryptcryptoInfo = new CryptoConfig();
encryptcryptoInfo.setProvider(Merlin.class.getName());
encryptcryptoInfo.setProp(properties);
RampartConfig config = new RampartConfig();
config.setUser(jTextFieldMain_KeystoreAlias.getText());
config.setEncryptionUser("service");
config.setPwCbClass("org.mch.bankclient.security.PWCBHandler");
config.setSigCryptoConfig(signcryptoInfo);
config.setEncrCryptoConfig(encryptcryptoInfo);
Policy rampConfigPolicy = new Policy();
rampConfigPolicy.addAssertion(config);
service._getServiceClient().getAxisService().getPolicyInclude().addPolicyElement(PolicyInclude.SERVICE_POLICY,
rampConfigPolicy);
//service._getServiceClient().getServiceContext().getConfigurationContext().setProperty(RampartMessageData.KEY_RAMPART_POLICY,rampConfigPolicy);
the last entry in the axis log when using addPolicyElement is:
2008-03-30,12:42:43,687 DEBUG: org.apache.rampart.MessageBuilder.build
Building SymmetricBinding
2008-03-30,12:42:43,703 DEBUG:
org.apache.rampart.builder.SymmetricBindingBuilder.build
SymmetricBindingBuilder build invoked
2008-03-30,12:42:43,703 DEBUG:
org.apache.rampart.builder.BindingBuilder.addTimestamp Adding timestamp
When using getConfigurationContext.setProperty the last log entry is:
2008-03-30,12:28:24,656 DEBUG:
org.apache.rampart.builder.AsymmetricBindingBuilder.build
AsymmetricBindingBuilder build invoked
Is there something wrong with the way i am configuring rampart?
Michael
--
View this message in context:
http://www.nabble.com/Rampart-Secureconv-%3E-JaxenException-tp16380606p16380606.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]