Month: February 2014

Connecting JDeveloper to UCM when using VirtualBox VM

In this section of the Oracle Tutorial it explains how to connect JDeveloper to your UCM server. In this post I’ll provide the details you need to fill out in the “Create Content Repository Connection” dialog when using the Oracle VirtualBox VM.

In the “Create Content Repository Connection” dialog enter the following:

  • Connection Name: UCM
  • RIDC Socket Type: socket
  • Server Host Name:
  • Content Server Listener Port: 4444
  • Username: weblogic
  • Password: welcome1
  • It was thanks to this article that I found out where to find the server details for the UCM server.

    How to customise a WebCenter Portal site

    These pages are as much for me as a reminder on how to do things, but hopefully, they are useful to others too.

    It is possible to customise the look and feel of your Oracle WebCenter Portal by creating and activating a new Page Template and CSS file (Also known as Skin in the Oracle world).

    The tutorial on how to do this can by found on Oracle’s site here.

    Creating a WebCenter Portal Application & Customising a page template

    This post follows on from the previous one which is part of a series of explaining any non-obvious parts of the Oracle Tutorial.

    I am using the Virtual Box development environment which makes things a lot easier because everything for WebCenter is pre-installed and configured. This can be found here.

    In this post I will be following this tutorial.

    This part of the tutorial is essentially all in JDeveloper and goes through setting up your first project. Section 3 is just a case of following the steps, there is nothing here that I feel is worth commenting on further.

    Important note from this article is that when creating a new page template you also need to create a Page Definition as well. A page definition file is an XML file that specifies ADF bindings, page parameters, and permission settings. Various mappings and bindings used by pages and page templates are also specified. In this case, the myTemplatePageDef.xml file specifies the task flow for navigation rendering of the site, as well as parameters defining site structure paths.

    The Application Sources folder is primarily a repository for page definition files, like the myTemplatePageDef.xml file, as well as for source code in a project.

    Missing Step
    In Step 3, item 12 there is a missing step on this page. The page shows the new template that has been created, however, it is not available. You first need to make it available before being able to select it in the Configuration tab.

    To do this select the “Hidden” template, click the Edit menu and then select “Show”. This will make the template available and then it can be selected in the Configuration tab in the next step.

    Also, on the step when we need to select the Default skin. I didn’t have an drop down to select from. This was because although my skin was available the default skin wasn’t. Making this available enabled the drop down. (You can enable this by clicking on “Skins” in the “Look and Layout” menu on the left and selecting the skin, clicking the Edit menu and selecting “Show”.

    How to develop portals for Oracle Web Center

    This is going to be the first in a series of articles explaining how to get up and running with developing Oracle WebCenter Portal: Spaces.

    Note the name has changed from onwards. “WebCenter Portal: Spaces” has become just “WebCenter Portal”.

    The article will be going through the tutorials that Oracle provide here: but I will attempt to explain what I needed to do when the instructions aren’t all that clear to a newbie.

    Step 6, item 4 of this article isn’t particularly helpful. It instructs the reader to upload the content into WebCenter Content. This is in fact the new name for Oracle UCM. The pre-built server that I am using only has a UCM instance, so this needs to be running for this tutorial.

    What I did here was in UCM.

  • – Login to your UCM server as user: weblogic and password: welcome1
  • – Go to Browse Content on the left hand side. Then expand Contribution Folders.
  • – Select the Contribution Folders and then click “New Item” on the right then “New Folder” to create “About Us”. I then repeated this for the other folders.
  • – Next I then selected the folder and clicked “New Item” then “New Content”. I clicked the browse button to upload the file from the expanded zip file selected a file and then gave it the same title as the file name. Saved this then repeated the process for all the other files and folders.
  • For Step 7 I didn’t do anything as it seemed to be explaining what we’d need to do but not at this point. (Following through the rest of the tutorial you do not need to do this step now)

    The next post will cover anything I did/discovered in the next section “Creating a WebCenter Portal Application

    Kicking off a Jenkins/Hudson build on SVN commit

    This is something that a lot of people out there like to do when you’re code contains automated tests. There are two options available to you which are:

    1) Get Jenkins/Hudson to poll the SVN server to look for changes.
    2) Notify the build server when changes are made on the SVN server.

    Option 1 is a lot easier to do than option 2, mainly because it can be done out of the box. This works fine if you are happy for the server to poll SVN every few minutes and you can wait.

    – If you want to poll SVN every 2 minutes say, then go to the configuration page for your build task in Jenkins.
    – Scroll down until you get to the “Build Triggers” section.
    – Tick the Poll SCM and enter “H/2 * * * *” into the Schedule section.
    – Click Save.

    Option 2 is required if you want the server to be more responsive to changes in SVN. There are instructions on how to do this here, look for the Post Commit Hooks section.