Oracle WebCenter FotoInStream is a mobile application that lets organizations capture, annotate, report, save and share field activities remotely using a tablet or mobile device.
With Oracle WebCenter FotoInStream, stakeholders are able to…
1. Capture key information and photos with your mobile device or tablet
Simply snap, tag and annotate field photosto capture site conditions, GPS coordinates, into the photos to provide proof and create searchable content. This will allow you to produce custom PDF reports from the field with photos.
2. Automate filing of photos to WebCenter Content (WCC)
Oracle WebCenter FotoInStream provides an automated upload, organization and filing process for your photos from your mobile device or tablet to WebCenter Content. It also syncs your photos from the field with additional home office, partners, etc.
3. Centrally manage photos and account settings
Oracle WebCenter FotoInStream lets you manage and control all devices within your organization, configure tags and fields and search photos across multiple devices/projects within your organization. For example, you can use keywords to quickly pull up photos, including ability to search wording within annotations on the photo.
Oracle WebCenter FotoInStream lets employees capture information and photos with a mobile device or tablet and upload to Oracle WebCenter Content.
To learn more about Oracle WebCenter FotoInStream and how this mobile solution can change the way that your organization captures and reports field information, download the datasheet below.
Recently, I came across a requirement to do pagination in a Content Presenter.
The business use case is to display a list of content items (Site Studio Data files) as a list of items on a page. It can be achieved easily using the Content Presenter taskflow, assigning a list of items (multi-list or query based) and use a multi-list Content Presenter. That works fine until the content grows and the number of items increase to more than a few (say more than 10). When the number of items increases, it affects the usability (user will have to scroll down a long page of content to find what they need) and the response times of the page (especially on pages with a lot of traffic as the number of lookups in WCC increases and the page size grows).
This customer has a few “Archive” pages in the portal, where the user will be able to dig up an old “News” article, a “Publication” or some other form of site studio based content. A quick Google search pointed out a few ways to achieve pagination in a Content Presenter using a bean for persisting the pagination data such as page index, page size, etc. However, that would require custom library development, deployment, downtime, restarts, etc.
TekStream Solution:
Application Development Framework (ADF) Basic Table Component comes to the rescue. One of the new features of 11.1.1.7 is pagination in tables. ADF Basic Table can be used as an iterator to loop thru the items restored by the list of items and pagination can be enabled by changing the following properties of the af:table component
autoHeightRows=0
scrollPolicy=”page”
fetchsize=5 – fetchsize property sets the items per page. In this example it is set to 5.
af:column component(s) can be added to the af:table to display the node property data. In the example below a single item template is used but multiple columns and standard adf component can also be used to get desired display of content.
You may need to set nowrap=false property on the af:column component to achieve display of single item in a single / multiple lines as desired.
However, ADF Basic Table component is developed for displaying typical database table data, hence it has some specific properties enabled by default and these need to be disabled appropriately.
Skinning the af:table component will allow us to modify/remove the unnecessary elements of the pagination. Below is one such variation.
This approach improves portal page response time, especially for retrieving and presenting a large list of Site Studio based web assets from Oracle WebCenter Content.
Budget season is here, but it doesn’t have to be a stressful season if you have the right partners!
We know that Oracle licensing is complicated, confusing, and can be expensive if it’s not purchased optimally. The Oracle sales team is helpful, but companies are increasingly searching out an unbiased opinion.
TekStream Solutions’ licensing experts leverage decades of Oracle experience to help you buy licenses at the lowest price and with the best licensing terms.
TekStream experts offer assistance with:
New License and Support Discount Negotiation
Support Renewal Consulting
Oracle Audit and Compliance Strategic Consulting
ULA Evaluation Services (New and Existing)
TekStream will walk you through the process, help you save money and make you feel confident that your environment is properly licensed. Our customers work with us because we offer the best advice available on how to structure your Oracle support renewals and new purchases.
Contact TekStream today, and let us help you stay compliant, while maximizing your licensing investment! Simply fill out the form below, and a TekStream Oracle Licensing expert will contact you as soon as possible.
Oracle’s WebCenter Content 11.1.1.8.0 now has Patch MLR3 available. The patch is fairly straightforward, but some extra steps will be required for this to work with the Oracle Application Developer Framework User Interface (ADF UI). The new updates add new functionality and features to the user interface:
– Workflow with electronic signatures capabilities are displayed in proper places such as in the document viewer.
– Users can now select their home page (Search, Favorites, or Browse).
– Users can set the View Type across Search, Favorites, and browse pages.
After patching WebCenter Content to MLR3, follow the steps below to at ADF UI.
Roll Back Patches
During the original installation of Oracle ADF UI, two patches were applied to the application. We will need to roll back the patches, and install two new patches.
set ORACLE_HOME=<Drive Letter>:<UI domain middleware>oracle_common
Next, go to ORACLE_HOME, and into the Opatch folder. Run opatch lsinventory. This will show the patches which have been applied.
To roll back the patches, use the following command:
ORALCE_HOME/OPatch/opatch rollback -id <patch_id>
In our environment, here are the two commands we executed:
opatch rollback -id 13656372
opatch rollback -id 13656274
When we run opatch lsinventory again, it shows no interim patches installed on this Oracle Home.
Install latest Sherman 11.1.2.4 Patchsets
The next step is to apply the new patches on to the UI domain environment. Start by extracting the patch files. In our example, the patch files will be stored in /u01/ui/patch/.
Browse into the folder of the first patch (/u01/ui/patch/16546129/). To run the patch, run the following command:
Browse to the WebCenter Content’s Fusion Middleware folder. Go into Oracle_ECM1 à ucm à Distribution à WccADFUI. Copy the file named WccADFUI.zip. Our complete file path for this file is:
Go into the UI Domain’s Admin Console. In our environment, the URL for the Admin Console is https://localhost:7003/console.
Select Deployment under Domain Structure.
Find the deployment oracle.wcc.adf.skin.custom. Delete it.
Find the deployment oracle.wcc.adf.skin.standard. Delete it.
Now click the Install button. In the Path, browse to ORACLE_HOME/webcenter/wccadf. Select WccAdfCustomSkin.jar. Click Next.
Deploy the application to the Admin Server and the ADF Server.
Click Next until the end, and then click Finish. Do the same for WccAdfStandardSkin.jar.
Start up the ADF UI managed server, and you’re done! For live assistance from a TekStream representative, chat us now. Or, fill out the form below and we’ll contact you as soon as possible.
Recently, I worked with a long-time WebCenter Interaction (WCI) customer that requested our assistance in upgrading their Extranet from WCI 10gR3, to WCI 10gR4. As you probably know, WCI has been “end-of-lifed” by Oracle, meaning that the 10gR4 version (aka v10.3.3.0.0) is the last and final version. For many of us that have used WCI since it was a Plumtree product (including this customer), it is the end of an era.
But I digress…
The 10gR4 upgrade should have been a quick, simple, and painless upgrade. According to the Release Notes, there really wasn’t too much that changed from 10gR3 – or so we thought. As we progressed through upgrading their TEST environment, we encountered a variety of things that had changed, weren’t documented, and caused problems that we had to resolve before upgrading their PROD environment.
New Parameter on Method Call
This customer had written a few customizations and extensions to the out-of-the-box WCI portal. These should have all continued to work with 10gR4, but when we were testing, we were seeing an error from their code, stating that a method (com.plumtree.portalpages.browsing.login.LoginModel.GetSubPortalRedirectAfterLogin) could not be found. My first thought was that the method had been removed – perhaps it was an ‘internal-use-only’ method that Oracle decided was no longer needed or something. We looked in the API documentation, and the method was still there. Hmm. Weird.
After a bit of head-scratching, we realized that while the method was still there, what was causing the error was that its signature had changed! With 10gR3 and prior versions, the method had no parameters. But, in 10gR4, there now was a required parameter (IPTSession) that must be passed to the method. This was causing their code to fail, since they weren’t passing this parameter. Adding the now-required parameter to the method call resolved this issue.
[ Side note: This customer uses the .NET version of WCI, but you may have noticed that the links I’m using are to the Javadocs, not the .NET docs. This is because the .NET docs don’t even have this class or package documented – they are just missing (along with quite a few others)! We’ve noticed that the .NET version of the API documentation is very incomplete for some reason. So, even if you are a .NET API user, it pays to take a look at the Java version of the API documentation, as it appears to be much more complete. The two APIs (.NET and Java) are essentially the same – the .NET version of WCI is actually translated from the Java version – so you can safely use the Java docs even if you are a .NET customer. We’ve filed bug 18436590 with Oracle on this issue. ]
The Release Notes for 10gR4 makes absolutely no mention of any API changes! I checked with Oracle Support, and they were unable to find any documentation on this, or any other, API changes from 10gR3 to 10gR4. I haven’t done an extensive comparison between the API method signatures in 10gR3 and 10gR4, so there may be others that could trip you up. So, keep this in mind if you get the “method not found” error – it may not be because the method isn’t there, but that the parameters have changed.
New Advanced Search Adaptive Page Layout
Something that is documented (OK, mentioned) in the Release Notes, is that the Advanced Search page is now an adaptive page layout. This is great news, as it means you can customize it to meet your look-and-feel needs as you can with other pages. In this customer’s case, the new adaptive page layout for the advanced search results screen required some customizations to make it ‘fit’ (both physically and aesthetically) in their page.
The <pt:kdpage.documentsdata> tag is used on the knowledgedirectorylayout.html adaptive page layout. It returns a collection of documents (cards) from the Knowledge Directory that should be displayed on this page (taking into account the selected folder, pagination, etc.). For each document in the collection, there are a set of properties returned – name, id, URL, etc. Our customer had customized the out-of-the-box knowledgedirectorylayout.html file to change the look to match the rest of their site, and once we upgraded to 10gR4, the links to display a document stopped working. When someone clicked a link, the URL it took them to appeared to have JavaScript in it. What was going on?
We looked at the line in the custom knowledgedirectorylayout.html file (which was copied from the original Oracle-supplied .html file), and it was the following:
The above <pt:core.html> tag will output a normal <a> tag, with an href of the document’s url (from the $doc.url property). This looked fine (and hadn’t changed), so what was going on?
After quite a bit of digging, we figured out that the $doc.url property had changed in 10gR4! (And – surprise – no mention of this in the Release Notes either!) When we looked at the (new) out-of-the-box knowledgedirectorylayout.html file, that line had changed (and there was a new comment) as follows:
<!-- Bug-9380820: Adding the onclick attribute. That is having the url according to UserPrefrence. Document should open in the same window or new window. changing href attribute value from $doc.url to #. -->
<pt:core.html pt_tag="a" href="#" onclick="$doc.url" title="$htmlEncodedName"><pt:logic.value pt_value="$doc.name"/></pt:core.html>
Comparing the two, and reading the comment, it appears that there was a bug (#9380820) where clicking on a document in the KD list should either open the document in the current window, or in a new window, depending on a user preference. The bug in 10gR3 was that the document always opened in the current window (which, if you look at the <a href=”xxx”> tag that was being created, makes sense). So, the ‘fix’ was to change the doc.url property to return a block of JavaScript that when executed, would either open the document in the same window or a new window, depending on the user’s preference setting. And, in the updated <pt:core.html> tag, you can see that the return value from $doc.url is now being used in the “onclick” attribute of the <a> tag, and the href attribute is just “#”.
While this ‘fixed’ the bug (which isn’t visible in MetaLink, BTW), it broke any other use of the doc.url property, including our customers’. An easy option would have been to mimic what Oracle had done to the OOB knowledgedirectorylayout.html, and move the use of the doc.url from the HREF attribute to the ONCLICK attribute of the <a> tag. However, that caused other issues. Our customer uses a FireFox add-in that allows them to download all of the links on a page at once, which they would use to download a whole folder at a time from the KD. By changing the HREF attribute to “#” and opening the document with JavaScript (like Oracle had done), the tool would no longer work (since the links didn’t have an actual URL).
So, what we ended up doing was building the HREF attribute a slightly different way. We replaced the <pt:core.html> tag and instead used the <pt:standard.openerlink> to get the URL for each KD document as follows:
The resulting <a> tag contained the document’s URL in the href attribute as it did in 10gR3, allowing their download tool to continue functioning.
[ My 2 cents is that Oracle ‘fixed’ this bug entirely wrong. They should have left the doc.url property alone, and let it continue to return an URL (as its name and the documentation implies). They should have introduced a NEW property (e.g. “doc.openscript”) that could then be used to open it with JavaScript and also honored the “open in new window” user profile property. This way it would not break any existing code. But, that is just my opinion… 🙂 ]
ItemAsXPDateTime
This is a really weird one, and took quite a while to track down and resolve. The customer has a custom user property that tracks the date the user last changed their password. This property is defined as a ‘date’ type. When a user logs in, they have a custom PEI that checks the PasswordChanged property to see how long it has been since the user changed their password, and if it has been a while, prompts them to change it.
They do this by executing a query to get the set of properties for the user, then they were using the following code to return the value for the “PasswordChanged” property as an XPDateTime object (where ‘i’ is the index into profileProperties of the PasswordChanged property):
Once we upgrade to 10gR4, we starting seeing seemingly random failures on this line of code, with the following stack dump:
com.plumtree.openfoundation.util.XPClassCastException: Error in function PTQueryResult.ItemAsXPDateTime (rowNum == 23, propID == 67108864): Unable to cast object of type 'System.String' to type 'com.plumtree.openfoundation.util.XPDateTime'.
at com.plumtree.openfoundation.util.XPException.GetInstance(String strErrorMsg, Exception e)
at com.plumtree.server.impl.core.PTQueryResult.ItemAsXPDateTime(Int32 rowNum, Int32 propID) in e:buildrootReleaseportalserver10.3.3.xportalobjectsbuildx86srcdotnetcomplumtreeserverimplcorePTQueryResult.cs:line 350
at com.acme.portalpages.browsing.login.CustomControl.getDateTimeUserProperty(String propertyName, Int32 userID, IPTSession ptSession)
Now, all user properties are actually stored in the database as String values, so what appeared to be happening is something was preventing the (Oracle) code from converting the String value in the DB into an XPDateTime value. Since the code worked for some users and not for others, we thought there must be an invalid character or something in the data for the users that failed, so we started to look in the DB (in the PTPROPERTYDATA table) to compare ones that worked with ones that didn’t to see what was different. What we found was surprising – there were NO differences! We even took values that worked and copied them from one user to a user that failed, and that didn’t fix it! We tried editing the PasswordChanged value via the Admin Portal UI, and that didn’t work either.
Ultimately, we never were able to determine why the portal was unable to convert certain users’ PasswordChanged value to an XPDateTime. (We did create an Oracle Service Request on this, too.) So, in the interest of time, we ended up coding up a workaround ourselves that basically returned the value for the PasswordChanged property as a generic Object. Then, we tested the ‘type’ of this object to see if it was a String, and if so, we converted it to an XPDateTime value ourselves. So, for some users, the portal actually returns an XPDateTime object for this property, and for other users, it returns a String, which we then convert.
So, not a true ‘fix’ in that we never have figured out why the portal is working this way, but it let the customer move forward with their upgrade, which to them was more important.
Other Anomalies
Finally, there were a few other anomalies that we encountered in the process that I feel worth mentioning.
The installer for the WCI 10gR3 wouldn’t run on a set of boxes that we needed to install the AD Identity Web Service on. It would fail with the error “Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.” We verified that the user we were logged in as had Administrator rights to the box, that the installer was located on a drive that we had permissions to, that the TEMP folder had space (and we had permissions), that the anti-virus package wasn’t blocking the install – all sorts of things. We never were able to determine why the installer wouldn’t work, unfortunately (although we suspect it was a Windows Policy of some sort causing the issue). We ended up installing the AD IWS on another box that didn’t have the problem.
When we installed the Analytics Jobs (only) on a server, when we tried to run any of the jobs, we would get the following error:
Exception in thread "Main Thread" com.plumtree.analytics.core.exception.BeanNotFoundException: Cannot find bean with name 'runJobs' at com.plumtree.analytics.core.SpringUtil.getBean(SpringUtil.java:74) at com.plumtree.analytics.job.RunJobs.main(RunJobs.java:204)
After a lot of digging (and decompiling Oracle code), we discovered that the hibernate3.jar was missing. We were not able to reproduce this problem, but the best theory that we and Oracle were able to come up with was that you should copy the zip files for hibernate and cewolf to a local drive before installing Analytics. Apparently the installer has some known issues with installations from a network drive. We did this on subsequent installations, and did not experience the problem again.
Whew! So much for a ‘painless’ upgrade, huh? 😛
Overall, the upgrade went fairly well (preceding issues aside). Many of the issues we encountered could have been avoided had Oracle actually documented changes that they made to (public) APIs, instead of letting customers ‘trip upon’ the changes randomly. While we were able to resolve (or workaround) all of the changes, it has raised the question of “What else was changed that we weren’t told about?” and that we may not ‘trip upon’ for days, weeks, or months? I realize that as 10gR4 is the last release of WCI, there perhaps isn’t a lot of concern for the product, so some shortcuts were probably taken to just get it out the door.
I for one, will continue to mourn the loss of what was a great product, and look (hope?) to see Oracle incorporate some of WCI’s best qualities into the WebCenter Portal replacement.
Optimizing ‘Application Module’ pools are second to none, when you tune ADF Business Components (ADF BC) application for performance bottlenecks or out of memory errors. To analyze performance problems effectively, it is essential to have metrics.
You can view Application Module pool metrics via Enterprise Manger:
From Application Deployments, click the desired application
From the Application Deployment menu, choose ADF > ADF Performance.
Click the Application Module Pools tab
Alternatively, You can view Application Module pool metrics via DMS Spy:
Navigate to the URL https://host:port/dms/Spy
Authenticate yourself as administer on the login screen.
On the left side ‘Metrics Tables’ click on ‘ampool’, after successful log on.
Dynamic Monitoring Service (DMS) enables us to measure application specific performance information, either through the Spy Servlet or through exposed MBeans. The DMS metrics can make your job bit easier to set optimal AM Pool configuration.
Although the DMS metrics are always available, the interpretations of them are somewhat obscure. Unless you know what type of sensor is used to collect the metrics, it is difficult to interpret the metrics. For example, It may be confusing to anyone, to see instancecount value is below instanceCheckedIn value or instanceCheckedOutFailed value; Or like how to interpret maxActive value on appModuleCreationTime metrics. In this blog, I try to provide possible interpretation to each ‘ampool’ metrics with little bit of detail about each sensor.
DMS Sensors enable DMS to define and collect a set of metrics. DMS has three different kinds of sensors:
DMS PhaseEvent Sensor
This sensor particularly helps to measure the time spent between block of code (shown with the metric name ‘time’). Also, optionally it provides other/derived performance metrics like minimum time, maximum time, average time spent.
appModuleCreationTime metrics measures the time taken to create a new pool resource (AM).
time – The total number of milliseconds spent on creating pool resources.
completed – The number denotes the occurrence of pool resource creation event.
avg – Average number of time in milliseconds to create a new pool resource.
maxTime – Records the longest time it took to create a pool resource, since the creation of the pool.
minTime – Records the shortest time it took to create a pool resource, since the creation of the pool.
active – Specifies the number of threads performing pool resource creation activity, at the time when the DMS statistics are gathered.
maxActive – specifies the maximum number of concurrent threads involved in the pool resource creation phase, since the pool started.
DMS State Sensor
Use this sensor, if you are interested in tracking the state of the system or in need of metrics which is not associated with an event. For example, you could want to see how many number of active users involved in particular instance and so on. This sensor optionally provides other/derived performance metrics like count, maxValue, minValue.
availableInstanceCount – number of available AM instance
value – Represents number of available AM instance, when the latest DMS statistics is gathered.
count – Specifies number of times the value got updated.
maxValue – Shows the maximum number of available AM instance since startup.
minValue – Shows the minimum number of available AM instance since the pool start.
instanceConnected – Number of AM instance that are currently registered with the pool.
For the sake of brevity, I leave up to you to deduce meaning of each metrics values associated with this sensor and the next one, like the previous one.
instanceCount – Number of connected AM instance.
Event Sensor
This acts as a counter and gets you the number of times the event occurred since the process started. When you interpret below metric values related to AM pool, always aware that, the values are not for particular instance/time period, but since the pool lifetime/the pool started.
instanceCheckedIn – Number of times Application modules checked in the pool
instanceCheckedOut – Number of times Application modules checked out of the pool
instanceCheckedOutFailed – Count indicates the number of failures occurred while checking out the item
instanceConnectedCount – Number of Application module instances referenced by the application, since the pool lifetime
instanceCreated – Number of AM module instance created since the lifetime of the pool
instanceDisconnectedCount – Number of Application module instances disconnected, since the pool lifetime
instanceRemoved – Number of AM module instance removed from the pool since the lifetime of the pool
instanceReused – Number of times AM module instance reused since the lifetime of the pool
refInstanceRecycled – Number of times reference instance recycled
stateActivated – Number of times activation has occurred
statePassivated – Number of times Passivation has occurred
unrefInstanceRecycled – Number of unreferenced Instance recycled
Still have questions? That’s what we’re here for. Send us your information and we’ll have a technical expert contact you to discuss your challenges and how to solve them.
Microsoft’s hosted Office365.com service doesn’t yet have anywhere near the number of users as other services (like Gmail), but it is gaining popularity, especially as Microsoft phases out and merges its other hosted email services. Being able to integrate Office365 with a WebCenter Portal (WCP) or a WebCenter Portal: Framework (WCPF) application becomes more important as its popularity grows.
One way that we can integrate the two systems is email – both the ability to send email from the Portal through Office365, as well as let users access their Office365 mailbox from within your portal.
As it turns out, this is fairly easy to do! So, let’s dive in…
For the purposes of this article, we are going to look at configuring an out-of-the-box instance of WebCenter Portal v11.1.1.8.0 to a hosted instance of Microsoft Office365 for Business. Other versions of WCP and WCPF applications have a similar configuration process.
Gather Office365 Settings
The first thing you’ll want to do is gather all of the various configuration parameters needed to connect to your hosted Office365 environment. Since WCP uses the standard IMAP and SMTP protocols to access mailboxes and send mail (respectively), all we need are the IMAP and SMTP values from Office365. To get this, simply log into your Office365 instance and go to your mailbox (“Outlook” tab). Select the ‘gear’ icon at the top right (next to your name), then the Options menu item.
This will display your “my account” page. Scroll all the way down to the bottom of that page, and you should see a link that says “Settings for POP or IMAP access…”. Click that link, and you will be rewarded with a popup page that lists the information we need.
Leave this window open, or write down the information in the IMAP and SMTP sections, as we will need this in a bit.
Next, let’s work on the administrative settings in WCP.
WebCenter Portal Configuration
In your favorite web browser, open up the Enterprise Manager console for Fusion Middleware Control in the WebLogic domain that your WCP instance is in. (This is usually found at https://<WebLogicAdminServer>:7001/em or similar.) In the left-hand navigation tree, navigate to WebCenter / Portal / Spaces / WebCenter Portal.
Right-click on the WebCenter Portal entry in the left-hand nav, or right-click on the WebCenter Portal menu just beneath the title of the main content window. Then, select Settings, then Service Configuration.
You will now see the WebCenter Portal Service Configuration screen. In the left-hand box (“Service Name”) is a list of services in WCP that can be configured. One of those is “Mail Server”, which is the one we want. Click on that one, and you will see a list of configured mail servers in the right-hand box labelled “Manage Mail Server Connections”.
Create New Mail Server Connection
Click the Add button to add a new connection.
Now, using the values from your Office365 account (that you wrote down above, or from the window that you left open), fill in the values in the first two sections. Below are the values I used based on my Office365 settings:
Setting
Description
Example Value
Connection Name
This is a unique name to give to this mail server connection. The user doesn’t see this, so it can be anything that makes sense to you.
Office_365
Active Connection
If you have multiple mail server connections, one of them should be marked as the “active connection”. This means it is the default mail server connection used.
<checked>
IMAP Host
The name of the IMAP server to use to retrieve a user’s mail.
outlook.office365.com
IMAP Port
The corresponding port for the IMAP server.
993
IMAP Secured
If checked, SSL will be used to connect to the IMAP server. This is strongly recommended if your server supports (or requires it). Office365 requires it.
<checked>
SMTP Host
The servername for the SMTP server. This is used when sending mail.
smtp.office365.com
SMTP Port
The port on the SMTP Host that is used for SMTP traffic.
587
SMTP Secured
If checked, will use SSL/TLS to connect to the SMTP server. Again, strongly recommended if your SMTP server supports or requires it. (Office365 does.)
<checked>
Associated External Application
The External Application to use to retrieve the user credentials to access their mail. (See below).
Create New…
Create New External Application
When you select “Create New…” for the Associate External Application, a new screen will display for you to create the new External Application. An External Application is a way to define a set of credentials and parameters needed to log in a Portal user to another (external) application. For example, to log into Office365 and retrieve a user’s email, the Portal will need the user’s Office365 user name and password. It will then use that username and password to authenticate to Office365 and retrieve their mail. Each user has a different set of credentials, of course, so we need a way to let the user enter their individual credentials. That is what the External Application object is for (among other things).
For our purposes, all we need is the basic External Application object. In the Add New External Application for Mail Connection screen, fill in the following fields:
Setting
Description
Example Value
Application Name
This is the name that this External Application will be referred to programmatically.
Office365
Display Name
This is the name that the user will see. So, we want something that is descriptive to the user (so they know which set of credentials to enter).
Office365
That’s all you need! However, there are some optional fields you can add that may be of value. In the External Application object, under Additional Login Fields, you can add the following values. These will then be shown to the user, and they can optionally enter in values to use for their mail. All three should have the “Display to User” checkbox checked, which allows the user to see and update their individual values for the parameter. Additionally, leave the “Value” blank for all of them so there is no default value.
Name
Description
mail.user.emailAddress
Specifies the email address to use when sending from the user. If blank, will use the user’s email address as defined in Office365. Note that to send from a different email address, the user must be granted permissions to send from that email address in Office365.
mail.user.displayName
The “friendly” name to use as the From address for sent emails. This could be the person’s name (e.g. “John Doe”), for example. If left blank, their email address will show as the “From” address.
mail.user.replyToAddress
What email address to send replies to. By default, replies are sent to the email address the original email came from. But, if you want email replies to go somewhere else, the user can specify that for this parameter.
Click OK to save the new External Application, and you will be returned to the Mail Server Connection screen.
Everything should be filled in that we need, so click the Test button (top right) to test your entries. Note that the test only checks to see if it can connect to the IMAP host and port. It doesn’t verify that there is actually an IMAP server at that host and port, not does it test anything about the SMTP settings! (So, use the Test functionality with a grain of salt.)
Once you are confident your values are correct, click OK to save the new Mail Server connection. You then need to restart WCP to have your changes take effect, and we will be done with the “back-end” configuration. Do that now. I’ll wait…
Set Your User Preferences
Welcome back!
Now, we need to configure the user side of things. Specifically, we need to store our Office365 credentials in WCP so that it can access Office365 on our behalf. We will need to do this for each user of WCP.
Log in to WCP and navigate to the Preferences page. (If you are using the out-of-the-box skin, there should be a “Preferences” link near the top right of the page.) Click on the My Accounts link on the left to go to that panel.
This panel lists all of the External Applications in a list. (In my screenshot, you can see “GMail Credentials” and “Office 365”.) For each application, you can enter a User Name and Password, plus any optional parameters that were defined. As you can see, for the “Office 365” application, the user can enter their Office365 username and password. In addition, they can optionally enter values for the 3 parameters we created – mail.user.emailAddress, mail.user.displayName, and mail.user.replyToAddress.
Enter your Office365 username and password (and optionally, any values for the other 3 parameters), and click Apply to save your credentials.
Then, click on the “Mail” tab in the left column to go to the “Preferences – Mail” page. On this page, you can select which Mail Server Connection to use. The default (“No Preference”) will use whichever Mail Server Connection is marked as the “active” one, but the user can override that here, if desired. (If you only have one Mail Server Connection defined, then this is moot.)
The second setting – Default Mail Client for Send Mail – however, is one that you definitely want to think about.
There are two options presented – “Local Mail Client” and “WebCenter Portal’s Mail Service”. These are only used when the user is attempting to send an email from the Portal. With the first option (“Local Mail Client”, which is also the default), when the user clicks a link to send an email, it will attempt to use their native mail client (e.g. Outlook, Thunderbird) to create the email. (It does this with a normal mailto: link.)
The other option (“WebCenter Portal’s Mail Service”) instead will display a “compose” form when the user clicks to send an email. When the user submits the form, the email message will be sent from the Portal using the selected Mail Server Connection. In other words, the Portal will attempt to connect to the Mail Server and send the email on behalf of the user. For our testing, then, select “WebCenter Portal’s Mail Service.”
Now, log out of the Portal and back in. (For some reason, the changes you make in Preferences are not always reflected immediately. Logging out and back in forces the changes to take effect.)
Let’s Test It!
One you have logged back in, you’ll want to do a quick test to see if you can send/receive email from your portal. The easiest way to do this is to create a new page in your Home Portal (or any other portal you have the ability to create a page in). On that page, drop the Mail component. (This can be found in the Social and Communication folder in the out-of-the-box- resource catalog.) Save and Close the page, and you should see a list of mail from your inbox! This successfully tests the IMAP connection to Office365.
To test the sending part (via SMTP), click the icon near the top-right of the Mail component to display the Compose dialog (see example below). Enter in a recipient, subject, and body, then click Send to send the email. If all goes well, the Compose dialog will close and your message should be delivered. If there are any problems, you will get a popup dialog with the error. Note that on the Compose screen you can click the Options drop-down and turn on the display of CC, BCC, and Reply-To fields.
Mail integration permeates WCP. You can send an email message with a link to just about any object in WCP. For example, let’s say you are reading a blog post, and think a coworker of yours might be interested in it. One way you can let them know about it is to send them an email. From the blog post, select “Send Mail” from the File menu.
You will get the Compose screen (below), with details about the blog post, and a link to both the blog entry and the containing portal already inserted into the body of the message. Simply enter an email address and click Send, and your friend will get the email with the links to view the blog post.
I hope that this has given you a good idea on one way to integrate WebCenter Portal (and WebCenter Portal: Framework applications) with Office365 email. For more information about how TekStream can help you integrate your applications, please visit our other Enterprise Portal Blogs, contact us at [email protected], or request to speak with an Oracle WebCenter Expert by filling out the form below.
Nothing worth doing is painless. TekStream’s Pete Chen guides you through the pitfalls and challenges of your Oracle WebCenter Content 11.1.1.8 on Windows Server 2012.
Before starting a new installation of Oracle WebCenter Content 11.1.1.8, I checked the certification matrix to see if this version was compatible with Windows Server 2012. The matrix listed 11.1.1.7+ as certified for 2012 installations, so I continued with the installation by gathering the appropriate installation files. The initial installation package included:
Oracle WebLogic Server 10.3.6
Java JDK 1.7
Oracle WebCenter Content 11.1.1.8
Oracle Repository Creation Utility 11.1.1.8
The installation environment used 2 servers. One server would serve as the Universal Content Manager (UCM) instance. The other server would serve as the Inbound Refinery (IBR) server. Server specs were:
Windows Server 2012 Datacenter
VMWare Host
2 x 60GB HD
16GB RAM
The Problem
The installation process gave no indication of errors. I disabled 8dot3 naming, installed Java JDK, and extracted all the archived installation files in to the local C:Temp directory. After setting up the domain, I went to start up WebLogic Server (WLS). Everything appeared to start up properly, and WLS was in a RUNNING state. I used Admin Console to start up the UCM and IBR server. Both appeared to be in RUNNING state on the Admin Console. I browsed to pages for UCM and IBR, and was shocked to find 404 errors for both sites. Something had gone wrong, and looking in the log files revealed how bad things were.
####<Dec 16, 2013 11:29:30 AM CST> <Error> <ServletContext-> <USDVICMSWEB01> <UCM_server1> <[ACTIVE] ExecuteThread: ’0′ for queue: ‘weblogic.kernel.Default (self-tuning)’> <<anonymous>> <> <0000KBwT7AfCom85nj8DyZ1IfnX^000003> <1387214970008> <BEA-000000> <Could not start server of type ‘server’ at default relative web root URL ‘cs’.
I double checked the certification matrix. Everything looked right. I saw in the logs that the relative webroot /cs could not be started because a folder was not created. Some of my colleagues suggested it was a permissions issue, so I went to create the folder manually. If I can create the folder, there shouldn’t be a problem with permissions. I successfully created the /ucm/cs/config/private folder. I tried restarting the UCM server manually, through command prompt. There were still a few errors, but it resulted in RUNNING state. I was then able to access the UCM web page. The errors didn’t feel right, and I didn’t want to continue, knowing there were already problems with the installation.
Here are some of the steps taken to try and resolve the NativeOSUtilsNotLoaded problem:
Install UCM 11.1.1.7 on 2012. The installation was successful without any changes
The Solution
Ultimately, the problem came down to the use of Visual C++ Redistributable packages. The default version installed was the 2008 package for x86 and x64. I upgraded the packages to the 2012 version, again in x86 and x64. The problem was still there. A colleague of mine suggested I give the program what it wants, which seemed to point to the 2005, SP1 edition for both x86 and x64. I got rid of all other versions Visual C++ Redistributable package SP1 for both x86 and x64. After reboot, I tried again. IT WORKED! I was able to complete the installation.
Here is the error message which led my colleague to look further into Visual C++ 2005 SP1.
java.lang.UnsatisfiedLinkError: E:OracleMiddlewareOracle_ECM1ucmidccomponentsNativeOsUtilslibwindows-amd647.2.1.1JniNativeOsUtils.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
Since the application failed to start, we looked at the Event Viewer, and found the problem on Windows.
Upon searching for version 8.0.50727.762, the first returned result was for Visual C++ 2005 Redistributable SP1.
The installation of UCM 11.1.1.8 required a very specific Visual C++ to run properly, and it was not specified in any installation guides.
For years now, there has been a strong end-user appeal for the “ease of use” of Microsoft’s SharePoint. It’s all about perception and appearances; SharePoint seems to have it all (the actuality of that is for another topic). Integration into Microsoft Office, web-enabled, workflows, tagging, revisions…..okay maybe Microsoft isn’t the only company out there with a product that provides all the core functionality for content management, but they make it look so easy. FileNet, Documentum, Oracle WCC—the list goes on, all meet the core functionality of strong document and content management applications. However, most technologists recognize that different applications have their strengths and weaknesses, and SharePoint, from an enterprise level, has its fair share of issues. “But it looks so easy!!” There has always been a race to be the best, grab the most customers, and be first in everyone’s minds; many will contend that SharePoint had been leading that race based on their pretty face and Oracle was neck-and-neck with them based on WebCenter’s pure muscle. The ultimate winner will have the strength for the long haul and the looks to keep the consumer’s interest. Oracle’s new User Interface for WebCenter Content has moved it from being the Sir Charles Branson of the content management world (strong and characteristic, but with a face only a mother can love) to Hugh Jackman (strong, butt-kicking superhero, with looks that drive my wife crazy).
As a predominately Oracle-focused consultant, I’ve always had to make excuses about Oracle’s primary user interface. I would say things like “it was created by developers not artists, but it’s solid and works” or “Granted it’s not the prettiest thing in the world, but neither is my car and it’s never had a problem and gets the job done.” The downside to these statements is that users have increased their levels of expectations over the last few years of increasing functionality and eye-catching UIs for all things web-based. Oracle finally caught on to the fact after years of competing with Microsoft for the small-to-midsize company market and for enterprise intranets and corporate information stores and as part of the new Service Pack 7 (also known as dot 8) release of WebCenter Content, a new streamlined and intuitive interface has been released.
Clean and uncluttered interface, drag and drop to the UI, Favorites, intuitive searching, Libraries, and user-controlled security put Oracle at the head of the pack again. Oracle is kicking in the afterburners with the new iOS (iPhones and iPads) and Android app. Finally, something that Microsoft doesn’t offer out-of-the-box. Oracle will be providing WebCenter Content apps directly for iOS and Android, while SharePoint users have to use third-party vendor apps to interact with their repositories (most often requiring companies to move to Office 365).
Oracle is learning and adapting to their customers wants and needs, and I think it will pay off in a big way. The new dot 8 release promises to deliver a user experience that compares and even beats Microsoft’s, and added features like the mobile apps, drag and drop UI, and overall product functionality enhancements ensure that they will keep their lead.
Still have questions? That’s what we’re here for. Send us your information and we’ll have a technical expert contact you to discuss your challenges and how to solve them.
There is nothing like a smooth clean install. You approach the terminal with grit and determination, fly through the installation, and within a blink of an eye, all managed servers are RUNNING! Then… you wake up. *poof* Reality sets in, and that smooth paved road appears to have some twists and bumps. Enterprise level software generally comes with tons of options. If you don’t pay attention to the installation, or don’t do your research prior, you’ll find yourself in uncharted lands without a guide to help you.
Most Oracle WebCenter Content installations are fairly straight forward, so it’s especially frustrating when something goes wrong. It’s supposed to be simple and straightforward. Why isn’t it working? Well, here are a couple of pitfalls to help you to better navigate all of the twists and turns you might encounter!
Do not install 32-bit WebLogic Server (WLS) on 64-bit Universal Content Management (UCM). This configuration is not supported by Oracle. Although you may not notice a problem when you go through the installation, any future request for support will probably result in a friendly “Sorry, but that’s not supported.” Better safe than sorry, right? Remember to also install WLS with a 64-bit version of Java.
The Repository Creation Utility (RCU) version has to match the WebCenter Content (WCC, formerly known as UCM) version. It’s all about the schema! As new versions of WCC and RCU are released, they don’t clearly advertise the changes made to the schema. It could be something as large as a new column added to a table, or it could be something as small as the field length changing by one. Although it doesn’t seem like a problem during installation (the connection test results in a happy green check), it may come back to haunt you the first time you try to check-in content, and get a database error.
When installing WCC on a Linux platform, remember to set your limit.conf file. This is where you set the hard limit and soft limit of a resource on your system. Set your number of open files (nofiles) to something manageable, like 4096. Without setting this, the default is substantially lower than 4096. Make sure this is set properly so your system can handle all the files needed to be opened by your Oracle applications.
If you are using X-terminal to perform a remote installation through Putty, remember to enable the X11 features in Putty. It’s very easy to overlook this. You open up a new putty session, and dive into the environment. After swimming around, you go to run a program. You wait for the program to come up, but get feedback about “not able to display” instead. Before calling up your local help desk to yell at them for not installing Xwindows, check to make sure your X11 is turned on in Putty! It may also be a good time to check and see if your emulator is running. Don’t fall victim to an ID-10t error!
When installing SOA, set DB processes to 200 BEFORE running RCU. Don’t make the changes after running RCU, and certainly not during, but before. These changes will be applied to the repository schemas created, and will save you from a headache later down the road.
When creating the repository, remember to write down and save the password! It has happened to me, it’s happened to others. You finish an install, and close that chapter of your life. But like a good zombie movie, the environment rears its ugly head, and you need that password to check your DB connection. That’s when it occurs to you… “I have no Earthly idea what it is!!!” You scramble to find any scrap of paper relating to that time period, but sadly none contains that golden password.
Know whether you are installing for development or for production. A production system is more secure, while a development system is more relaxed with security and protocol. Knowing the difference, and adding the password file, could save you some time!
Map out your install before you do it. Ports, IP’s, server names, clusters, machines, Database access information, and password requirements are great to have handy so you don’t have to search for it, or worse, create something on the fly. Taking time before the installation to research and plan will help minimize mistakes. Have all your stuff written down before the install so you can spend more time on the installation steps.
When installing on Linux, pay attention when using command lines. More specifically, know when you are using Root, and when to disengage. All you need to do is run startWebLogic.sh one time as root, and suddenly all the folders permissions change! Your WCC won’t find the files it needs. The Inbound Refinery (IBR) managed server runs around in a circle. Spaces locks itself in a pantry. SOA goes AWOL! There are only two times in a standard installation when you’ll need to run a command as root, when you run RCU and when you create the central inventory during the WCC code install.
Installing on Windows, be sure to change 8dot3 first. This is Microsoft’s default naming convention. Files and folders generally are limited to eight characters, with a three character extension. As an example, we have file names like autoexec.bat, or config.sys. When you try to browse through your file system in command prompt, you’ll see that the folder “Program Files” ends up “PROGRA~1”. It’s eight characters, and fits neatly into that MS mold. Turning this off is required to use WCC. Files and folders exceed the eight-character limit. But why not just turn this feature off later? During the installation, configuration files are written with folder paths included. These folder paths use “MIDDLE~1” instead of “Middleware”, which may cause problems later on down the road. In one example, we had changed the 8dot3 much later in the process. When we tried to start up the servers, it failed because the service tried to write to a file, but could not find the file because it didn’t know that folder structure.
Slow down!! Typos magically appear when you rush through an install! It doesn’t matter how good you are, or how much experience you have, we are all capable of overlooking or forgetting a step. Why read a blog about common pitfalls only to overlook those exact pitfalls? You’ll end up kicking yourself twice… once for messing up, and once for not listening. Hope these little tips help! I know they certainly would have come in handy for me in the past!
Looking for more help with your installs? TekStream is positioned to help. Complete this form and an installation expert will contact you immediately.