I have been facing a problem after integrating subModal with AppFuse application. The application was directing me to the loading.html page after login. At last I was able to find a solution to the problem. The solution was to make loading.html page accessible by annonymous users. That means I had to configure the resource loading.html in such a way so that ACEGI security does not protect the page/resource for un authenticated users. I simply added the folloing line of codes to the security.xml file with other resource security configuration.