Wednesday, July 22, 2015

VBox Images with Same IP

This is happening because of same Mac Address that both the VBox images are using. When both the images are connected to the network, both are using one IP and thus all the request will be sent to one machine.
I have tried to refresh the MAC address of all three network adaptors (Bridged Adaptor, NAT, Host Only Adaptor) and restarted the VBox Image. But, unfortunately it stopped connecting to network and showing only loop back address for ifconfig command.
I have tried to start the network and got the below error,

a.      /etc/init.d/network restart
b.      Got the exception as “Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization” [FAILED}

After a lot of trial and error, I managed to sort out the issue and I have tested in two VBox images and it is working fine.
To avoid this issue, we need to follow the below steps.
1.       If you are connected with Bridged Adapter, NAT and Host-Only Adapter etc., please disable all the network adaptors except Bridged Adaptor.
VBox Image should be shutdown to do this à Settings àNetwork.
2.       Click on ‘Advanced’ in the Adaptor-0 (Bridged Adaptor) and click on the refresh button of MAC address. Note down this MAC Address in a note pad.
3.      Start the VM and login with root user.
4.      Remove the /etc/udev/rules.d/70-persistent-net.rules
a.      cd /etc/udev/rules.d/
b.      rm -rf 70-persistent-net.rules
5.      Manuall
a.      cd /etc/sysconfig/network-scripts/
b.      vi
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
HWADDR=08:00:27:bf:30:a7
USERCTL=no
PEERDNS=yes
IPV6INIT=no
c.       Change the HWADDR to the new One
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
HWADDR=08:00:27:bf:94:a6
USERCTL=no
PEERDNS=yes
IPV6INIT=no
6.      Shutdown the VBox Image
a.      shutdown –h now
7.      Restart the Machine
8.      Start the VBox image with root user
9.      Check the IP address
a.      ifconfig
b.      We can see the eth0 are initiated and IPs are assigned.


Wednesday, July 15, 2015

Webcenter Content (UCM) Integration with Oracle BPM


We can integrate Oracle Webcenter Content into Oracle SOA Server for integrating the document services with BPM Human Tasks.

As a first step we need to enable “Use Document Package” in the Human Task Configuration window in the JDeveloper.

1.       Open JDeveloper and open the BPM application.
2.       Go to the “BPM Project Navigator” à<BPM Application>àBusiness Catalog àHuman Tasks, and double click on the Human Task.
3.      In the configuration pane, select the vertical tab “Documents”
4.      Select the check box –“Use Document Package” and it will display the two more options below to it
a.      Security Group – Editable
b.      Document Type – Editable

Once we add this configuration, Human Task is able to communicate with WebCenter Content (UCM). But, we need to configure WebCenter Content in the SOA/BPM server through EM console.

