Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OAM Custom Login Page Not Loading Static Data (Imagges / CSS)

2616534Jul 28 2016 — edited Jul 29 2016

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/

This post has been answered by 2616534 on Jul 29 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2016
Added on Jul 28 2016
10 comments
1,611 views