Running webcenter related wlst command from wlst.cmd or

Requirement- If you execute webcenter related admin commands (like export or importWebCenterApplication) in windows environment by using this -JDev\oracle_common\common\bin\wlst.cmd

and you run into name not found error.

That means its not able to find this command, because it doesn’t have the right jars.

Solution –
Modify the setwlstenv.cmd file and add %COMMON_COMPONENTS_HOME%/oracle_common/common/wlst/lib/webcenter-admin-commands.jar


After adding this simply run webcenter related commands.

Happy wlst with vinay in techartifact.

Change configuration file with webcenter portal.

For editing web.xml old solution will work for but for you can use this solution.You should use WebCenter Portal Server Extension.

< In this case you must create a new application using the new JDeveloper template: WebCenter Portal Server Extension. a href=””>1

This template will create two projects (that can be named during the creation).

PortalExtension: To add custom code, task flows and beans to WebCenter Spaces.
PortalSharedLibrary: Similar to the former WebCenterSpacesExtensionLibrary; however, deployments are now done using JDeveloper Deployment tools and the versioning is managed by manually modifying MANIFEST.MF
Taking a look into PortalSharedLibrary it contains only a MANIFEST.MF file used for versioning of deployments.


Where are weblogic.xml and web.xml descriptor?

These files should be generated manually.

To create a weblogic.xml create it as New WebLogic Deployment Descriptor.



In case of web.xml create it as New Java EE Deployment Descriptor:



By default, web.xml and weblogic.xml will be part of the deployment. It shouldn’t be configured at the deployment profile.

Now deploy as shared lib in WC_Spaces. It will overwrite extens.spaces.webapp shared lib then restart server. Changes will reflect

Thanks. Happy Coding with Vinay.

Custom session timeout warning popup in Webcenter portal using jquery

Hi All,

Requirement – To show customised session time out warning popup in webcenter portal builder.

Solution- Edit your template-


In the composer, open web development and add an html markup anywhere in the template.
Edit that markup and add below code as the value.

Below snippet uses normal javascript.

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Dialog Box Witout Close Button</title>

<div id="dialog"  title="Dialog Title"></div>
var resetTime_int;
function resetTimer(){
    if(resetTime_int) window.clearTimeout(resetTime_int)
    resetTime_int=window.setTimeout(function (){
    if(document.getElementById('dialog').innerHTML = 'You have ' + (timeoutCount * 3000)/1000 + 'seconds until timeout' ;)     
    }, 1000*60*2)



Following snippet with Jquery

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Dialog Box Witout Close Button</title>
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>

<div id="dialog" style="display:none;" title="Dialog Title"></div>
var lefttime=3;
var interval;
interval = setInterval('change()',60000);

function change()
   if(lefttime<=2) {
$( "#dialog" ).dialog( "open" );
return false;

autoOpen: false,
position: 'center' ,
title: 'session',
draggable: false,
width : 400,
height : 200,
resizable : true,
modal : true,


With jquery you can make it more beautiful with these dialog options.

Thats it. You can change the time to show popup for idle user.

Happy learning with Vinay in techartifact