Upgrade Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This document details several upgrade procedures for WebLogic Portal database and meta-data files. Table 5 -1 explains when each procedure is used.
Using Pointbase, moving Weblogic Portal 7.0 application to a Portal Compatibility Domain |
|
Not using Pointbase, moving Weblogic Portal 7.0 application to a Portal Compatibility Domain |
The following topics are included in this section:
To use your existing PointBase database with the PointBase version shipped with WebLogic 8.1, execute Step 1 below. In order to upgrade portions of Portal 7.0 to Portal 8.1, execute Steps 2 through 4. And, finally, if you are planning on running in Compatibility Mode, execute Step 5.
Note: None of these steps require that WebLogic Server be up and running, and, as a result, no XA JDBC driver should be used in connecting to the database.
With the release of WebLogic 8.1, a more current release of PointBase (4.4) is being shipped. PointBase rewrote their implementation of database triggers in PointBase 4.3. As a result of this, you must execute the following steps to upgrade your PointBase database for use in a 8.1 WebLogic domain.
startPBConsole db_settings.properties
file in the following directory: ..\bea81\weblogic81\portal\upgrade
and start the PointBase server and Pointbase console. Complete the following steps to make your 7.0 database schema 8.1 compliant:
Note: For PointBase you will see 2 errors (example below). These can be ignored, as they are generated while attempting to re-create the user WEBLOGIC:
SQL> Error Message: User WEBLOGIC already exists in the database.
The database is now upgraded to WebLogic Portal 8.1.
For PointBase; copy the ..\weblogic81\portal\upgrade\pointbase\*$1.wal and *.dbn files to your 8.1 domain. If your 8.1 domain is not wlpCompatability domain you must rename the *$1.wal and *.dbn files to match the PointBase database name used in your domain.
A number of files require the xsi:schemaLocation to be updated as a result of an upgrade to Xerces. These files typically reside in a directory similar to:
..\bea70\weblogic700\user-projects\portalDomain\beaApps\portalApp-project\application-sync
..\bea81\user_projects\applications\portalApp\META-INF\application-sync
..\bea81\user_projects\applications\portalApp\META-INF\data
From the ..\bea81\weblogic81\portal\upgrade directory, execute the script by typing the following at the command line:
UpgradeApplicationSyncFiles
c:\bea81\user_projects\applications\testApp\META-INF\
Review the corresponding log file ( upgradeApplicationSyncFiles.log ) to verify that the upgrade was successful. The same information is displayed to the console.
Upgrade .portal and .portlet files to make them using the script in the following directory:
From within the upgrade directory, (..\weblogic81\portal\upgrade) execute the script by typing the following at the command line:
upgradePortalFiles -i<source directory or source file> -o<output directory>
For example, Listing 5-1 illustrates the output if the sampleportal-project directory were copied into a directory called C:\old and a directory called C:\new were created for the transformed portal and portlet files.
Note: The upgradPortalFiles script looks recursively through all subfolders for .portal and .portlet files. None of the source files are changed.
Listing 5-1 Running the upgradePortalFiles Script
C:\weblogic81\portal\upgrade>upgradePortalFiles -iC:\old -oC:\new
C:\weblogic81\portal\upgrade>REM echo off
C:\weblogic81\portal\upgrade>C:/jdk141_03/bin/java -cp
C:/weblogic81/portal/lib/netuix/ejb/netuix_util.jar;C:/weblogic81/portal/lib/netuix/ejb/netuix.jar;C:/weblogic81/portal/lib/netuix/system/netuix_system.jar;C:/weblogic81/p13n/lib/p13n_system.jar;C:/weblogic81/server/lib/weblogic.jar com.bea.netuix.migration.PortalMigration -iC:\old -oC:\new
Processing file Bookmarks.portlet
Transformed version of Bookmarks.portlet was valid.
Saving file...
Processing file CompanyProfiles.portlet
Transformed version of CompanyProfiles.portlet was valid.
Saving file...
Processing file CustomerService.portlet
Transformed version of CustomerService.portlet was valid.
Saving file...
Processing file Dictionary.portlet
Transformed version of Dictionary.portlet was valid.
Saving file...
Processing file Email.portlet
Transformed version of Email.portlet was valid.
Saving file...
Processing file GroupToDo.portlet
Transformed version of GroupToDo.portlet was valid.
Saving file...
Processing file MyNewsletters.portlet
Transformed version of MyNewsletters.portlet was valid.
Saving file...
Processing file MyToDo.portlet
Transformed version of MyToDo.portlet was valid.
Saving file...
Processing file Newsletters.portlet
Transformed version of Newsletters.portlet was valid.
Saving file...
Processing file Portfolio.portlet
Transformed version of Portfolio.portlet was valid.
Saving file...
Processing file PrimaryCampaign.portlet
Transformed version of PrimaryCampaign.portlet was valid.
Saving file...
Processing file QuickLinks.portlet
Transformed version of QuickLinks.portlet was valid.
Saving file...
Processing file Quote.portlet
Transformed version of Quote.portlet was valid.
Saving file...
Processing file ReviewNewsletters.portlet
Transformed version of ReviewNewsletters.portlet was valid.
Saving file...
Processing file SecondaryCampaign.portlet
Transformed version of SecondaryCampaign.portlet was valid.
Saving file...
Processing file WebSearch.portlet
Transformed version of WebSearch.portlet was valid.
Saving file...
Processing file WhatsHot.portlet
Transformed version of WhatsHot.portlet was valid.
Saving file...
Processing file WorldNews.portlet
Transformed version of WorldNews.portlet was valid.
Saving file...
Processing file sampleportal.portal
Transformed version of sampleportal.portal was valid.
Saving file...
PortalMigration completed successfully.
C:\weblogic81\portal\upgrade>
The input argument (-i) should be a directory that has portals and/or portlets in it or one of its sub-directories. It is expected users will specify a 7.0 EBCC project directory but there is no requirement that this be so. When a directory is specified for the input argument the tool traverses the directory and all its sub-directories looking for files with a .portal or .portlet extension. Each file found is validated against the 7.0 schema. If it passes validation the appropriate xslt is applied. If transformation is successful the new document is validated against the 8.1 schema. The file is written to the output directory as described below. The input argument may also be a specific .portal or .portlet file. In this case only the specified file is processed as described above and written out as described below.
The output argument (-o) should be a directory. Under this directory a directory named "portal" will be created and any portals found in the input directory are written here after they are transformed if they pass 8.1 validation. Under the "portal" directory a directory named "portlets" is created and all portlets found in the input directory are written here after they are transformed and they pass 8.1 validation. Portals or portlets that are transformed but fail the 8.1 validations are written to a sub-directory named "failed-verification" located under the output "portal" or "portlet" directories depending on the file's type. Note that none of the source files are changed or moved.
The output directory may look something like this when the file upgrade completes.
<output dir>
______________|
______________|-- failed-verification (portlets that failed 8.1 validation)
Entitlements have changed in 8.1. This upgrade step is only necessary if you are planning on running in compatibility mode.
Like the previous upgrade action taken with the files located under the application-sync directory, there are records in the database that also need to be updated to properly reflect the new xsi:schemaLocation. Specifically, the records reside in the ENTITLEMENT_RULESET table.
For compatibility mode, upgrade ENTITLEMENT_RULESET records in the database using the following steps:
startPBServer
from the ..\bea81\weblogic81\portal\upgrade
directory.Note: To start the PointBase Server, you may need to pass in a parameter such as the following:
-port=9095
To preserve and reuse existing behavior tracking data in an upgraded application, take the following steps:
![]() ![]() |
![]() |
![]() |