I’ve created two modules
- GWTAppAuth
- GWTApp
when I try posting form from GWTAppAuth to j_spring_security_check nothing happened.
Firebug shows in console
"Failed to load source for:http://127.0.0.1:8888/j_spring_security_check"
But if I try after that manually access to GWTApp it works. Anybody knows what a matter?
Looks like Spring Security just doesn’t redirect to second (GWTApp).
How do I check it?
- Run application in hosted mode
- Try to access to GWTApp.html
- Spring security redirects me to GWTAppAuth.html
- Press login button
In this place if we check firebug log we can see
"POST //127.0.0.1:8888/j_spring_security_check"
and response –
"Failed to load source for: http://127.0.0.1:8888/j_spring_security_check"
then next record –
"GET //127.0.0.1:8888/GWT/GWTApp.html?gwt.codesvr=127.0.0.1:9997"
and fetching all needed resources
Now I can manually input
"//127.0.0.1:8888/GWT/GWTApp.html"
and now I have access to GWTApp.html
I found out solution.
You should use html form and submit button instead widgets provided by GWT
for instance:
or catch on form submit completed event in case you are using GWT FormPanel widget: