Customizing the WebLogic Administration Console on CentOS
To customize the WebLogic Administration Console (the primary web-based management interface for WebLogic Server), you need to modify its themes, skins, or configuration files. Below are structured steps covering key customization aspects, organized by component and complexity.
The Administration Console’s appearance is controlled by three core elements:
All UI resources are stored in the WebLogic installation directory under /framework/skins/
. For a custom skin/theme named mycompany
(replace with your identifier), the critical paths are:
/framework/skins/mycompany/
(contains styles for buttons, forms, layouts, and portlets).wls.css
: General element styles (body, headers, tables).button.css
: Button appearances (active/inactive states, hover effects).layout.css
: Layout spacing and container borders./framework/skins/mycompany/images/
(button backgrounds, icons).button_bg.png
) for customizing button visuals.Edit CSS files in the mycompany
skin directory to adjust colors, fonts, and spacing. Common modifications include:
background
property in button.css
to use a custom color or gradient..bea-portal-button {
background: linear-gradient(to bottom, #4CAF50, #45a049); /* Green gradient */
border-color: #3e8e41;
}
form.css
.input[type="text"], input[type="password"] {
border: 1px solid #ccc;
border-radius: 4px;
padding: 5px;
font-size: 14px;
}
layout.css
to change the console’s header/footer height or sidebar width..bea-portal-layout-header {
height: 80px; /* Increase header height */
background-color: #f8f9fa;
}
After editing, save the files and clear the browser cache to see changes.
If you want to limit visual changes to specific components (e.g., the Change Center portlet), modify the corresponding theme directory under /framework/skins/mycompany/
. Themes reference skin files and add section-specific overrides:
wlschangemgmt
theme. To customize its title bar background:
/framework/skins/mycompany/wlschangemgmt/theme.css
..wlschangemgmt-title-bar
class:.wlschangemgmt-title-bar {
background-color: #2196F3; /* Blue title bar */
color: white;
}
This change only affects the Change Center, leaving other components unchanged.
For non-developers or iterative changes, use the Look & Feel Editor (accessible via the Administration Console):
If you need to alter the HTML structure of components (e.g., add a custom logo to the header), edit the skeleton JSPs located in the WebLogic installation directory. However, this is advanced and not recommended for most users, as it can break the console if done incorrectly. Refer to Oracle’s official documentation for guidance.
After making modifications:
sudo systemctl restart weblogic
(Replace weblogic
with your server instance name if different.)By following these steps, you can effectively customize the WebLogic Administration Console’s interface on CentOS to match your organization’s branding or user preferences. Start with simple CSS edits (e.g., button colors) and progress to themes or skeletons for more complex changes.