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
