New IT Phrase

Where I had hear of Rocket Surgery for the really hard stuff, this weekend I had to do some things on the fly in production to get a go-live completed after a 14 month effort. After the 11th hour of effort and final success, I thought of:

Cowboy Rocket Surgery.

If you found this interesting, please share.

Happy Tails to View

Wish I could make those notes in the title, as it should be sung to the tune of Happy Trails to You.  Anyway, I wanted to tail a log in Windoze and found the perfect set of instructions to do so at http://malektips.com/xp_dos_0001.html

To save a click, a basic example is:

tail -20 D:oracleMiddlewareWSRPProducerForDotNetwsrpdefaultLogsRFS.log
If you found this interesting, please share.

WebCenter as a Service and JPS-06514 Error

Ran into this where someone had created a WebCenter environment on a Windows server and I couldn’t get it to run after the first server restart. The error in the logs was:

JPS-06514: Opening of file based keystore failed.

Turns out that the credentials don’t get created correctly for the domain path in Windows all of the time. The fix was to go to the domain folder, right click  and:

  1. Go to Properties
  2. choose the Security tab
  3. click Advanced
  4. click on the entry for Administrators Group
  5. click change permissions
  6. click on the entry Administrators Group
  7. check box “Replace all child object permissions with inheritable permissions from this object”
  8. click “OK”
If you found this interesting, please share.

WebCenter Custom Header Headache Healed

I know that inline styles are generally a last resort, but I was trying to get something quick and clean up with the customer’s logo where it belonged and just could not get it to work. My inline attempt was to do the following:

<af:image source="/images/logo.png" 
          shortDesc="[customer] logo" id="pt_i1""/>

But that resulted in the image being stretched across the whole panel. Then I figured I would just add the size like this:

<af:image source="/images/logo.png" 
          shortDesc="[customer] logo" id="pt_i1"
          inlineStyle="width:159px; height:85px;"/>

But same result. While trying to figure things out, I added a space thus:

<af:image source="/images/logo.png" 
    shortDesc="[customer] logo" id="pt_i1"
    inlineStyle="width:159px; height:85px;"/>&nbsp;

And it worked! But, I did not want to rely on such a hack, so I looked and looked and looked and finally figured out how to had a simple custom class:

af|panelGroupLayout.pageTemplate_custDefaultPageHeader 
{
background-image:url('/oracle/webcenter/portalapp/shared/cust_Logo.png');
background-repeat: no-repeat;
}

Where af|panelGroupLayout is an existing ADF Faces selector, and applied it:

<af:panelGroupLayout layout="vertical"
   xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
   id="customDefaultBannerDiv" 
   styleClass="pageTemplate_custDefaultPageHeader"
   inlineStyle="margin-top:10px; min-height:98px; text-align:right;">

And everything was good. For now.

If you found this interesting, please share.