1.       Open em console (http://<soa-host-name>:<port>/em) Eg: http://soa:7001/em
2.       Login with WebLogic credentials.
3.      Click on the Farm_<domain> tree structure in the left pane and it will show the option ”SOA”
4.      Expand SOA folder and click on soa-infra link and we can see the configuration window for SOA server in the right pane.
5.      Top, we can see one drop down “SOA Infrastructure” à “SOA Administration” à “Workflow Properties”
6.      In the page, we can see the link “More Workflow Notification Configuration Properties...” and it will redirect to the page “System MBean Browser”
7.      In the left pane of System MBean Browser, navigate to the human-workflow node – Application Defined MBeans àoracle.as. soainfra.configàServer: soa_server1à WorkflowConfigàhuman-workflow
8.      This will refresh the right pane and see the entry for “UcmIdcUrlhttp://soa:7001/em/adf/images/t.gif
9.      Configure the Webcenter Content URL in the right value section.
URL: idc://<ucm hostname>:<idc port>
Eg:- idc://webcenter:4444
10.   Click on “Apply” button

It is advisable to keep host entries in both the machines for both webcenter and SOA, so that there won’t be any issues in the host communication. Also, edit the Security Host Entry Filter for SOA IP .

SocketHostAddressSecurityFilter=127.0.0.1|0:0:0:0:0:0:0:1|SOA IP

Now we have configured the webcenter content id curl for communication, but we have not provided any user credentials for communicating.

1.       In the same em console left pane,  expand “Weblogic Domain” folder and select the weblogic node and it will open the configuration window in the right pane.
2.       Click on the drop down “Weblogic Domain” à Security à Credentials
3.      Click on “Create Map” and add “WF-ADMIN-USER” for the map name
4.      Click on “Create Key” and select the”WF-ADMIN-USER”, since we are creating the key for this map.
5.      Enter the username and password – It is advisable to keep weblogic user for this configuration.

Restart the SOA and Webcenter Content Server in order to see the changes.

Open the human task form (ADF page) and can see Document Service option  in the Attachments section. Click on the green plus button to add the attachments and select the option “Upload File to Webcenter Content”

1.       Provide the name
2.       Choose the file for uploading by clicking “Choose File” button
3.      Select Document Type
4.      Select “Account”
5.      Select “Security Group”
6.      Click on “OK” to upload the content


We can also see the same uploaded document for other BPM roles for downloading and viewing it.

Monday, July 13, 2015

Webcenter Portal 11.1.1.9 New Features

·         We used to install each component server separately and now it is simplifies with JSK. Download all the JSK components in sinlge directory and can run for creating the JSK.
·         Supports private cloud support
·         Portal on on-premise integration with portal on-cloud.
·         New light weight and responsive templates for mobile
·         New EL Expression Support – Particular rendition of an image and particular rendition in the content presenter templates.
·         Integration with framework folders – Using for integrating Webcenter content with Webcenter Portal
o   Over 1000 files in a folder
o   Can migrate from folders_g to FrameworkFolders
·         Integration with below Microsoft products
o   Microsoft Exchange 2010 – Calendar/Personal Events
o   Microsoft Office 2013 in Desktop Integration

o   Microsoft Internet Explorer 11

Monday, July 6, 2015

Webcenter Portal Content Presenter Display Template

Content Presenter Taskflows are incorporating the content from content server in the webcenter portal and webcenter portal framework applications.

Using Site Studio connection with JDeveloper (Details) , we can create the Site Studio Files. Initially, we will analyse the page requirements and we ill create the Asset Modelling Document. Based on this, we will create the Element Definition, Region Definition and Contributor Data File in Content Server. Contributor Data File will have the content to be displayed in the portal.

We need a content presenter display template in order to render the site studio file in the Portal Pages.

A Content Presenter Display Template is a jsff (JSF Page Fragment) file. Oracle webcenter portal and portal framework application provides many pre-built content presenter display template to render the content in various formats.

The content types can map to the site studio region definitions. When we map this into content presenter display templates, we need to know the Region Definition of the CDF files and the property names to map the content property with jsff elements or components.

Follow the below steps to create the content presenter display template.

1. Create the WebCenter Portal Framework application.
2. Create a new jsff page.
3. Add the below code in the jsff file.

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
version="2.1">
<dt:contentTemplateDef var="node">
    <af:panelGroupLayout id="pgl1">
      <af:outputText value="#{node.propertyMap['CATEGORY_TWOCL_ABTUS_RD:TEASERDESC'].asTextHtml}" id="ot1"/>
      <af:outputText value="#{node.propertyMap['CATEGORY_TWOCL_ABTUS_RD:IMAGE'].value}" id="ot3"/>
    </af:panelGroupLayout>
  </dt:contentTemplateDef>
</jsp:root>


In the above code,

CATEGORY_TWOCL_ABTUS_RD - is the Element Definition for the CDF file.

Region Definition Code:-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<regionDefinition xmlns="http://www.oracle.com/sitestudio/Element/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/sitestudio/Element/ http://www.oracle.com/sitestudio/ss_element_definition.xsd">
    <elements>
        <elementReference location="IMAGE_ED" name="IMAGE">
            <property name="label" value="CATEGORY_TWOCL_ABTUS_RD"/>
            <property name="description" value=""/>
        </elementReference>
        <elementReference location="TEASER_DESC_ED" name="TEASERDESC">
            <property name="label" value="TEASER_DESC_ED"/>
            <property name="description" value=""/>
        </elementReference>
        <elementReference location=URLLIST_ED" name="URLLIST">
            <property name="label" value="URLLIST_ED"/>
            <property name="description" value=""/>
        </elementReference>
    </elements>
    <property name="description" value=""/>
    <dataProperty name="metadata"></dataProperty>
    <complexProperty name="switchregioncontent">
        <property name="createnewxml" value="true"/>
        <property name="createnewnative" value="false"/>
        <property name="choosemanaged" value="true"/>
        <property name="chooselocal" value="false"/>
        <property name="choosenone" value="false"/>
        <valueList name="createnewnativedoctypes"/>
        <complexProperty name="choosemanagedquerytext">
            <property name="corecontentonly" value="false"/>
            <dataProperty name="querytext">((xWebsiteObjectType &lt;matches&gt; `Data File`) &lt;and&gt; (xRegionDefinition &lt;matches&gt; `CATEGORY_TWOCL_ABTUS_RD`)) &lt;or&gt; (xWebsiteObjectType &lt;matches&gt; `Native Document`)</dataProperty>
        </complexProperty>
        <dataProperty name="defaultmetadata"></dataProperty>
    </complexProperty>
</regionDefinition>


We will create the CDF file based on this Region Definition. below are the code for Contributor Data File.

<?xml version="1.0" encoding="UTF-8"?>
<wcm:root version="8.0.0.0" xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0">
<wcm:element name="IMAGE">&lt;img src="[!--$wcmUrl('resource','ABOUTUSSAMPLEIMAGE')--]" alt="ABOUTUSSAMPLEIMAGE.jpg" /&gt;</wcm:element>
<wcm:element name="TEASERDESC">Teaser Description</wcm:element>
<wcm:list name="URLLIST">

<wcm:row>
    <wcm:element name="URLTEXT">URL1</wcm:element>
    <wcm:element name="URLLINK">URL1</wcm:element>
</wcm:row>

<wcm:row>
    <wcm:element name="URLTEXT">URL2</wcm:element>
    <wcm:element name="URLLINK">URL2</wcm:element>
</wcm:row>
   
<wcm:row>
    <wcm:element name="URLTEXT">URL3</wcm:element>
    <wcm:element name="URLLINK">URL3</wcm:element>
</wcm:row>
   
<wcm:row>
    <wcm:element name="URLTEXT">URL4</wcm:element>
    <wcm:element name="URLLINK">URL4</wcm:element>
</wcm:row>

</wcm:list>

</wcm:root>


The above CDF file will be created in the content server. This CDF file can be inserted in the portal pages during design time or runtime. For that, we need a ucm connection.

Once we add the contributor data file, we need to select the content presenter display template. For that we need to add this jsff file as portal resource.

Right click on the jsff file and select 'Create Portal Resource'.

Select the Display Name and View ID. This View ID is required to set the content presenter display template in the design time.

Once the content presenter display template is added, we need to login to the portal application or portal framework application and go to the shared assets. We need to make visible this content presenter display template for the portal application in the administration window.

After that select the content presenter display template to view the content in the portal pages.


Webcenter Portal 11.1.1.8 Integration with BPM Process Spaces

Please go to the below link to access the integration details. I have done the WebCenter Portal integration with BPM process spaces in the below versions. I have kept Webcenter and SOA in separate machines and that is the most difficult part for this integration.

1. 11gPS7 - 11.1.1.8
2. 11gPS4 - 11.1.1.6
3. 11gPS3 - 11.1.1.4

Click Here

IBR Configuration in UCM Server

Start the Oracle Content and IBR Managed Servers.

We need to setup Oracle Webcenter Content Server to send jobs to IBR for conversion.

As a first step, we need to create an outgoing provider .

1. Open Content Server (http://hostname:16200/cs)
2. Go to 'Administration' menu and choose 'Providers'
3. In the create new provider section, click 'Add' in the outgoing row.
4. Enter the values for the below fields.
    Provider Name : IBROutgoingProvider
    Provider Description : IBR Outgoing Provider
    Instance Name : IBROutgoingProvider
    Server Host Name : Host Name of the IBR Machine
    HTTP Server Address : http://<webcenter>:16250
    Server port : 5555
    Relative Web Root : /ibr/
    Select the check box for 'Handles Inbound Refinery Conversion Jobs
    Do not select the checkbox for 'Refinery read-only mode'
    Manimum Jobs to Queue : 100
5.submit the form and restart the IBR Server and Content Server

Once the connection is established, we can see the entries in IBR Active agents.

Sunday, July 5, 2015

Enable Full text Search in WebCenter Content (UCM)

To enable the full text search in Webcenter Content, please follow the below steps.

1. Modify the Configuration File and append the below line.

$cd <WC Installation Path>/user_projects/domain/<domain_name>/ucm/cs/config/config.cfg

SearchIndexerEngineName=DATABASE.FULLTEXT

Restart the Content Server

We need to reindex the Content server data

Open content server --> Administration tab -->Admin Applets -->Repository Manager -->
index tab,

in the automatic update cycle--> click 'Start'

Once it is finished,

in the collection rebuild cycle --> click 'Start'

Once it is finished, it is advisable to start the content server and webcenter portal managed servers.

Configure VNC Server on Linux


Edit /etc/sysconfig/vncservers file to configure the required displays

VNCSERVERS ="2:root 3:oracle"
VNCSERVERARGS[2] = "-geometry 1280x1024 -nolisten tcp -localhost"
VNCSERVERARGS[3] = "-geometry 1280x1024"

Set the VncPassword for the above users.

$vncpasswd

$su - oracle
$vncpasswd
$exit

Enable the VNC Server service for auto start and start the service

$chkconfig vncserver on
$service vncserver start

To stop the service and disable auto start
$service vncserver stop
$chkconfig vncserver off


Weblogic Server 10.3.6 Installation and Administration

The standard JDK installation is fine for the Development Environment. JRockit installation is preferred for the Production Environment.

Edit the host entries in the /etc/hosts file with root user before starting the installation.

Create new group and user for weblogic server installation.

$groupadd -g 1000 oinstall
$useradd -u 1100 -g oinstall oracle
$passwd oracle

Provide password for oracle user.

Create the directories in which the Oracle software will be installed.

$mkdir -p /u01/app/oracle/product/fmw11g
$mkdir -p /u01/app/oracle/config/domains
$mkdir -p /u01/app/oracle/config/applications
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

Append the below entries in /etc/profile file

export MW_HOME=/u01/app/oracle/product/fmw11g
export WLS_HOME=$MW_HOME/wlserver_10.3
export WL_HOME=$WLS_HOME

Amend the /etc/security/limits.d/ao-nproc.conf

from
      *        soft      nproc      1024
To
      *        -          nproc        16384


Run the installer as oracle user

$JAVA_HOME/bin/java -Xmx1024m -jar wls1036_generic.jar

Enter the Middleware Home

/u01/app/app/oracle/product/fmw11g

Start the Node Manager

$nohup $WLS_HOME/server/bin/StartNodeManager.sh

Start Weblogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StartWebLogic.sh

Stop Weblogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StopWebLogic.sh

Start Managed WebLogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StartManagedWebLogic.sh <Managed Server>

Stop Managed Weblogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StopManagedWebLogic.sh <Managed Server>





JRockit JDK on Linuz

Download the JRockit bin package from Oracle site.

Make the file executable and run it

$chmod u+x jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin
$./jrockit...

Choose the Production Installation directory.

Set the JAVA_HOME and export it in /etc/profile file.

Site Studio Development with JDeveloper

Oracle WebCenter Portal and Content stack is slowly removing the dependency with Oracle Site Studio External Sites and promoting WebCenter sites.

But, we can connect the Site Studio with JDeveloper to create the Site Studio Files in order to display static content and dynamic contents in WebCenter portal. Using site studio contributor data file in WebCenter Portal application, content editor can edit the content at run time using Site Studio Contributor Mode.

We need to download the below packages from ucm installation directory and then load with JDeveloper.

Path :- <UCM Installation Directory>\ucm\Distribution\SiteStudioExternalApplications\jdev

1. oracle.ucm.wcm.jdev-11.1.1.zip

Follow the below steps to incorporate the same packages downloaded in JDeveloper.

1. Open JDeveloper and go to Help Menu and select 'Check For Updates'
2. Click 'Next' on the update wizard Step 1
3. Click the Radio Button 'Install From Local File' and browse the above zip file and install it.

It is advisable to restart the JDeveloper for any extension changes.

Once the Site Studio is completely added, we can see the Site Studio Entry in JDeveloper 'View' menu.

Create a new JDeveloper Generic Project and add the Site Studio Technologies as technology stack.

Once the project is created, we can create a site studio connection  with Projects 'Application Resources Connection'.

Right click 'Connection ' --> New Connection --> Site Studio

Connection Name - Host name of the WebCenter Content.

Specify the Credentials for JDeveloper Session and test the connection.

Once the connection has been successfully established,  right click on the connection and add to the project.

Now we can create below Site Studio Files for our Webcenter portal Project.

1. Element Definitions
2. Region Definitions
3. Contributor Data Files