ws-fx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DFr...@teamhuber.com
Subject Re: How to use with JDK 1.3
Date Sun, 05 Feb 2006 14:00:17 GMT
<P>I got the jce-jdk13-131.jar, but I still can't instatiate the&nbsp;WSS4J BouncyCastle
crypto provider.&nbsp; Same errors as before.</P>
<P>Do these tests work for&nbsp;you under 1.3 JDK?</P>
<P>- David</P>
<P>&nbsp;</P>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 V5DOTBL="true">

<TR vAlign=top>
<TD width="36%" bgColor=#e1e1e1 rowSpan=5><IMG height=1 alt="" src="/icons/ecblank.gif"
width=1 border=0><BR>
<DIV align=center>
<P><B><FONT style="FONT-SIZE: 9pt">Werner Dittmann &lt;Werner.Dittmann@t-online.de&gt;</FONT></B>

<P><FONT style="FONT-SIZE: 9pt">02/04/2006 09:31 AM CET</FONT></P></DIV></TD>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">To</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="64%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT style="FONT-SIZE: 9pt">DFrahm@teamhuber.com</FONT></TD></TR>
<TR vAlign=top>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">cc</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="64%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT style="FONT-SIZE: 9pt">wss4j-dev@ws.apache.org</FONT></TD></TR>
<TR vAlign=top>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">bcc</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="64%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR></TD></TR>
<TR vAlign=top>
<TD width="1%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=102
border=0><BR>
<DIV align=right><FONT style="FONT-SIZE: 9pt">Subject</FONT>&nbsp;&nbsp;</DIV></TD>
<TD width="64%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT style="FONT-SIZE: 9pt">Re: How to use with JDK 1.3</FONT></TD></TR>
<TR vAlign=top>
<TD width=0% bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0></TD>
<TD width="64%" bgColor=#e1e1e1><IMG height=1 alt="" src="/icons/ecblank.gif" width=1
border=0><BR><FONT size=-1></FONT></TD></TR></TABLE><BR><TT>The
appropriate BC jar file would be<BR></TT><BR><TT>jce-jdk13-130.jar
or jce-jdk13-131.jar<BR></TT><BR><TT>because Java 1.3 does not have
a JCE implementation and thus<BR></TT><TT>it must be provided by BouncyCastle.
Without this the<BR></TT><TT>WSS4J BouncyCastle crypto provider cannot be
instantiated.<BR></TT><BR><TT>Regards,<BR></TT><TT>Werner<BR></TT><BR><TT>DFrahm@teamhuber.com
wrote:<BR></TT><TT>&gt;<BR></TT><TT>&gt; I didn't
have org.apache.ws.security.components.crypto.BouncyCastle, so<BR></TT><TT>&gt;
I got the latest from<BR></TT><TT>&gt; <A href="http://svn.apache.org/repos/asf/webservices/wss4j/trunk/">http://svn.apache.org/repos/asf/webservices/wss4j/trunk/</A>.<BR></TT><TT>&gt;<BR></TT><TT>&gt;
I removed the wss4j.jar from my project and just added the whole trunk.<BR></TT><TT>&gt;
&nbsp;Then I changed the crypto.properties first line to:<BR></TT><TT>&gt;
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
As for the appropriate BC jar file, I am using the one in the WSS4J<BR></TT><TT>&gt;
trunk (lib/bcprov-jdk13-129.jar). &nbsp;Shouldn't that be the right one?<BR></TT><TT>&gt;<BR></TT><TT>&gt;
None of the tests that have to do with wss4j.keystore/crypto.properties<BR></TT><TT>&gt;
are passing under JDK 1.3, 1.4.2, or 1.5. &nbsp;The all give the same<BR></TT><TT>&gt;
java.lang.NoSuchMethodException errors like this:<BR></TT><TT>&gt;<BR></TT><TT>&gt;
- The provider BC had to be added to the java.security.Security<BR></TT><TT>&gt;
- Trying to find [crypto.properties] using<BR></TT><TT>&gt; sun.misc.Launcher$AppClassLoader@133056f
class loader.<BR></TT><TT>&gt; - Using Crypto Engine<BR></TT><TT>&gt;
[org.apache.ws.security.components.crypto.BouncyCastle]<BR></TT><TT>&gt;
_java.lang.NoSuchMethodException_:<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle.&lt;init&gt;(java.util.Properties,<BR></TT><TT>&gt;
java.lang.ClassLoader)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp;
&nbsp; at java.lang.Class.getConstructor0(_Class.java:2647_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.getConstructor(_Class.java:1629_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:141_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:119_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)-<BR></TT><TT>&gt;
Unable to instantiate (1):<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;
_java.lang.NoSuchMethodException_:<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle.&lt;init&gt;(java.util.Properties,<BR></TT><TT>&gt;
java.lang.ClassLoader)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp;
&nbsp; at java.lang.Class.getConstructor0(_Class.java:2647_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.getConstructor(_Class.java:1629_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:141_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:119_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:54_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; wssec.CopyOfTestWSSecurity.&lt;clinit&gt;(_CopyOfTestWSSecurity.java:54_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
Method_)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
at<BR></TT><TT>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.java:39_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccessorImpl.java:25_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(_Method.java:585_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(_RemoteTestRunner.java:403_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteTestRunner.java:445_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRunner.java:344_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestRunner.java:196_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:54_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; wssec.CopyOfTestWSSecurity.&lt;clinit&gt;(_CopyOfTestWSSecurity.java:54_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
Method_)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
at<BR></TT><TT>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.java:39_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccessorImpl.java:25_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(_Method.java:585_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(_RemoteTestRunner.java:403_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteTestRunner.java:445_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRunner.java:344_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestRunner.java:196_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
_java.lang.InstantiationException_:<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.newInstance0(_Class.java:335_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.newInstance(_Class.java:303_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:150_)-<BR></TT><TT>&gt;
Unable to instantiate (2):<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;
_java.lang.InstantiationException_:<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.newInstance0(_Class.java:335_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.newInstance(_Class.java:303_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:150_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:119_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:54_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; wssec.CopyOfTestWSSecurity.&lt;clinit&gt;(_CopyOfTestWSSecurity.java:54_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
Method_)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
at<BR></TT><TT>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.java:39_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccessorImpl.java:25_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(_Method.java:585_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(_RemoteTestRunner.java:403_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteTestRunner.java:445_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRunner.java:344_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestRunner.java:196_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:119_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:54_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; wssec.CopyOfTestWSSecurity.&lt;clinit&gt;(_CopyOfTestWSSecurity.java:54_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
Method_)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
at<BR></TT><TT>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.java:39_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccessorImpl.java:25_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(_Method.java:585_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(_RemoteTestRunner.java:403_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteTestRunner.java:445_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRunner.java:344_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestRunner.java:196_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
Exception in thread "main" java.lang.ExceptionInInitializerError<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
Method_)<BR></TT><TT>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
at<BR></TT><TT>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.java:39_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccessorImpl.java:25_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(_Method.java:585_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(_RemoteTestRunner.java:403_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteTestRunner.java:445_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRunner.java:344_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestRunner.java:196_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
Caused by: _java.lang.RuntimeException_:<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle
cannot create<BR></TT><TT>&gt; instance<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:155_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:119_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:54_)<BR></TT><TT>&gt;<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt; wssec.CopyOfTestWSSecurity.&lt;clinit&gt;(_CopyOfTestWSSecurity.java:54_)<BR></TT><TT>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; ... 8 more<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
*Werner Dittmann &lt;Werner.Dittmann@t-online.de&gt;*<BR></TT><TT>&gt;<BR></TT><TT>&gt;
02/03/2006 02:17 PM<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
To<BR></TT><TT>&gt; DFrahm@teamhuber.com<BR></TT><TT>&gt;
cc<BR></TT><TT>&gt; wss4j-dev@ws.apache.org<BR></TT><TT>&gt;
Subject<BR></TT><TT>&gt; Re: How to use with JDK 1.3<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
The definition of the WSS4J crypto provider is wrong. This is _not_ the<BR></TT><TT>&gt;
JCE crypto provider but the WSS4J crypto provider that handles<BR></TT><TT>&gt;
all keystore and certificate stuff for WSS4J.<BR></TT><TT>&gt;<BR></TT><TT>&gt;
You shall use<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.Merlin<BR></TT><TT>&gt;
or<BR></TT><TT>&gt; org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;
instead of the class you defined in the properties file.<BR></TT><TT>&gt;<BR></TT><TT>&gt;
Both classes are implementations of the WSS4J crypto API but<BR></TT><TT>&gt;
using and supporting different JDK versions.<BR></TT><TT>&gt;<BR></TT><TT>&gt;
AFAIK the Merlin provider works for JDK 1.4 and up and<BR></TT><TT>&gt;
the above named BouncyCastle provider works with JDK 1.3.<BR></TT><TT>&gt;
However you may try both to see which implementation of the<BR></TT><TT>&gt;
WSS4J crypto API works best for you.<BR></TT><TT>&gt;<BR></TT><TT>&gt;
Also make sure that you have the appropriate BC jar file<BR></TT><TT>&gt;
in your classpath that contains the full BC JCE implementation<BR></TT><TT>&gt;
if you use the org.apache.ws.security.components.crypto.BouncyCastle<BR></TT><TT>&gt;
class.<BR></TT><TT>&gt;<BR></TT><TT>&gt; Regards,<BR></TT><TT>&gt;
Werner<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><TT>&gt;
DFrahm@teamhuber.com wrote:<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
I am having trouble using WSS4J with my IBM JDK 1.3.1. &nbsp;Is this<BR></TT><TT>&gt;&gt;
possible? &nbsp;If so, how?<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
I have tried lots of things, and sent code/errors in email yesterday<BR></TT><TT>&gt;&gt;
with no response. &nbsp;In other technology forums, where I am much more<BR></TT><TT>&gt;&gt;
knowledgable, I have helped lots of people. &nbsp;Please someone here take<BR></TT><TT>&gt;&gt;
the time to help me ;-) &nbsp;Werner??? &nbsp;Dims??? &nbsp;Anybody???<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
I looked through the src and couldn't find any tests or examples. &nbsp;I<BR></TT><TT>&gt;&gt;
have searched Google and all I find is a post from Dims that he got it<BR></TT><TT>&gt;&gt;
working without much detail. &nbsp;I have WSS4j 1.1.0, so do I need newer?<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
Can somebody please point me to some helpful information regarding how<BR></TT><TT>&gt;&gt;
to use WSS4J with a 1.3 JDK? &nbsp;I have been trying with<BR></TT><TT>&gt;&gt;
org.bouncycastle.jce.provider.BouncyCastleProvider specified in my<BR></TT><TT>&gt;&gt;
crypto.properties. &nbsp;This fails in the CryptoFactory.loadClass()<BR></TT><TT>&gt;&gt;
cryptogenClass.getConstructor(classes) on line 116.<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
Basically, when I run Crypto crypto =<BR></TT><TT>&gt;&gt; CryptoFactory.getInstance("bc-crypto.properties");
with the properties<BR></TT><TT>&gt;&gt; file below (or null) I
get errors.<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.crypto.provider=org.bouncycastle.jce.provider.BouncyCastleProvider<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
org.apache.ws.security.crypto.merlin.keystore.type=jks<BR></TT><TT>&gt;&gt;
org.apache.ws.security.crypto.merlin.keystore.password=xxxxx<BR></TT><TT>&gt;&gt;
org.apache.ws.security.crypto.merlin.keystore.alias=mcmclient<BR></TT><TT>&gt;&gt;
org.apache.ws.security.crypto.merlin.alias.password=xxxxx<BR></TT><TT>&gt;&gt;
org.apache.ws.security.crypto.merlin.file=C:/Program<BR></TT><TT>&gt;&gt;
Files/Lotus/notes/jvm/lib/security/test.keystore<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
- Using Crypto Engine [org.bouncycastle.jce.provider.BouncyCastleProvider]<BR></TT><TT>&gt;&gt;
- Unable to instantiate (1):<BR></TT><TT>&gt;&gt; org.bouncycastle.jce.provider.BouncyCastleProvider<BR></TT><TT>&gt;&gt;
_java.lang.NoSuchMethodException_: &lt;init&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.getConstructor0(_Native Method_)<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.getConstructor(_Class.java:967_)<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:118_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.createCall(_CriminalInvestigationsServiceSoapStub.java:131_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.submitMajorCaseInvestigation(_CriminalInvestigationsServiceSoapStub.java:151_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsAgentHelper.NotesMainHelper(_CriminalInvestigationsAgentHelper.java:165_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
CriminalInvestigationsAgent.NotesMain(_CriminalInvestigationsAgent.java:74_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;
CriminalInvestigationsAgent.main(_CriminalInvestigationsAgent.java:48_)<BR></TT><TT>&gt;&gt;
- Unable to instantiate (2):<BR></TT><TT>&gt;&gt; org.bouncycastle.jce.provider.BouncyCastleProvider<BR></TT><TT>&gt;&gt;
_java.lang.ClassCastException_:<BR></TT><TT>&gt;&gt; org.bouncycastle.jce.provider.BouncyCastleProvider<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:127_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.createCall(_CriminalInvestigationsServiceSoapStub.java:131_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.submitMajorCaseInvestigation(_CriminalInvestigationsServiceSoapStub.java:151_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsAgentHelper.NotesMainHelper(_CriminalInvestigationsAgentHelper.java:165_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
CriminalInvestigationsAgent.NotesMain(_CriminalInvestigationsAgent.java:74_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;
CriminalInvestigationsAgent.main(_CriminalInvestigationsAgent.java:48_)<BR></TT><TT>&gt;&gt;
_java.lang.ClassCastException_:<BR></TT><TT>&gt;&gt; org.bouncycastle.jce.provider.BouncyCastleProvider<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(_CryptoFactory.java:127_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(_CryptoFactory.java:101_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.createCall(_CriminalInvestigationsServiceSoapStub.java:131_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsServiceSoapStub.submitMajorCaseInvestigation(_CriminalInvestigationsServiceSoapStub.java:151_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
ca.on.gov.jus.justiceconnect.CriminalInvestigationsAgentHelper.NotesMainHelper(_CriminalInvestigationsAgentHelper.java:165_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;
CriminalInvestigationsAgent.NotesMain(_CriminalInvestigationsAgent.java:74_)<BR></TT><TT>&gt;&gt;<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR></TT><TT>&gt;&gt;
CriminalInvestigationsAgent.main(_CriminalInvestigationsAgent.java:48_)<BR></TT><TT>&gt;&gt;
- Failure trying to get the Call object; nested exception is:<BR></TT><TT>&gt;&gt;
&nbsp; &nbsp; &nbsp; &nbsp; _java.lang.RuntimeException_:<BR></TT><TT>&gt;&gt;
org.bouncycastle.jce.provider.BouncyCastleProvider cannot create instance<BR></TT><TT>&gt;<BR></TT><TT>&gt;<BR></TT><BR>
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Mime
View raw message