I have now setup J2EE agent (3.3.0) on Tomcat 6 and created an J2EE agent in OpenAM (11.0.2). When I try to access the application(Enonic) I get the login page, are able to login but then the browser get stuck in a loop between the policy agent and OpenAM.
This is usually a cookie issue. Check to see that both the OpenAM server and the policy agent are using the same session cookie name. Also ensure both the OpenAM server and the policy agent system are in the same DNS domain (unless you are using CDSSO). Another cause for this could be if you have set your session cookie as secure in OpenAM but are not using HTTPS on your policy agent system.