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.

© Scott S. Nelson

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.

© Scott S. Nelson

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.

© Scott S. Nelson

Why Your Enterprise Web Sites Should Resemble an Ethernet Cable

Looking at my laptop at this moment, I see one very complex set of hardware and software interfacing with an almost unimaginably complex array of hardware and software though a very simple plug. I can remove that plug, move the laptop, and plug it back in somewhere else and the integration will be (nearly) instantly restored. With the addition of a cloud drive, I can remove the laptop, plug in one I’ve never touched before, and be full productive in as little as 10 minutes.

The only reason most web site DR plans don’t resemble the above scenarios is because no one has taken the time to standardized their interfaces to the level of simplicity of the humble cable. And the cable works that simply only because a number of people decided it must be.

Think about it.

If you found this interesting, please share.

© Scott S. Nelson

Planning For Multiple JDev Versions

I finally got around to installing the latest WebCenter and JDev today. I wasn’t quite ready to give up my old version, so I wanted an easy way to have both without any clashes.

The first step was to obviously choose a separate installation path. The less obvious piece was to set the

If you must have multiple versions installed, set the value of ide.user.dir.var to something other than the existing  JDEV_USER_DIR. This can be done my modifying [MIDDLEWARE_HOME]/jdeveloper/jdev/bin/jdev.boot and setting a new value there, then set a location for the new value. In my case, I used:

ide.user.dir.var = JDEV11.1.1.7_USER_HOME,JDEV11.1.1.7_USER_DIR

and set the environment variable:

JDEV11.1.1.7_USER_DIR=E:\JDEV11.1.1.7

I’m too lazy to put the environment variable screenshots here for those that need them, but someone already did at http://adfhowto.blogspot.com/2011/02/change-jdeveloper-system-directory.html

If you found this interesting, please share.

© Scott S. Nelson