Install OHS and config it for WebCenter Spaces and WebCenter Content

By W.ZH Apr 2013

I met one issue of rendering the PDF from UCM by Spaces. Error 404- Not found issue for the PDF rendering in the web center Spaces. So solution is to install the OHS server, put it in front of the Spaces and UCM. Client just need to access the spaces from OHS server. Yannick has an article also show how to do this, but he is based on a cluster environment. Yannick setup steps http://www.yonaweb.be/enable_ucm_check_in_profiles_webcenter_ps3_0 .

My version is a dev environment, so no node manager and cluster setup.First to read the install guide for the fusion middle web tier. Here I suppose you have installed the DB and WLS and Webcenter Portal and Webcenter Content.

How to install the OHS

1.       As we want to link the OHS with the WLS domain, so we need to start the admin server of the Download the installer file (ofm_webtier_linux_11.1.1.6.0_64_disk1_1of1.zip)

2.       Unzip it

3.       Execute runInstaller under folder (DISK1/) with following command (runInstaller)

4.       Select Install & Configure option

5.       For the Dev environment , you can deselect Oracle WebCache, but we need to associtate to the web logic domain.

6.       Auto Configure Ports

7.       Just follow the step to the do it. All setting can use default.

8.       After install the, there will be a webtier is created under the domain, inside EM, so you can go to EM to start/stop the OHS. You also can use the opmnctl to start and stop the OHS, which is under the , <OHS INSTALL HOME>/instances/instance1/bin

opmnctl startproc process-type=OHS

opmnctl startproc ias-component=ohs1

opmnctl startall

opmnctl status

opmnctl stopproc process-type=OHS

opmnctl stopproc ias-component=ohs1

opmnctl restartproc process-type=OHS

opmnctl restartproc ias-component=ohs1

 

How to config OHS for the Spaces and also the WC Content(UCM)

1.     Please read the admin guide of the webcenter portal, “B Oracle HTTP Server Configuration for WebCenter” http://docs.oracle.com/cd/E21764_01/webcenter.1111/e12405/wcadm_app_http.htm

2.     It gives a good example to enable the OHS as the proxy to let you can access from a single entry of OHS to all the wencenter/content related URL.

3.     Open the module config file for the WLS module in the OHS,    <OHS INSTALL HOME>/instances/instance1 /config/OHS/ohs1/mod_wl_ohs.conf

Edit the file to like this:

