For OAM Custom login page we followed below steps:
1. Created CustomLogin.war file which contains the login.jsp and static data like product Images / CSS
2. Placed the war file in this location : /scratch/gbuora/Oracle/Middleware/idmtop/products/access/iam/oam/server/tools/custompages
3. Deployed war file on OAM Server and Admin Server
4. Created the Authentication scheme which has the Context Type as custom war and "Challenge Redirect URL" to /oam/server/
5. Modified the Application Domain to use this newly created authentication scheme in its authentication policy.
We are using OAM 11g R2.
When we access application after making above changes, it is redirecting to custom login page but the product images and styles are not loaded.
In the login.jsp file we are accessing the CSS/images as below
<link rel="stylesheet" href="<%=request.getContextPath()%>/static/stylesheets/login.css" type="text/css"></link>
<img src="<%=request.getContextPath()%>/static/images/altacloud.png" id='cloudImg'>
When we executed the above CustomLogin.war file from local host, then it is working properly.
http://localhost:9090/CustomLogin/