I am having trouble using WSS4J with my IBM JDK 1.3.1.  Is this possible?  If so, how?

I have tried lots of things, and sent code/errors in email yesterday with no response.  In other technology forums, where I am much more knowledgable, I have helped lots of people.  Please someone here take the time to help me ;-)  Werner???  Dims???  Anybody???

I looked through the src and couldn't find any tests or examples.  I have searched Google and all I find is a post from Dims that he got it working without much detail.  I have WSS4j 1.1.0, so do I need newer?

Can somebody please point me to some helpful information regarding how to use WSS4J with a 1.3 JDK?  I have been trying with org.bouncycastle.jce.provider.BouncyCastleProvider specified in my crypto.properties.  This fails in the CryptoFactory.loadClass() cryptogenClass.getConstructor(classes) on line 116.

Basically, when I run Crypto crypto = CryptoFactory.getInstance("bc-crypto.properties"); with the properties file below (or null) I get errors.

org.apache.ws.security.crypto.provider=org.bouncycastle.jce.provider.BouncyCastleProvider
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=xxxxx
org.apache.ws.security.crypto.merlin.keystore.alias=mcmclient
org.apache.ws.security.crypto.merlin.alias.password=xxxxx
org.apache.ws.security.crypto.merlin.file=C:/Program Files/Lotus/notes/jvm/lib/security/test.keystore

- Using Crypto Engine [org.bouncycastle.jce.provider.BouncyCastleProvider]
- Unable to instantiate (1): org.bouncycastle.jce.provider.BouncyCastleProvider
java.lang.NoSuchMethodException: <init>
        at java.lang.Class.getConstructor0(Native Method)
        at java.lang.Class.getConstructor(Class.java:967)
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:118)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.createCall(CriminalInvestigationsServiceSoapStub.java:131)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.submitMajorCaseInvestigation(CriminalInvestigationsServiceSoapStub.java:151)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsAgentHelper.NotesMainHelper(CriminalInvestigationsAgentHelper.java:165)
        at CriminalInvestigationsAgent.NotesMain(CriminalInvestigationsAgent.java:74)
        at CriminalInvestigationsAgent.main(CriminalInvestigationsAgent.java:48)
- Unable to instantiate (2): org.bouncycastle.jce.provider.BouncyCastleProvider
java.lang.ClassCastException: org.bouncycastle.jce.provider.BouncyCastleProvider
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:127)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.createCall(CriminalInvestigationsServiceSoapStub.java:131)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.submitMajorCaseInvestigation(CriminalInvestigationsServiceSoapStub.java:151)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsAgentHelper.NotesMainHelper(CriminalInvestigationsAgentHelper.java:165)
        at CriminalInvestigationsAgent.NotesMain(CriminalInvestigationsAgent.java:74)
        at CriminalInvestigationsAgent.main(CriminalInvestigationsAgent.java:48)
java.lang.ClassCastException: org.bouncycastle.jce.provider.BouncyCastleProvider
        at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:127)
        at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:101)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.createCall(CriminalInvestigationsServiceSoapStub.java:131)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.submitMajorCaseInvestigation(CriminalInvestigationsServiceSoapStub.java:151)
        at ca.on.gov.jus.justiceconnect.CriminalInvestigationsAgentHelper.NotesMainHelper(CriminalInvestigationsAgentHelper.java:165)
        at CriminalInvestigationsAgent.NotesMain(CriminalInvestigationsAgent.java:74)
        at CriminalInvestigationsAgent.main(CriminalInvestigationsAgent.java:48)
- Failure trying to get the Call object; nested exception is:
        java.lang.RuntimeException: org.bouncycastle.jce.provider.BouncyCastleProvider cannot create instance

Reply via email to