Which OS are you working on? Which Java version? Which country are you from? Due to legal restriction and other reasons as well, SUN does not deliver the encrypt/decrypt implementation classes in all countries. And depending on the OS and the country it might be that the class is not deployed as well. Luckily it is not a problem with Wicket. Please see wicket-examples for how to provide your own ICrypt implementation with your "own" encryp/decrypt implementation.
Juergen On 8/19/06, Tim Fletcher <[EMAIL PROTECTED]> wrote: > Hi, > i searched the list for this problem, but could only find information > about cvs commits. > > I'm trying to use the PasswordTextField, but when i submit the form, I > get the following exception: java.security.NoSuchAlgorithmException: > Algorithm PBEWithMD5AndDES not available > > Thanks in advance, > Tim > > here is the trace > > 19-Aug-2006 13:58:30 wicket.util.crypt.ClassCryptFactory newCrypt > INFO: using encryption/decryption object [EMAIL PROTECTED] > 19-Aug-2006 13:58:30 wicket.util.crypt.AbstractCrypt encrypt > SEVERE: Unable to encrypt text '****' > java.security.NoSuchAlgorithmException: Algorithm PBEWithMD5AndDES not > available > at javax.crypto.SunJCE_b.a(DashoA12275) > at javax.crypto.SecretKeyFactory.getInstance(DashoA12275) > at > wicket.util.crypt.SunJceCrypt.generateSecretKey(SunJceCrypt.java:119) > at wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:95) > at > wicket.util.crypt.AbstractCrypt.encryptStringToByteArray(AbstractCrypt.java:204) > at wicket.util.crypt.AbstractCrypt.encrypt(AbstractCrypt.java:107) > at > wicket.markup.html.form.PasswordTextField.getModelValue(PasswordTextField.java:97) > at > wicket.markup.html.form.FormComponent.getValue(FormComponent.java:387) > at > wicket.markup.html.form.TextField.onComponentTag(TextField.java:102) > at > wicket.markup.html.form.PasswordTextField.onComponentTag(PasswordTextField.java:157) > at wicket.Component.renderComponent(Component.java:1651) > at wicket.MarkupContainer.onRender(MarkupContainer.java:925) > at wicket.Component.render(Component.java:1518) > at wicket.MarkupContainer.renderNext(MarkupContainer.java:1332) > at > wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:980) > at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:915) > at wicket.markup.html.form.Form.onComponentTagBody(Form.java:773) > at wicket.Component.renderComponent(Component.java:1682) > at wicket.MarkupContainer.onRender(MarkupContainer.java:925) > at wicket.markup.html.form.Form.onRender(Form.java:844) > at wicket.Component.render(Component.java:1518) > at wicket.MarkupContainer.renderNext(MarkupContainer.java:1332) > at > wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:980) > at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:915) > at wicket.Component.renderComponent(Component.java:1682) > at wicket.MarkupContainer.onRender(MarkupContainer.java:925) > at wicket.Component.render(Component.java:1518) > at wicket.MarkupContainer.renderNext(MarkupContainer.java:1332) > at wicket.MarkupContainer.renderAll(MarkupContainer.java:942) > at wicket.Page.onRender(Page.java:867) > at wicket.Component.render(Component.java:1518) > at wicket.Page.renderPage(Page.java:411) > at > wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226) > at > wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) > at > wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) > at > wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879) > at wicket.RequestCycle.step(RequestCycle.java:960) > at wicket.RequestCycle.steps(RequestCycle.java:1034) > at wicket.RequestCycle.request(RequestCycle.java:453) > at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user