# NOTE : This is a template to configure mod_weblogic.

 LoadModule weblogic_module   “${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so”

 # This empty block is needed to save mod_wl related configuration from EM to this file when changes are made at the Base Virtual Host Level

<IfModule weblogic_module>

#      WebLogicHost <WEBLOGIC_HOST>

#      WebLogicPort <WEBLOGIC_PORT>

#      Debug ON

#      WLLogFile /tmp/weblogic.log

#      MatchExpression *.jsp

 

      WebLogicHost localhost

      WebLogicPort 7001

</IfModule>

 

# WebCenter Spaces

  <Location /webcenter>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

  <Location /webcenterhelp>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

  <Location /rss>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

  <Location /rest>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8888

  </Location>

# Discussions

  <Location /owc_discussions>

    SetHandler weblogic-handler

    WeblogicHost discuss.example.com

    WeblogicPort 8890

  </Location>

# SES Search

  <Location /rsscrawl>

    SetHandler weblogic-handler

    WeblogicHost ses.examplet.com

    WeblogicPort 7777

  </Location>

  <Location /sesUserAuth>

    SetHandler weblogic-handler

    WeblogicHost ses.example.com

    WeblogicPort 7777

  </Location>

# Portlets

  <Location /portalTools>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8889

  </Location>

  <Location /wsrp-tools>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8889

  </Location>

# Personalization

  <Location /wcps>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8891

  </Location>

# Activity Graph

  <Location /activitygraph-engines>

    SetHandler weblogic-handler

    WeblogicHost webcenter.example.com

    WeblogicPort 8891

  </Location>

# UCM

#  Web server context root for Oracle Content Server

   <Location /cs>

     SetHandler weblogic-handler

     WeblogicHost ucm.example.com

     WeblogicPort 16200

  </Location>

#  Enables Oracle Content Server authentication

   <Location /adfAuthentication>

     SetHandler weblogic-handler

     WeblogicHost ucm.example.com 

     WeblogicPort 16200           

  </Location>

#  SAML SSO

   <Location /samlacs/acs>>

     SetHandler weblogic-handler

     WeblogicHost ucm.example.com

     WeblogicPort 16200

  </Location>

# BPEL Server

  <Location /workflow>

    SetHandler weblogic-handler

    WeblogicHost soa.example.com

    WeblogicPort 8001

  </Location>

# Virtual Hosts – Pagelet Producer

  <VirtualHost *:7777>

     ServerName pagelet-producer.example.com

       <Location />

         SetHandler weblogic-handler

         WeblogicHost webcenter.example.com

         WeblogicPort 8889

       </Location>

  </VirtualHost>

# Virtual Hosts – Sharepoint

  <VirtualHost *:7777>

     ServerName webtier-spaces.example.com

       <Location />

         SetHandler weblogic-handler

         WeblogicHost webcenter.example.com

         WeblogicPort 8888

       </Location>

       <Location /webcenter>

              Deny from all

       </Location>

       <Location /webcenterhelp>

             Deny from all

       </Location>

       <Location /rest>

             Deny from all

       </Location>

  </VirtualHost>

Delete unneeded part of your servers, Setup the correct host name and port in this config file. , such as for my case, most case is localhost.

Then we can save it, restart the OHS server to pick up config.

For Cluster envorment, setup will be different

After OHS working, we do not need to go to http://hostname:8888/webcenter to access the webcenter, and  to this settings, http://hostname:16200/cs no need either. We can directly go to thse two on the OHS:

http://hostname:7777/webcenter

http://hostname:7777/cs

and this will solve the PDF display issue in the Document exploer of the Spaces to access the UCM content!

A cluster env setup example:  Link

 

Advertisements

Oracle Distributed Document Capture 10gR3 install and basic setup

Oracle Distributed Document Capture 10gR3 install and basic run setup

By W.ZH Apr. 2013In Oracle Distributed Document Capture, users scan groups of pages in batches, using

settings saved by an administrator in a scan profile. A batch is divided into one or more

documents, and each document contains one or more pages

There is few doc article online give how to install the ODDC and how to start use it. This is just so poor product cared by somebody.

(ODC at this time is not available download from oracle website. maybe they are doing dev for a real 11g version.)


=============== How to install ODDC =========================================================

1. download the installer of ODDC

2. install ODDC on windows, before that you need to install the JAVA for it. please note that a 32bit java is need. then set the PATH for java bin folder in windows.

unzip and just run the setup to install it.

3. you need to read the install guide and do the basic configuration:

After install, what you can get is the several things:

    1. A program called “Oracle Document Capture”

2. A program called “Distributed Document Capture Server Configuration”

    3. A service in windows, registered as “Oracle Distributed Document Capture”
 

Here are things you need to config to make ODDC can be ready to work.

1. Go to “Oracle Document Capture”, to setup the  Batch folder / Commit folder / Capture Database config

for those folders, you can create a main folder to contain them as there are still more folders needed later.

for the Database config, refer to install guide, simple way is to use the access DB first.

if you can not find the “Capture.mdb” under the <installed Dir>, then you can go to C;\ProgramData\Oracle\Document Capture\, copy it out and save it to <installed Dir>, then use this version.(do not point to that runtime version!)

2. Go to  “Distributed Document Capture Server Configuration”,

set those folders, like,  Error Batch location  and  Log file location.

The “Set Client Access Folders” is the folder named “ClientAccess” under the <install dir>\WebPages\   , this folder is going to be the location that client upload their PAK files to web server.

The others just follow the install the guide.

    3. Configuring the IIS server,

You need to start a IIS server in your windows.

Enable the IIS manage console, and also setup the ASP and related filters, just follow the install guide to do these.

Then create the application pool and a website(or a virtual dir) in the IIS,

Deploy the <install dir>\WebPages  folder to your new created website.  we suppose the website can be     http://10.10.10.10:888/***  as there is no index.html in the folder, just point to any file to make sure your site runs.

    4. Give folder permission,
there is a user “IUSR” in the windows, work for IIS, you need give all the folders that we have setup in step 1,2,3, include <install dir> the read write permissions
    5. let us make a verfiy,
Try to access admin URL of ODDC.
http://10.10.10.10:888/WebCaptureAdmin.html

            If you can login and see the admin UI (by Java applet?), then your IIS works.   we call this UI as the “Scan Profile Admin UI” later.

To this step, you seems set all things done, but still not able to understand that how system work…. what a user unfriendly product!

=============== How to make the ODDC run with your UCM 11g ===================================================

1. Make your Webcenter Content (UCM) installed and runs.  After that a basic ODDC example will need you to config “File Cabinent” + “Scan Profile” + “Index/Pick List (Optional)” , then Client can access to server side to run.

2. Go to “Oracle Document Capture”,– admin to config the “File Cabinent”,
    under “Commit Profile”, you an set it to link to UCM server or just save the received file to a folder.
    for UCM, you can also create index fields and map them to the UCM internal metadata at there settings.

    you can also setup the pick-list or DB lookup for index at here. if you have index asked, then later when client try to scan/send file, it is asked in input/select the indexed data together with the doc.

3. After you have the “File Cabinent”, then you go to
“Scan Profile Admin UI”, to use this File Cabinent to create a scan profile. just follow the admin guide to do these.

4. Go the windows services, start the service of  “Oracle Distributed Document Capture”

5. finally you can go to Client to do a real scan and send/upload.
        find a 32bit IE browser, as the web page need to run Active X control. Open the client URL like this: http://10.10.10.10:888/WebCapture.asp
after login you can follow the user guide, select the scan profile and to do the scan, input index data and also the send, etc.
5. check out the batch folder, ClientAccess folder at the server side. File will upload to IIS as PAK file under the ClientAccess folder, then the capture service will unzip it and process it in the batch folder.
after that, as we have config the commit to UCM. you can go to UCM to search the new checked in files.
and in the UCM, check the metadata of your files, if you have set the field mapping, then your index data will be checked in with your file to the UCM too.

        And also read the log in the log folder.

Issue and solution:

1. when I set up the UCM 11g as the commit server, i get error of creating the Capture-UCM Implementation Object”

Solution: your windows do not have java installed, install the java and also the set the PATH.refer to https://forums.oracle.com/forums/thread.jspa?threadID=1091622

2. After i setup every thing, i can go to client to import and send file, and it shows successful, but i can not find the file checked in the UCM side.
Solution: you should check the folder of the ClientAccess first, if you find the PAK file inside here, but the batch folder has nothing happen.

then reason should be you do not start the service in the windows. just do it and can fix this issue.

Please note that this service is not mentioned in the admin and user guide , and in install guide not clear too…. What a mess of oracle docs!

Reference:

10gR3 ODDC install/admin and user guide

        http://www.youtube.com/watch?v=4PwfGLw44oo   a very good video – how to config the ODC (not ODDC)   file storage etc.

https://www.youtube.com/watch?v=uYC-O0t30gc    some help about the access db.

Notes:

Only ODC support the The PDF (Searchable) option uses Optical Character Recognition (OCR) when creating PDF documents that users can search.

Note that the hidden text (the OCR results) within PDF (Searchable) documents CANNOT be edited and may contain errors.

Instead of access DB, you want to use the oracle DB, then you have to install the OLE driver for oracle, which is not in the software by default…I do not know why they do not like oracle DB.

Error 404- Not found issue for the PDF rendering in the web center Spaces

By W.ZH Apr 2013
Issue: When you use “document viewer” to render a content from Content server(UCM) in the Webcenter Spaces page, try to open a PDF file from browser directly, you will just get an “Error 404- not found”. Not a embedded display PDF content.

Reason:

The reason behind this is that WC_Spaces server at port 8888 and UCM at port 16200 not running in the same port, so when the webcenter try to access /cs URL to show the PDF viewer from UCM on the browser, it getd the not found error.

So solution is to install the OHS server, put it in front of the Spaces and UCM. Client just need to access the spaces from OHS server single entry. Yannick has an article also show how to do this, but he is based on a cluster environment. http://www.yonaweb.be/enable_ucm_check_in_profiles_webcenter_ps3_0 .

 

Solution of mine is here. Install OHS and config it for WebCenter Spaces and Webcenter Content

 

Also see:

https://forums.oracle.com/forums/thread.jspa?threadID=2186655

https://forums.oracle.com/forums/thread.jspa?threadID=2308028

HTML and XHTML

Does document.write work in XHTML?

No. Because of the way XML is defined, it is not possible to do tricks like this, where markup is generated by scripting while the parser is still parsing the markup.

You can still achieve the same effects, but you have to do it by using the DOM to add and delete elements.\

 

Why not work

http://ln.hixie.ch/?start=1091626816&count=1

 

a solution to chagne base class

http://weston.ruter.net/projects/xhtml-document-write/

 

Good way to rebuild a class

 

http://ajax.phpmagazine.net/2006/11/xhtml_and_documentwrite_replac.html

John ‘s orig way using a method

http://ejohn.org/blog/xhtml-documentwrite-and-adsense

 

Basic things by hardcode

 

http://www.intertwingly.net/blog/2006/11/10/Thats-Not-Write

 

 

innerHTML null error in Xhtml

 

 

http://www.webdeveloper.com/forum/showthread.php?t=188189