Migrating from Workshop for WebLogic 9.2 and 9.2.1

If you want to convert your Workshop for WebLogic 9.2 applications for development on WebLogic Server 10.0 using Workshop 10.x you must migrated to Workshop version 10.x. After migration, projects will no longer open in versions prior to 10.x.

During migration, the IDE updates project metadata, moves your facets to version 10.x, and requires a version 10.x server.

How to Migrate to Version 10.x

When you open a workspace (File > Switch Workspace) created with Workshop for WebLogic version 9.2, the IDE will prompt you to migrate projects in the workspace. In addition, you will need to make any changes needed to support the version 10.x domain, such as updating the wl_home value in the domain start scripts.

upgradedia

Note that if you decline the prompt to upgrade by clicking Cancel, files may still be added or modified in the workspace's .metadata directory. But code inside the individual projects remains untouched.

To Do Before Migrating to Version 10.x

To avoid errors in version 10.x, you should be sure to do the following before migrating the workspace:

Changes Related to Migration

Check Out Source Artifacts from Source Control Before Migration

As a best practice, be sure to check out version 9.2 sources before migrating to version 10.x. While source control integration from the IDE will, in most cases, work to check out files that must be writable, in some cases this is not done.

Also make sure that you add new files created in the upgrade process to your source control system. For example, if you are using the Perforce plugin, note that the Perforce Pending Changelists view does not show all of the files created in the upgrade process. For example, the com.bea.workshop.wls.core.prefs which replaces the com.bea.wlw.libmodules.core.prefs file is not added to the view. Make sure to add any new files by selecting Team > Open for Add at the project level. The new .prefs file and any other new files added to the project will be added to the view.

Workbench Layout Error Due to Absence of Workshop Perspective

If you open a workspace in version 10.x that was closed in version 9.2 while the Workshop perspective was open, you will see an error such as "Problems occurred restoring workbench." The Workshop perspective has been removed in version 10.x in favor of the standard J2EE perspective (the two perspectives were very similar). To work around this error, do one of the following:

JSP and HTML Validation Is More Strict

A stricter validation of JSP and HTML markup might cause errors in source view in cases where version 9.2 was more permissive. For example, in version 10.x the following code will display errors because it mixes <p> and <center> blocks:

<p>
<center>
</p>
</center>

Note that this code will still run on WebLogic Server.

Complete Workspace "Clean" Might Be Required

After migration, you might see errors in your version 10.x workspace. In some cases, you can remove these by performing a complete clean of all projects in the workspace. To do this, click Project > Clean, then in the Clean dialog, select the Clean all projects option and click OK.

Renamed or Moved Libraries are Not Supported for Migration

If you have renamed or moved Oracle-provided library JAR files in your version 9.2 workspace and have selected the "copy JARs" option instead of the shared J2EE libraries option, migration of those libraries might fail. This includes libraries that were provided to support project facets.

JSP Templates Must be Migrated Manually

JSP Template Projects are no longer supported in version 10.x. Support for JSP templates is now provided through WTP JSP Templates, found at Window > Preferences > Web and XML > JSP Files > JSP Templates.

To migrate JSP templates from pre-10.x versions of Workshop, follow these instructions for creating a new JSP template: Adding and removing JSP templates. At Step 5, select New JSP from the Context drop-down list. At step 6, copy and paste the JSP template content into the pattern field.

To change the JSP template used in the Page Flow Editor and Page Flow Explorer, select a template in the project property panel at NetUI Page Flow > Default JSP Template. (To open the project property panel, right-click the project and select Properties.)

For more detail on using JSP templates see Controlling Web Application Look and Feel with JSP Templates.

The Perforce Eclipse plugin (P4WSAD) does not add new .prefs files after upgrading an application from version 9.2

When you upgrade a Workshop for WebLogic version 9.2 application the Perforce Pending Changelists view does not show all of the files created in the upgrade process. For example, the com.bea.workshop.wls.core.prefs which replaces the com.bea.wlw.libmodules.core.prefs file is not added to the view.

Add the files manually by selecting Team > Open for Add at the project level. The new .prefs file and any other new files added to the project will be added to the view.

Problems tab does not display correctly after upgrading a 9.2 workspace

After opening a 9.2 workspace in Workshop 10.x, the columns of the Problems view are displayed incorrectly.

To fix the display problem , close and reopen the Problems view. To reopen, select Window > Show View > Problems.

Importing 9.2 Projects into Workshop version 10.x

Before you import (File > Import > General > Existing Projects into Workspace) a 9.2 project into your 10.x workspace, you should make sure that a version 9.2 runtime exists in you workspace.

To add a 9.2 runtime, select Window > Preferences. In the Preferences dialog, select Server > Installed Runtimes. Click the Add button. Follow the New Server Runtime wizard to add a WebLogic Server 9.2 runtime.

As part of the import process, you will be asked to migrate the projects to the 10.x version of Workshop. The projects will continue to be targeted to the 9.2 runtime (although they will be migrated to the 10.x Workshop project structure).

Once the projects have been imported and migrated to 10.x, you can migrate the project target runtime by right-clicking the project and selecting Migrate Project Runtime. Note that the Migrate Project Runtime option is available only when a 9.2 runtime has already been added (see instructions above).

The Migrate Project Runtime dialog allows you to migrate your project runtime facets to WebLogic Server version 10.0.

The wizard, will select and migrate the target runtime for the current project and all related projects. If there are project dependencies present, the user will be forced to migrate all related projects simultaneously.

migraterun

Errors can result when importing Workshop 9.2 projects using Perforce plugin.

When Workshop 9.2 projects are imported using the Perforce plugin (P4WSAD) you may encounter errors or you may be prompted to close the IDE. These errors and prompts arise because the automatic build cycle encounters inconsistent data that arises during the upgrade.

Sync the projects from Perforce using an external client such as p4win. Import the projects into the workspace by selecting File > Import > General > Existing Projects into Workspace.

 


Still need help? Post a question on the Workshop newsgroup.