You can just copy "sunjce_provider.jar" from /jre/lib/ext/ directory
of any sun jre to your server's/application lib directory. IBM has
it's own way of doing everything...


On Tue, 22 Feb 2005 14:28:39 +0100, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> Currently the sun JCE encryption provider is statically linked to the
> Cryp class in wicket.xxx.form.crypt. This should be *AT LEAST* dynamic.
> 
> This is the code I've put into my Crypt class, which enables the
> examples to run on websphere (but still logs an error):
> package wicket.markup.html.form.encryption;
> 
> public class Crypt implements ICrypt
> {
>     /* ... */
>     static
>     {
>         // Initialize and adda security provider required for encryption
>         try
>         {
>             Class provider =
> Class.forName("com.sun.crypto.provider.SunJCE");
>             Security.addProvider((Provider)provider.newInstance());
>         }
>         catch (ClassNotFoundException e)
>         {
>             log.error("Unable to load the Sun encryption provider:", e);
>         }
>         catch (InstantiationException e)
>         {
>             log.error("Unable to instantiate the Sun encryption
> provider:", e);
>         }
>         catch (IllegalAccessException e)
>         {
>             log.error("Unable to instantiate the Sun encryption
> provider:", e);
>         }
>     }
> 
> Martijn Dashorst wrote:
> 
> > This is also true for the examples (just tried it!)
> >
> > Martijn
> >
> > Martijn Dashorst wrote:
> >
> >> Hi,
> >>
> >> I get the following error when deploying a Wicket application in
> >> websphere:
> >>
> >> java.lang.NoClassDefFoundError: com/sun/crypto/provider/SunJCE
> >>    at java.lang.Class.forName1(Native Method)
> >>    at java.lang.Class.forName(Class.java(Compiled Code))
> >>    at wicket.ApplicationSettings.class$(ApplicationSettings.java:133)
> >>    at wicket.ApplicationSettings.<init>(ApplicationSettings.java:154)
> >>    at wicket.Application.<init>(Application.java:78)
> >>    at wicket.protocol.http.WebApplication.<init>(WebApplication.java:72)
> >>
> >> I think this has to do with the IBM jdk which Websphere requires. Any
> >> pointers?
> >>
> >> Martijn
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> SF email is sponsored by - The IT Product Guide
> >> Read honest & candid reviews on hundreds of IT Products from real users.
> >> Discover which products truly live up to the hype. Start reading now.
> >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> >> _______________________________________________
> >> Wicket-develop mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/wicket-develop
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Wicket-develop mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-develop
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to