This doesn't look related to a Wicket version change. OpenID4Java requires HttpClient. Do you have HttpComponents' HttpClient JAR on your classpath?
On Mon, Feb 6, 2012 at 12:54 PM, singh13 <gso...@gmail.com> wrote: > Hi there I am creating a web app that acts as an openID relying party. I am > using the OpenID4Java library. > > On my page I have a textfield in which the user enters their openid. > OpenID4Java gets the redirect url from this field. > > In my OnSubmit method for my submit button I have the following using > wicket > 1.3: > > > getRequestCycle().setRedirect(false); > getResponse().redirect(authRequest.getDestinationUrl(true)); > > > > // authRequest.getDestinationUrl(true) returns the url for the opened > provider. > > In wicket 1.5 i am using the following in my OnSubmit method: > > throw new RedirectToUrlException(authRequest.getDestinationUrl(true)); > > > The problem is when i use this i get a whole load of exceptions and errors > displayed below > > Root cause: > > java.lang.ClassNotFoundException: > org.apache.http.client.ClientProtocolException > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > at > org.openid4java.consumer.ConsumerManager.<init>(ConsumerManager.java:167) > at > > com.university.RelyingPartyService.getConsumerManager(RelyingPartyService.java:114) > at > > com.university.RelyingPartyService.performDiscovery(RelyingPartyService.java:32) > at com.university.HomePage$SignInForm$1.onSubmit(HomePage.java:59) > at > org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1174) > at org.apache.wicket.markup.html.form.Form.process(Form.java:838) > at > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:762) > at > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:692) > at java.lang.reflect.Method.invoke(Method.java:597) > at > > org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260) > at > > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216) > at > > org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248) > at > > org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234) > at > > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:750) > at > > org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) > at > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:252) > at > > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:209) > at > > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:280) > at > > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162) > at > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) > at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) > at > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) > at > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) > at org.eclipse.jetty.server.Server.handle(Server.java:349) > at > > org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) > at > > org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:921) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784) > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223) > at > > org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) > at > > org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245) > at > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) > at > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) > at java.lang.Thread.run(Thread.java:680) > > > > Does anyone know how I can redirect to the external site using 1.5? > > Thanks! > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-redirect-to-an-external-site-tp4362769p4362769.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >