Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-13 Thread Martin Grigorov
Hi, Try by mounting the login page to some path. In YourApp#init() method add: mountPage(/login, LoginPage.class); On Thu, Dec 12, 2013 at 9:05 PM, Entropy blmulholl...@gmail.com wrote: I just tried replacing the exception line with: try { throw new

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-13 Thread Entropy
Thanks Martin, that did it. It now works with the class instead of an instantiated page. I guess now pages passed through that exception must be mounted? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-Login-Error-tp4662916p4663000.html

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-13 Thread Martin Grigorov
On Fri, Dec 13, 2013 at 4:55 PM, Entropy blmulholl...@gmail.com wrote: Thanks Martin, that did it. It now works with the class instead of an instantiated page. I guess now pages passed through that exception must be mounted? No. It should work without mounting too but for some reason it

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Entropy
So, the app worked before I made my 1.4.7 - 6.12 changes. The general flow is that when I hit the URL for the app (with no parameters...that 404 URL is not something I typed from the browser) it goes to the Application.getHomePage(), which returns the home page (not the login page). We have a

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Martin Grigorov
Hi, java.io.FileNotFoundException: /gov.usdoj.afms.esp.modules.login.LoginPage at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest( DefaultExtensionProcessor.java:572) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933) is an exception

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Entropy
I know it is a web container page. I may not have been clear on this before. The URL I hit is: http://localhost:9080/EquitableSharing Wicket the forwards me to: http://localhost:9080/EquitableSharing/gov.usdoj.afms.esp.modules.login.LoginPage?1 But Wicket is involved because the WicketFilter is

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-12 Thread Entropy
I just tried replacing the exception line with: try { throw new RestartResponseAtInterceptPageException((Page) getLoginPageClass().newInstance()); } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (InstantiationException

Converting 1.4.7 to 6.12 - Login Error

2013-12-11 Thread Entropy
So I am past my compile errors and am now running my shiny new 6.12 application. But it breaks down before I can get it off the dealer's lot. :( The problem is that the error is kind of ambiguous. The console says: [12/11/13 14:47:30:437 EST] 0026 servlet I

Re: Converting 1.4.7 to 6.12 - Login Error

2013-12-11 Thread Sven Meier
Hi, /gov.usdoj.afms.esp.modules.login.LoginPage doesn't look like a Wicket url. Are you mounting your pages with the full package path? It seems your container is redirecting to a login, which it can't find. Is your webapp running under a context path? Sven On 12/11/2013 08:58 PM,

Converting 1.4.7 to 6.12

2013-12-10 Thread Entropy
Hi, it's me again. I'm still converting to 6.12 from 1.4.7. Thanks for your help on previous questions. Here's the next item I didn't see in the conversion docs. In one of our pages, someone did this: setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage

Re: Converting 1.4.7 to 6.12

2013-12-10 Thread Simon B
Hello, I think you can use getSession().getPageFactory().newPage(); Depending on your context you could use Session.get() or getSession() Hope that helps -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Converting-1-4-7-to-6-12-tp4662892p4662893.html Sent from