Showing posts with label UCM. Show all posts
Showing posts with label UCM. Show all posts

Saturday, August 23, 2014

Oracle Webcenter Content: Could not start up IDC server deployment

Sometimes while starting the webcenter content server (UCM) in cluster mode we are getting the following error:

javax.servlet.ServletException: Could not start up IDC server deployment.
at idcservlet.ServletUtils.initializeContentServer(ServletUtils.java:1253)
at idcservlet.ServletUtils.startAndConfigureServer(ServletUtils.java:542)
at idcservlet.ServletUtils.initializeAllServers(ServletUtils.java:455)
at idcservlet.IdcFilter.initContentServer(IdcFilter.java:132)
at idcservlet.IdcFilter.init(IdcFilter.java:124)
Caused By: java.io.IOException: UCM Server failed to initialize inside its servlet environment.
at intradoc.idcwls.IdcIntegrateWrapper.initializeServer(IdcIntegrateWrapper.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Caused By: intradoc.common.ServiceException: 
at intradoc.server.IdcServerManager.init(IdcServerManager.java:224)
at intradoc.idcwls.IdcServletRequestUtils.initializeServer(IdcServletRequestUtils.java:624)
at intradoc.idcwls.IdcServletRequestUtils.initializeServer(IdcServletRequestUtils.java:455)
at intradoc.idcwls.IdcIntegrateWrapper.initializeServer(IdcIntegrateWrapper.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused By: java.lang.NullPointerException
at intradoc.data.ResultSetUtils.getIndexMustExist(ResultSetUtils.java:445)
at intradoc.server.utils.ComponentInstallHistory.compareAndUpdateComponents(ComponentInstallHistory.java:139)
at intradoc.server.IdcInstallInfo.buildComponentList(IdcInstallInfo.java:874)
at intradoc.server.IdcSystemLoader.finishInit(IdcSystemLoader.java:354)
at intradoc.server.IdcSystemLoader.init(IdcSystemLoader.java:336)
at intradoc.server.IdcServerManager.init(IdcServerManager.java:120)
at intradoc.idcwls.IdcServletRequestUtils.initializeServer(IdcServletRequestUtils.java:624)


This error occurs due to missing idccs_components.hda file in the shared file directory or sometimes this file got corrupted and ucm server is not able to start.

Solution:
To solve this issue there is idccs_components.hda.old file in the same directory i.e. cs/data/components/ now just rename that file and restart the webcenter content server.

Note: This is bug 13877118 and already raised in oracle support. For more information about this bug and fixes please follow this oracle support document Doc ID 1512338.1

Thursday, August 21, 2014

Oracle Webcenter Content: Using page debugger to customize the ucm instance

As you know that Oracle Webcenter Content formerly known as Oracle UCM is content management system which provides many out of box functionality to manage the content of an organization. But some times it happens that you required some features or functionality which is not provided by the product and you need to customize it. Like you need to alter the layout or look and feel, or need to change the functionality of the existing feature however in every case you need to change the source code of the applications or product.
Here in this blog post I am not going to tell you how to customize or add new features or functionality, but I will tell you about debugger that webcenter content provides which may help you in customizing you content server instance.
Well to customize the page it is very important to locate the source code of that feature or component.
For example: let say we need to add a column at folder level (refer my post add column at folder level in ucm)
Here are the steps:

  1. First we need to identify the page to modify the source code.
  2. Now for this you can use the page debugger in ucm to identify the page. Although it is time consuming activity but you have to deal with that (there may be other possibilities but I did like this). To use the debugger you need to append the &IsPageDebug=1 to the url of the page.
  3. In the example I have shown the tender folder page, so right click and copy the link address of this folder and append &IsPageDebug=1 i.e. http://x.x.x.x:16200/cs/idcplg?IdcService=COLLECTION_DISPLAY&hasCollectionID=true&dCollectionID=875446151231000004&&IsPageDebug=1
  4. You will see the page debugger tab at the right-bottom of the page.
  5. On the Debug tab click on "idocscript trace", and then try to look for the page you need to modify. Well I have search for body in that page to locate the page to be modified because generally the content is placed in the body element of a html page and there I got the folders_list_resource.htm page.
  6. Rest you can read it in the blog post (add column at folder level in ucm).

Other Debugging Options

In ucm there are other debugging options like

  • IsJava: Display the local data of a content server page
  • IsSoap: Display the local SOAP data of a content server page
  • For more debugging option go to http://docs.oracle.com/cd/E17904_01/doc.1111/e10726/c07_config_u_and_t.htm#BHAIFFGA

Oracle Webcenter Content: Adding column at folder level in UCM

I was working on one of the requirement asked by client that they need Content ID column at folder level i.e when user move to one folder then Content ID of the content present in that folder should be visible.

What is happening :  see the below figure in which there is no column for Content ID.




What is required :  In the below figure Content ID column is added


Solution:

Well this is not the out of box feature in oracle webcenter content, you have to think to find the source code and edit the source code  manually to achieve this funcationality.
  1. I have found the page i.e. folders_list_resource.htm which contains source code of folder content view shown above (using the debug view in oracle webcenter content).
  2. This file you will find in the folder %MW_HOME%/Oracle_ECM1/ucm/idc/components/Folders_g/resources
  3. In the source code go to line number 75 (in my case) you will find a code some thing like this <$rsMakeFromString("ListFields","dBindingName,dFileSize,dInDate,dDocAuthor","name")$>
  4. In this line add "dDocName"  i.e. <$rsMakeFromString("ListFields","dDocName,dBindingName,dFileSize,dInDate,dDocAuthor","name")$>
  5. Save the file and put back into folder (path specified in Step2).
  6. Refresh the page.

Note: I have done this customization in Oracle UCM 11.1.1.5.0, If there is something different in other version please share.

Thursday, August 14, 2014

Oracle Webcenter Content: Displaying only release content to the user

In Webcenter content when you check in the content, put the user in the user access list or roles in the roles access list and then send the content into workflow then by default user/roles that you have provided at the time of check-in can access the content before the content is approved by the approver. You can restrict this default behaviour but adding the variable in the general configuration of the wcc server i.e.

CollectionReleasedOnly=true

Steps to add the variable.:

  1. In the left navigation under Administration --> AdminServer.
  2. In the component manager window, go to General Configuration and add the CollectionReleasedOnly=true in Additional variable text box.
  3. Save the configuration.
  4. Restart the webcenter content server.

Webcenter Content: Export/Import of Content Server Configuration using Configuration Migration Utility (CMU)

Configuration Migration Utility (CMU) is a useful tool in webcenter content to migrate the wcc configuration from one environment to another. The CMU is installed by default when you installed the webcenter content server or if it is not installed you can install it from the advance component manager.
Configuration migration is a error prone process so while migrating if some components or configuration failed so just mark that component and later on create the configuration manually on to that server. Also it is recommended that if there is a lot of content server configuration so instead of creating one bundle you can go for multiple bundles to complete the configuration migration successful.

Export of Content Server Configuration:
  1. In the left navigation go to Administration -> Config Migration Admin --> configuration templates
  2. In the action menu, select Create New Template.
  3. Under child section, select the content server sections.
  4. Now under the content server sections, select the under child section what you want to migrate.
  5. Now let say we have to migrate content metadata, then click on the content metadata link under Items for section select items to be migrated or you can select all from the Action menu.
  6. From the action menu click save to save the configuration.
  7. In the Add Export Rule window give the name of the template and description of the template.
  8. Repeat step 5 to add more content migration items.
  9. After adding all the items, export the bundle from Action menu.
  10. Copy the Bundle from the server i.e. <CS path>/cmu/<Instance>/bundles/<bundle name>


Import of Content Server Configuration:
  1. In the left navigation go to Administration -> Config Migration Admin --> Upload Bundle
  2. Browse the bundle file, select forced overwrite and click on upload.
  3. In the Action menu click on Import.

Tuesday, March 11, 2014

Webcenter Content: Java update_51 Applet Security warning : Your security setting have blocked an untrusted application from running

I have updated my java to jdk 1.7.0 update 51, while accessing the java applets I am getting the following error:

 Your security setting have blocked an untrusted application from running




Solution

  1. Go to control panel, click on Java.
  2. Click on Security tab.
  3. set the security level medium.
  4. Click on Edit Site List... and add the url i.e http://10.88.12.242
  5. Click Apply and Ok to save changes made to the java control panel.



Thursday, January 2, 2014

Oracle Webcenter Content Error: Runtime error: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.timezone"."write").

I was working on a Oracle Webcenter Contetnt (Oracle UCM) 11.1.1.5.0 version. After the UCM is installed and configured successfully I open the the UCM console (http://x.x.x.x:16200/cs) in the browser.
While opening the admin applet page the browser prompt me to update the java plugin to version java 1.7.0_45. After upgrading I was not able to open the admin applets and getting the following error :

Unable to start application UserAdmin. Failed to initialize. Runtime error: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.timezone"."write").

Solution

you can try the following workaround for this issue:
  1. Navigate to the <JRE_install_location>/lib/security folder For example: C:\Program Files (x86)\Java\jre7\lib\security
  2. Open the java.policy file for editing
  3. In the list of permissions, add the following line: permission java.util.PropertyPermission "user.timezone", "write";
  4. Save and exit the file
  5. Restart the windows.
  6. Verify that you're now able to open the Admin applets.
For Oracle Webcenter Content 11.1.1.6.0 and 11.1.1.7.0, there are patches that you can get it from oracle support. For Oracle Webcenter Content 11.1.1.8.0 this issue is already resolved.

Saturday, December 14, 2013

Oracle Webcenter Content 11g Clustering (High Availability) using a shared storage

This blog post is  about the clustering of Oracle Webcenter Content11g using the shared file system on windows. Well one thing which makes Webcenter Content installation unique from other middleware installation is the use of shared file system. Shared content mainly consist of the information related to the Content Server Instances configuration, user data profiles, data or content uploaded to the Oracle Webcenter Content, weblayout or GUI of a Webcenter Content page as these information are important and must be in sync thats why these are kept on shared file system.

P-requisite
  1. Two physical machines i.e. Machine1 and Machine2.
  2. All the middleware and database setups and installers.
  3. On Machine1 we have Adminserver and UCMServer1.
  4. On Machine2 we have UCMServer2.
  5. Adminserver is not the part of cluster.
Steps for Installation and Configuration
  1. Supported version of JAVA must be installed on both the machine.
  2. Supported database must be installed. Check into the Oracle Fusion Middleware Certification Matrix for the supported database before installation.
  3. Run the supported RCU, generate all the required Oracle Webcenter Content tablespaces.
  4. Ensure that you have configured the shared storage on both the WCC nodes.
  5. Install weblogic on Machine1: 
    • Run the installer, Java -D64 -jar wls103N_generic.jar (N is the version number you are using)
    • Click next, choose the middleware directory eg. C:/oracle/middleware/
    • Click Next, register for  security updates (optional).
    • Click Next, choose install type (optional).
    • Click Next, choose jdk as desired.
    • Click Next, choose product installation directory.
    • Click Next, Install the product. 
  6. Install webcenter content on Machine1: 
    • Run the installer, go to the WCC installable folder run the setup in disk1 folder by executing the command setup.exe -jreLoc <path to jdk dir> eg. C:\Java\jdk1.6.0_30
    • Click Next, Install software updates (optional)
    • Click Next, prequisite checks.
    • Click Next, specify the middleware home directory for the installation and set the wcc directory to Oracle_ECM1
    • Click Next, weblogic directory auto selected.
    • Click Next, Install the product and finally click finish when installation completes.
  7. Configure WCC domain on Machine1: 
    • Run the config.cmd, go to oracle/middleware/Oracle_ECM1/common/bin folder.
    • Create new weblogic domain, click next.
    • Select WCC components, i.e. Oracle Universal Content Management - Content Server- 11.x.x.x[ Oracle_ECM1]. The other two option Oracle enterprise manager and Oracle JRF are auto selected. Click Next.
    • Enter the name of the domain and location of domain. Click Next.
    • Configure administrator username and password. Click Next.
    • Configure server start mode and jdk. Click Next.
    • Configure JDBC component schema, i.e. UCM_Schema. Click Next.
    • Test JDBC component schema. Click Next.
    • Select option configuration: Administration Server and Managed Server, Clusters and Machines.
    • Configure Administration Server :
      • Name: Adminserver (default)
      • Listen Address: <IP Address>
      • Listen Port: <port>, 7001 (default).
      • SSL Listen Port: N/A(default)
      • SSL enabled: unchecked (default).
    • Configure Managed Server:
      • Name: UCMServer1
      • Listen Address: <IP Address>
      • Listen Port: <port>, 16200 (default).
      • SSL Listen Port: N/A(default)
      • SSL enabled: unchecked (default).
      • Add one more row to create second managed server.
      • Name: UCMServer2
      • Listen Address: <IP Address>
      • Listen Port: <port>, 16200 (default).
      • SSL Listen Port: N/A(default)
      • SSL enabled: unchecked (default).
    • Configure Clusters:
      • Click on Add+
      • Name: UCM_Cluster
      • Cluster Messaging Mode: Unicast(default)
      • Multicast Address: N/A(default)
      • Multicast Port: N/A(default)
      • Cluster Address: <blank> (default).
    •  Assign both servers to the cluster.
    • Configure Machines:
      • Name: UCMMachine1
      • Node Manager Listen Address: <ip address>.
      • Node Manager Listen Port: 5556 (default).
      • Click on Add+
      • Name: UCMMachine2
      • Node Manager Listen Address: <ip address of second machine>.
      • Node Manager Listen Port: 5556 (default).
      • Click Next.
    • Add servers to the machines,
      •  add Adminserver and Managed server1 to the UCMMachine1 
      • add Managed server2 to the UCMMachine2.
    • Click Next to create a domain.
  8. Start the Adminserver on UCMMachine1, by executing C:/Oracle/Middleware/user_projects/domains/ecm_domain/bin/startWeblogic.cmd.
  9. Now the Configure and start the node manager on UCMMachine1.
  10. Open the adminstration console, i.e. http://IP:Port/console.
  11. Disable the Host Name Verification:
    • Go to Enviornment-->servers--->Adminserver-->SSL-->Advanced and set the host name verification value to none.
    •  Go to Enviornment-->servers--->ManagedServer1-->SSL-->Advanced and set the host name verification value to none.
    • Go to Enviornment-->servers--->ManagedServer2-->SSL-->Advanced and set the host name verification value to none.
  12. Restart the Adminserver.
  13. Start the UCMServer1. Open the configuration page i.e. http://IP:Port/cs.
  14. Set the WCC cluster information:
    • Cluster Node Identifier: UCMServer1 (name of the node's managed server -non editable)
    • Content Server Instance Folder: \\\\<IP-Adress>\\ucmshare/domain/ecmdomain/cs (this must be path to the shared/remote filesystem)
    • Native File Repository Location: \\\\<IP-Adress>\\ucmshare/domain/ecmdomain/cs/vault/ (this must be path to the shared/remote filesystem)
    •  Weblayout Folder: \\\\<IP-Adress>\\ucmshare/domain/ecmdomain/cs/weblayout/(this must be path to the shared/remote filesystem)
    • User Profile Folder:  \\\\<IP-Adress>\\ucmshare/domain/ecmdomain/cs/data/users/profiles/ (this must be path to the shared/remote filesystem, also this option shown for WCC version 11.1.1.6.0 or later)
    • Content Server URL Prefix: /cs/ (non -editable, cs is default you can set any value)
    • Is new Content Server Instance: Checked.
    • Server Socket Port: 4444 (for RIDC access).
    • Incoming Socket Connectoin Address Security Filter:127.0.0.1|  (append each member cluster node's ip address using the pipe "|" as a delimiter) .
    • Web Server HTTP(s) Address: localhost (optional)
    • Web Address is HTTPS: unchecked (default)
    • Company Mail Server: smtp.mycompany.com (set as needed)
    • Administrator Email Address: admin@mycompany.com (set as needed).
    • Server Instance Name: UCMServer (non-editable)
    • Server Instance Label: UCMServer (set as needed)
    • Instance Description: UCMServer (set as needed)
    • Is Auto Number Enabled: Check (default).
    • Auto Number Prefix: WCC_ (change as needed)
    • FullText Search Option: none (set as needed)
    • External DataSource: <blank> (set as needed)
    • Submit.
  15. Restart the UCMServer1. Now UCM server on first cluster node is up and running.
  16. Install weblogic on Machine2: Follow the same steps as for installing the weblogic on Machine1.
  17. Install webcenter content on Machine2: Follow the same steps as for installing the webcenter content on Machine1.
  18. Configure Domain on Machine2:
    • Stop the Adminserver and UCMServer1.
    • Execute the pack command on Machine1 i.e. C:/oracle/middleware/Oracle_ECM1/common/bin/pack.cmd -managed=true -domain=C:/oracle/middleware/user_projects/domains/ecm_domain -template=ecm_template.jar -template_name="ecm domain"
    • A jar file named ecm_template.jar is created in the same directory i.e. C:/oracle/middleware/Oracle_ECM1/common/bin/.
    • Copy this template file in same folder on Machine2.
    • Run the unpack command on Machine2 i.e. C:/oracle/middleware/Oracle_ECM1/common/bin/unpack.cmd  -domain=C:/oracle/middleware/user_projects/domains/ecm_domain -template=ecm_template.jar.
  19.  Set up the node manager and start it on Machine2.
  20. Start Adminserver, UCMServer1 and UCMServer2.
  21. UCMServer2 automatically takes the information of WCC cluster information : from intradoc.cfg file that you have configured in step 14.
  22. Your UCM cluster is ready.
Note: I have followed the document 1359930.1 on oracle support.

    Friday, December 6, 2013

    UCM Clustering Error on Windows intradoc.common.ServiceException: !syFileUtilsUnableToCreateSpecifiedDir

    When you are Installing Webcenter Content on a cluster, one of the thing which is unique from other middleware installation is requirement of shared filed system. So when you configure webcenter content after installing and creating of domain, then you have to provide path of following shared directories:
    • Content Server Instance Folder
    • Native File Repository Location
    • Weblayout Folder 
    • User Profile Folder (11.1.1.6.0 or later)
    Now when you specified path of all the shared directories, while starting the second UCM Managed server you are facing the following issue:

    intradoc.common.ServiceException: !syFileUtilsUnableToCreateSpecifiedDir
    or
    Unable to write intradoc.cfg

    Error Symptoms
    In my case this error comes due to incorrect path syntax I have specified for the shared directory.

    For example:
    I have shared directory on server 192.168.1.12.
    the folder structure is H:\ucmshare\domain\ucm_domain\ucm_cluster\
    and i am specifying the directory path like this \\192.168.1.12\ucmshare\domain\ucm_domain\ucm_cluster\ and I am getting the above error.

    Solution

    I solved the above problem by specifying the following shared directory path:

    \\\\192.168.1.12\\ucmshare/domain/ucm_domain/ucm_cluster/

    Please remember
    • Here ucmshare is a shared folder on server 192.168.1.12.
    • Use of forward slash for specifying the directory, but to locate the server use backslash as used above.


    Wednesday, November 27, 2013

    Oracle Webcenter Content App for Android and iphone

    With the release of webcenter content 11.1.1.8.0, Oracle also releases the webcenter content app for Apple and Android devices.
    Installing the Oracle WebCenter Content Mobile app is just like installing other apps. Search for Oracle WebCenter Content in the App Store to find the app, then install it.
    After that open the application you are asked for user name and password. The address for the host computer is the url address where the Oracle WebCenter Content server is running. Just supply all the necessary information and you are ready to manage the content on your devices.

    for android : https://play.google.com/store/apps/details?id=com.oracle.webcenter.content.android


    Oracle WebCenter Content App Demonstration for iOS by TEAM Informatics