MigrationToolkit en US 8.5.5.7
MigrationToolkit en US 8.5.5.7
MigrationToolkit en US 8.5.5.7
IBM
Contents
Chapter 1. Overview . . . . . . . ..
..
47
Chapter 3. Support . . . . . . . . ..
Appendix B. WebSphere
version-to-version migration rules and
quick fixes . . . . . . . . . . . ..
49
13
17
19
EAR-level library .
Web module library
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
..
19
19
21
23
27
30
31
33
..
..
..
33
34
36
41
41
41
41
41
42
42
42
45
46
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
..
..
..
..
.
.
.
..
..
..
49
53
54
55
56
63
63
66
68
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
..
..
..
..
..
71
73
73
75
76
77
79
79
83
83
86
87
87
88
88
89
90
90
91
91
93
93
93
93
94
94
95
95
96
97
97
99
iii
iv
that are
. . .
that are
. . .
that are
. . .
migrated
. . .
migrated
. . .
migrated
. . .
from
. .
from
. .
from
. .
101
the
..
101
the
..
108
the
..
109
from
. .
from
. .
from
. .
..
the
..
the
..
110
110
111
113
Chapter 1. Overview
The IBM WebSphere Application Server Migration Toolkit provides a rich set of tools that help you
migrate applications from third-party application servers, between versions of WebSphere Application
Server, to the Liberty profile, and to cloud platforms such as Liberty for Java on IBM Bluemix.
For this release, all of the Eclipse-based source scanning tools are combined into one update site where
you can easily install the individual tools that you need. The new packaging includes the following tools:
v Cloud Migration Tool
v WebSphere Version to Version Application Migration Tool
v Apache Tomcat to Liberty Profile Configuration Migration Tool
v Apache Tomcat to WebSphere Application Migration Tool
v JBoss to WebSphere Application Migration Tool
v Oracle to WebSphere Application Migration Tool
v WebLogic to WebSphere Application Migration Tool
This document explains how to install, configure, and use the migration tools.
The application migration tools are based on IBM Rational Software Analyzer, which provides a single
solution to identify, analyze, and optimize the application health. The tools use the scanning capabilities
of Rational Software Analyzer to look for specific constructs unique to the particular application being
migrated. The tools then provide a way to review and change that data so that the application can run on
WebSphere Application Server.
The WebSphere Version to Version Application Migration Tool helps migrate and develop application
code.
The tool analyzes your application source code and highlights Java Platform, Enterprise Edition (Java EE)
programming model and WebSphere API differences between the profile types. Based on this analysis,
the tool offers advice and potential solutions to assess the ease of moving applications to the Liberty
profile. It also informs you of Java EE specification implementation differences that could affect your
applications.
There are a number of issues that can affect code migration and development when moving between
WebSphere Application Server releases. These issues include:
v Changes to the Java Runtime Environment (JRE) encountered in Java SE 5, 6, 7 and 8
v Removal of previously deprecated features
v Behavior changes in the product APIs
v Changes resulting from Java EE specification clarifications
v Deprecated features
v WebSphere APIs not available on Liberty
v Optional Java EE technologies not available on Liberty
v Differences in technology implementations
v Java EE 7 differences
The tool supports migrating from the following versions:
v WebSphere Application Server V5.1
v WebSphere Application Server V6.0
v WebSphere Application Server V6.1
v WebSphere Application Server V7.0
v WebSphere Application Server V8.0
v WebSphere Application Server V8.5.5 Classic
v WebSphere Application Server Liberty V8.5.5
The tool supports migrating to the following versions:
v WebSphere Application Server V7.0
v WebSphere Application Server V8.0
v WebSphere Application Server V8.5.5 Classic
v WebSphere Application Server Liberty V8.5.5
v WebSphere Application Server Liberty Core V8.5.5
v
v
v
v
v
v
Migrating Oracle Application Server Java and JSP artifacts (Java EE 5 and prior versions)
Migrating Oracle Application Server deployment descriptors (Java EE 5 and prior versions)
Migrating Apache Tomcat Java and JSP artifacts (Java EE 5 and prior versions)
Migrating Apache Tomcat Context XML information contained in the application
Migrating from Apache Tomcat 6.0 or 7.0
Migrating from Java SE 1.4, 5, 6, or 7 to either Java 6, 7, or 8. Java 8 is supported only on the Liberty
profile.
Resources
With the Migration Toolkit for Application Binaries (Tech Preview), you can produce reports for your
application that highlight any Java EE programming model and WebSphere API differences between the
full and Liberty profiles from the command line using the application archives and class files.
Download the Migration Toolkit for Application Binaries from https://developer.ibm.com/wasdev/
downloads/#asset/tools-Migration_Toolkit_for_Application_Binaries_Tech_Preview
To estimate the effort required to move your applications from a third-party application server to
WebSphere Application Server, try the Migration Discovery Tool at http://www.ibm.biz/
MigrationDiscovery.
To learn more about migration, visit the WASdev migration landing page at https://developer.ibm.com/
wasdev/docs/migration/.
The IBM WebSphere Application Server Migration Toolkit developerWorks site provides information on
application and configuration migration from a third-party application server and version-to-version
application migration.
For comprehensive information on WebSphere Application Server migration topics, including examples of
using the migration toolkit, see the WebSphere Application Server V8.5 Migration Guide.
Chapter 1. Overview
Support
Bug and field support fixes were added to this release.
Chapter 3. Support
Supported platforms
The migration tools are supported on the following Eclipse-based platforms:
v Eclipse Kepler (4.3), Luna (4.4), and Mars (4.5)
v Rational Application Developer versions 8.5 to 9.1
v Rational Software Architect versions 8.5 to 9.1
Resources
The migration tools do not identify all problems. As you encounter issues that the tools do not handle,
provide feedback through the IBM WebSphere Application Server Migration Toolkit forum, which is
available at http://www.ibm.com/developerworks/forums/forum.jspa?forumID=2106. You can also use
the forum to get answers to your questions about the tools.
If you have access to IBM Passport Advantage, you can also open a customer problem report.
As new rules and quick fixes are available, updates are made available on WASdev and Eclipse
Marketplace.
10
11
12
13
14
15
16
By importing the application, the proper project structure is created with the deployment descriptor
information. If your EAR file contains the Java source code, it is also imported into the Eclipse project.
However, most EAR and module files do not contain source code, and you need to copy the source code
to its correct source folders. Again, go to File > Import to import the source code from the file system or
from an archive (.zip) file. Repeat this procedure to import the source code for each module.
To create projects manually, go to File > New and select the appropriate project type:
v EAR file: Enterprise Application Project
v WAR file: Dynamic Web Project
v EJB module: EJB Project
To copy the source files to their correct locations in the project, go to File > Import.
Review the following guidelines for structuring projects:
17
v Place Java source code for a WAR file (for example, servlet, model, or utility classes) in the src folder
of the project. The src folder is defined and can be changed in the Java Build Path properties for the
project. If the Java source code needs to be referenced by more than one WAR file, see Shared Java
projects for information on structuring the project files.
v Place Java source code for an EJB module in the ejbModule folder of the EJB project.
v Place precompiled Java archive (JAR) libraries for a WAR file in the WebContent/WEB-INF/lib folder.
v Place EAR-level JAR libraries in the EarContent folder of the enterprise application project. If your
project contains an APP-INF/lib folder, place the folder in the EarContent folder; however, you must
run the class path rule and its quick fix to update the class paths correctly.
For a more detailed description of how to import applications into your IDE, see the WebSphere
Application Server V8.5 Migration Guide (http://www.redbooks.ibm.com/redbooks/pdfs/sg248048.pdf).
18
EAR-level library
Complete the following steps to place Java source files in a separate project:
1. Create a new Java project and add the Java source code into the src folder of the project.
2. Right-click the project in the Project view and select Properties.
3. Select the Deployment Assembly item from the left pane. On the right pane, click Add to include the
Java projects you want to reference.
19
20
21
22
23
3. In the Software Analyzer Configurations window, enter a name for the configuration, such as
AppMigration.
4. On the Scope tab, select Analyze entire workspace to scan all projects in the workspace.
You can limit the scope of an analysis by using the other options to analyze a working set or a
selection of projects.
Tip: When you run your analysis from the Explorer view, the scope of the analysis is limited to the
node in the project where the menu item was selected. This allows you to perform a quick analysis on
a limited set of code.
5. On the Rules tab, select the type of analysis to perform using the Rule Sets list. You can also select
individual rules to run.
Tip: To obtain additional information about a rule, highlight the rule and press F1 (Shift-F1 for
Linux). Help for the rule is shown in the configuration window. The initial help page includes a short
description and a link to more information.
24
Depending on which features you installed, you see one or more migration-related rule sets:
v Cloud Application Migration
v WebSphere Application Server Version Migration
v WebLogic Application Migration
v JBoss Application Migration
v Oracle Application Migration
v Apache Tomcat Application Migration
The application migration tools have rules under the following analysis providers:
v File Review
v Java Code Review
v JSP Code Review
v TLD File Review
v XML File Review
v XSL File Review
After you select a rule set, click Set to select the applicable application migration rules.
25
26
27
To start the analysis, click Analyze in the Software Analyzer Configuration window. The results are
displayed in the Software Analysis Results view.
The content of the results view varies depending on which rules you are running. The results generated
by an application migration tool are displayed in one of the following tabs:
v File Review
v Java Code Review
v JSP Code Review
v TLD File Review
v XML File Review
v XSL File Review
If no results are shown in the panel, no issues were identified while scanning.
Right-click individual results to show the available options such as viewing the source code where the
problem occurred or correcting the problem with a provided fix.
28
Figure 13. Result options with Quick Fix Preview and Help
Not all rules have all actions available, but the possible actions include:
v View Result - Opens an editor showing the source file that triggered the rule. The cause of the
problem is highlighted, and a rule violation icon is shown in the left margin of the editor.
Quick Fix - The light bulb overlay on the result list icon (
) indicates that this rule has a quick fix.
Selecting this option runs the conversion that modifies the affected Java code, XML file, JSP or manifest
file, allowing it to run in WebSphere Application Server. The quick fix might change the code directly
or it might present the steps needed to complete the fix.
v Quick Fix Preview - This option is available for the rules that support showing a side-by-side
comparison of the original code and the code after the quick fix is applied. This option allows you to
see the changes before they are made.
Some quick fixes modify more than one file. When you select Quick Fix Preview for a fix affecting
multiple files, the files are shown in the Structure Compare portion of the Compare view. Double-click
each file to view the differences.
v
29
Ignore Result - This option removes the rule from the list without making a code change. For Java
and XML files, a comment annotation is added to the file so that the rule is not triggered on future
analysis runs.
v Quick Fix All - This option resolves all issues identified for a given rule.
v Quick Fix All Category - This option runs all quick fixes identified for the category to which the rule
belongs. A rule must have Quick Fix All enabled for the Quick Fix All Category option to run its
quick fix. For example, if you choose this option on a Java rule, the quick fixes for all Java rules that
have the Quick Fix All option are run.
v
Context-sensitive help is displayed in the Help view as you select each result. The first panel is a short
description. Click Detailed Help to get more information. Press F1 to open the Help view if it is not
already displayed.
30
Access these rules by creating a new analysis configuration or modifying an existing one. These rules are
not automatically selected as part of rule sets for the application migration tools.
When the selected rules are run and necessary changes are made, the updated application must be
exported and tested on WebSphere Application Server. If you use Rational Application Developer, tools
are available to create deployments and test the application within the Rational Application Developer
environment.
Chapter 10. Migrating an application to WebSphere Application Server
31
Some uses have found the Avoid using com.ibm.ws.* package rule in the Java Code Review > Private API >
WebSphere category helpful during migration analysis. The com.ibm.ws.* package contains
application-server-internal APIs that are not for application use and are subject to change. If you know
your application uses private APIs or if you are not sure, you can use this rule to check your application.
If you have generated code related to EJBs or web services, you might get false hits on this rule.
32
The selected Liberty profile server now contains the updated configuration. The server.xml file contains
an include of the migratedConfig/server-updates-for-config.xml file.
The updated configuration includes the following files:
File name
Description
server.xml
migratedConfig/configMigration.log
33
File name
Description
migratedConfig/context.xml
migratedConfig/server.xml
migratedConfig/server.xml.original.txt
migratedConfig/server-updates-for-config.xml
migratedConfig/shared-libraries.xml
migratedConfig/shared-libraries.xml.original.txt
migratedConfig/variables.xml
migratedConfig/variables.xml.original.txt
migratedConfig/[tomcat-users-file]_users-and-roles.xml
34
4. After the configuration is migrated, you are notified that the migration completed successfully and
whether further action is required. Select whether you want to open the updated Liberty profile
server configuration and the application migration log file, and click OK. The Liberty profile server
workspace refreshes.
The selected Liberty profile server now contains the updated configuration. The server.xml file contains
an include of the server-updates-for-application.xml file.
The updated configuration includes the following files:
File name
Description
server.xml
migratedConfig/[application-name]/configMigration.log
migratedConfig/[application-name]/application-configcontext.xml
migratedConfig/[application-name]/application-config-web.xml
35
File name
Description
migratedConfig/[application-name]/server.xml.original.txt
migratedConfig/[application-name]/server-updates-forapplication-config.xml
migratedConfig/shared-libraries.xml
migratedConfig/shared-libraries.xml.original.txt
migratedConfig/variables.xml
migratedConfig/variables.xml.original.txt
36
The location of the WebSphere MQ resource adapter is specified in the generated configuration by the
wmqJmsClient.rar.location variable. The default location is ${shared.resource.dir}/wmq/wmq.jmsra.rar.
Copy the files to the specified location, or modify the wmqJmsClient.rar.location variable to reference
the location of the WebSphere MQ resource adapter files.
To allow JMS applications to connect to WebSphere MQ in BINDING mode or by using the shared
memories, you must have both the Liberty profile and WebSphere MQ deployed on the same server. To
allow JMS applications to connect in BINDING mode, you must also manually specify the location of the
WebSphere MQ native libraries in the generated configuration on the nativeLibraryPath attribute of the
wmqJmsClient element.
Apache Derby
derby.jar
IBM DB2
37
Database
ojdbc6.jar
jconn3.jar
jconn4.jar
sqljdbc4.jar
sqlserver.jar
MySQL Server
Note: If the Oracle OCI driver is present in the Tomcat source configuration, the generated library
configuration is not contained within the JDBC driver configuration as it is for the other databases. The
library for the OCI driver must be shared across all applications. Therefore, the library is generated in a
separate include file, migratedConfig/shared-libraries.xml. The ID of the library is then referenced on
the libraryRef attribute of the jdbcDriver element. Because the migration tool cannot determine the
location of the Oracle Database client directory, the required files are not copied during the migration
process.
38
If the allRolesMode attribute is not defined, the default value is strict. If multiple realms define different
allRolesMode values, the most flexible value is migrated, according to the following order: authOnly, then
strictAuthOnly, then strict.
Migrating variables
The migration tool migrates variables that are referenced in the Tomcat configuration to the Liberty
profile server configuration. Variable definitions in the Tomcat catalina.properties file are migrated to
the migratedConfig/variables.xml file by default. If a variable is not defined in the catalina.properties
file or as a system property, an ** Action required: entry is logged. Configure the variable in the Liberty
profile server, or modify the configuration to not reference the variable.
The Liberty profile does not support variable names that contain the string "${". If a variable name
contains this string, an ** Action required: entry is logged. Configure a variable with a valid name, or
modify the configuration to not reference the variable.
If a variable has a value that contains the name of another variable, the Liberty profile server interprets
the value differently than Tomcat. The Liberty profile server interprets the value as referencing another
variable, whereas the Tomcat server interprets the value as a literal string. If a variable has a value that
the Liberty profile might interpret as a variable reference, an ** Action required: entry is logged.
Configure a variable without a variable reference in its value, or modify the configuration to not reference
the variable.
39
40
41
Command-line option. Add the system variable to the command line that starts Eclipse: eclipse.exe
-vmargs -Dappconversion.trace=true
v eclipse.ini option. Add the following option to the eclipse.ini file found in the same directory as the
eclipse.exe file: -Dappconversion.trace=true
v
Markers
Markers are displayed in the left margin of Eclipse editors and provide information about the content of
the editor on the line where the marker is displayed. Editors for different file types can have different
behaviors for the markers, some of which are described here.
Known issues
Quick Fix for a WebLogic rule corrupts the ejb-jar.xml file
If you are using Eclipse 4.3 or later without the WebSphere Application Server Developer Tools installed,
namespace attributes in the ejb-jar.xml file are corrupted when you use the Quick Fix option for the
WebLogic rule Do not use local JNDI names. This rule is found on the XML File Review tab under
WebLogic To WebSphere deployment descriptor migration in the Software Analyzer Results view.
When this issue occurs, you will see the following message in the Markers tab under XML Problems:
Attribute "xmlns" was already specified for element "ejb-jar".
If you run analysis again, you will see the following message in the error log:
42
The ejb-jar.xml file in the weblogicApp project cannot be analyzed because of the following
XML parsing exception: org.xml.sax.SAXParseException: Attribute "xmlns" bound to namespace
"http://www.w3.org/2000/xmlns/" was already specified for element "ejb-jar".
The Quick Fix erroneously duplicates the xmlns attribute and changes the value of the xmlns:ejb attribute
as shown in the following example.
Namespace attributes before you run the Quick Fix:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
id="ejb-jar_ID" version="3.0"
Namespace attributes after you run the Quick Fix:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:ejb="http://java.sun.com/xml/ns/javaee" xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
id="ejb-jar_ID" version="3.0"
To resolve the parsing errors, manually edit the ejb-jar.xml file and fix the namespace attributes. For
information about installing the developer tools so that this issue does not occur, see Chapter 6,
Installing IBM WebSphere Application Server Developer Tools for Eclipse, on page 15.
43
operating systems, it displays the information in the Eclipse help view. To manually open help in an
external browser, use the Show in external window icon ( ) on the detailed help page.
Ignore Results
If you select Ignore Results on a line of code that is the beginning of a block of Java code with nested
results that are flagged for the same rule, the nested results line numbers are set to zero. You can rerun
the analysis to see the proper line numbers. Examples of statements that cause this issue are method
declarations and if statements.
To uninstall the Rational Application Developer Code Analysis or Code Review feature, start IBM
Installation Manager, and select the Modify option. Select your Rational Application Developer
installation from the Modify Packages list. Click Next, and clear Code Analysis selection from the list of
features. Click Next, and verify that Code Analysis is in the list of features to be removed. Proceed with
the removal of the feature.
After Installation Manager completes, install the toolkit again.
Java Code Review Severity Summary HTML report in Windows does not display
The Java Code Review Severity Summary HTML report in Windows does not display in the Eclipse
HTML viewer unless you use Internet Explorer 9, which supports SVG image files.
You can work around this problem in the following ways:
v Produce a PDF file instead of an HTML file.
v Produce an HTML file, right-click the view to Create Shortcut, then open the shortcut using a browser
that supports SVG files on Windows, such as Mozilla Firefox.
44
In versions of Eclipse prior to 4.4, a check mark indicates that all rules in a category are selected, and a
minus sign indicates that some of the rules in a category are selected. In Eclipse 4.4 or later, the indicator
on the category might be blank, even though some or all the rules within that category are selected. The
analysis is not affected.
The application receives a message that the authentication did not succeed
The user elements in the Tomcat server configuration contained encrypted passwords, so the passwords
could not be hash encoded during migration. Use the Liberty Profile Configuration Editor to change and
hash encode the password attributes in the migrated configuration to the original unencrypted values
from the Tomcat server.
45
All migrated basicRegistry elements are created with the id attribute value set to migratedUserRegistry.
If there are one or more existing basicRegistry elements with different id values or with no id attribute,
ensure that all basicRegistry elements have an id attribute set to the same value.
Known issues
A User Input Required window opens when you migrate application configuration
When you migrate application configuration, a User Input Required window opens that states that
application publishing requires the applicationMonitor updateTrigger attribute to be set to mbean in the
server configuration file. The prompt asks if you want to set the attribute in the server configuration. You
can safely select No because the migration tool adds the necessary settings to the generated
configuration.
The hostAlias element was introduced in V8.5.5.2 of the WebSphere Application Server Liberty profile.
Previous versions of the Liberty profile server ignore hostAlias elements, and you can ignore the
warning.
An application that runs on the V8.5.5.2 Liberty profile does not persist session
information in Mozilla Firefox
After you migrate configuration for applications that require multiple cookies to the V8.5.5.2 Liberty
profile, session information might be lost when you use the application in Mozilla Firefox. When the
session information is lost, the values are set to null and Firefox displays an error message. This problem
occurs because Firefox and the Liberty profile server use the same cookie names for the application.
To resolve the problem, add the cookieName="JESSIONSID2" attribute to the httpSession element in the
Liberty profile migratedConfig/context.xml file.
46
47
48
No
No
This rule flags calls in Java code that create Uniform Resource
Locators (URL) that contain a plus ("+") character in the URI
that is not part of the query parameters. The plus ("+") is
only reserved in the query string portion of the URL.
No
No
49
No
No
This rule flags the use of the activity component classes and
interfaces that were removed in WebSphere Application
Server V6.0.
No
This rule flags the use of the Ant task classes and interfaces
that were removed in WebSphere Application Server V6.0.
No
This rule flags the use of the asynchronous bean classes and
interfaces that were removed in WebSphere Application
Server V6.0.
This rule flags the use of the object pool classes that were
removed in WebSphere Application Server V6.0.
No
This rule flags the use of the RAS classes and interfaces that
were removed in WebSphere Application Server V6.0.
No
This rule flags the use of the scheduler classes and interfaces
that were removed in WebSphere Application Server V6.0.
No
This rule flags the use of the security classes and interfaces
that were removed in WebSphere Application Server V6.0.
No
This rule flags the use of the EarUtils class that was removed
in WebSphere Application Server V6.0.
No
This rule flags the use of the method, setJMSPriority, from the
interface, com.ibm.websphere.scheduler.MessageTaskInfo.
This method was deprecated in the Websphere Application
Server V6.0 release and was replaced by the method
getJMSPriority.
No
This rule flags the use of the user profile classes and
interfaces that were removed in WebSphere Application
Server V6.0.
No
No
No
No
This rule flags the use of the JDOM packages that were
removed in WebSphere Application Server V6.1.
50
No
This rule flags the use of the Rhino packages that were
removed in WebSphere Application Server V6.1.
This rule flags the use of the CustomRegistry interface that
was removed in WebSphere Application Server V6.1.
No
This rule flags the use of JAX-WS dynamic ports that are
created using the javax.xml.ws.Service addPort method. This
behavior change can increase memory requirements.
No
No
No
No
No
No
No
Yes
51
No
This rule flags EJB annotations in Java files if these files are
in a web module with version 2.5 or higher.
No
No
No
No
No
Yes
No
No
No
No
52
Yes
This rule flags the use of the Oracle 10g helpers and fields.
Version 8.0 only supports the Oracle 11g JDBC driver and
helper.
The quick fix changes the code to use the Oracle 11g helper
after confirming that the runtime configuration was changed.
No
This rule flags projects using JPA entity relationships that use
cascade types PERSIST, MERGE, or ALL because there is a
potential behavior change in WebSphere Application Server
V8.5. There is a corresponding XML rule to detect this
behavior change.
No
No
No
This rule flags a URI in a JSP link tag (<a>) or a form action
tag (<form action=...) that contain a plus ("+") character in the
URI but not a part of the query parameters. The plus ("+") is
only reserved in the query string portion of the URL.
No
No
This rule flags JSP taglib directives which associate the same
prefix attribute value with different uri attribute values.
53
Yes
No
Yes
No
Yes
No
No
54
No
No
This rule flags the Java Server Faces (JSF) application because
the default implementation for JSF container has changed in
WebSphere V8.0.
No
No
No
No
This rule flags projects using JPA entity relationships that use
cascade types PERSIST, MERGE, or ALL because there is a
potential behavior change in WebSphere Application Server
V8.5. There is a corresponding Java rule to detect this
behavior change.
No
File review
The file review rules analyzes issues in files other than Java, XML, JSP in your application.
No
55
Deprecated features
There are deprecation rules under the Java Code Review, JSP Code Review, and XML File Review
categories. The rules are organized by target release:
v Migration to V7.0 - currently deprecated in V7.0 and removed in V8.0
v Migration to V7.0 and V8.0 - currently deprecated in V7.0 and in V8.0
v Migration to V8.0 - newly deprecated in V8.0
v Migration to V8.5 - newly deprecated in V8.5
Quick
Fix
Action Taken
No
Yes
This rule flags the use of the deprecated Oracle data store helper
and field.
The quick fix changes the code to use the Oracle 11g helper after
confirming that the server runtime configuration was changed.
Quick
Fix
Action Taken
No
Yes
No
Yes
This rule flags the use of the deprecated methods from the
com.ibm.websphere.management.application.
client.AppDeploymentTask class.
The quick fix changes the methods to the recommended
replacements.
No
No
No
No
56
Table 14. Java deprecated features - Migration to V7.0 and V8.0 (continued)
Rule Name
Quick
Fix
Action Taken
No
Yes
No
Yes
No
No
No
This rule flags the use of the deprecated constructor and fields
from the com.ibm.websphere.naming.DumpNameSpace class.
No
This rule flags the use of the deprecated methods from the
com.ibm.websphere.cache.DynamicCacheAccessor class.
No
This rule flags the use of the deprecated methods and fields from
the com.ibm.websphere.cache.CacheEntry and the
com.ibm.websphere.cache.EntryInfo interfaces.
No
No
No
Yes
No
No
57
Table 14. Java deprecated features - Migration to V7.0 and V8.0 (continued)
Rule Name
Avoid using the deprecated
management
InvalidDocumentURIException class
Quick
Fix
Yes
Action Taken
This rule flags the use of the
com.ibm.websphere.management.exception.
InvalidDocumentURIException class.
The quick fix changes the code to use
DocumentNotFoundException.
No
Yes
No
Yes
Yes
Yes
No
No
Yes
58
No
Table 14. Java deprecated features - Migration to V7.0 and V8.0 (continued)
Rule Name
Quick
Fix
Action Taken
No
This rule flags the use of the deprecated methods from the
com.ibm.websphere.pmi.PmiJmxTest class.
No
No
No
This rule flags the use of the deprecated constructor and methods
from the com.ibm.websphere.pmi.stat.StatDescriptor class.
No
This rule flags the use of the deprecated classes from the
com.ibm.websphere.pmi.stat package.
No
This rule flags the use of the deprecated methods from the
com.ibm.websphere.pmi.stat.WSStats interface.
No
No
This rule flags the use of the deprecated resource adapter classes
and interfaces.
No
This rule flags the use of the deprecated resource adapter fields.
No
No
This rule flags the use of the deprecated methods from the
com.ibm.websphere.scheduler.MessageTaskInfo class.
No
No
No
No
No
No
This rule flags the use of the deprecated servlet cache classes.
No
This rule flags the use of the deprecated methods initialize() and
getSharingPolicy() from the
com.ibm.websphere.servlet.cache.IdGenerator class.
59
Table 14. Java deprecated features - Migration to V7.0 and V8.0 (continued)
Rule Name
Quick
Fix
Action Taken
No
This rule flags the use of the deprecated initialize() method from
the com.ibm.websphere.servlet.cache. MetaDataGenerator class.
No
Yes
No
No
Yes
This rule flags the use of the deprecated methods from the
com.ibm.websphere.wssecurity.
callbackhandler.UNTGenerateCallback class.
The quick fix changes the methods to the recommended
replacements.
No
No
No
No
This rule flags the use of the deprecated WebSphere Ant class
com.ibm.websphere.ant.tasks. ModuleValidator.
No
This rule flags the use of the deprecated WebSphere Studio tools
runtime classes from the com.ibm.webtools.runtime package.
No
Yes
60
Quick
Fix
Action Taken
No
No
This rule flags the use of the deprecated fields from the
com.ibm.websphere.management.application. AppConstants class.
No
This rule flags the use of the deprecated methods from the
com.ibm.websphere.management.application.
AppManagementBaseFactory class.
No
No
This rule flags the use of the deprecated elements from the
com.ibm.websphere.management.application. EditionInfo class.
No
This rule flags the use of the deprecated elements from the
com.ibm.websphere.servlet.filter. IFilterConfig interface.
No
No
No
No
Quick
Fix
Action Taken
Yes
61
Table 17. JSP file deprecated features - Migration to V7.0 and V8.0
Rule Name
Quick
Fix
Action Taken
This rule flags the use of the deprecated <tsx> tags in JSP files.
Table 18. XML file deprecated features - Migration to V7.0 and V8.0
Rule Name
Quick
Fix
Action Taken
No
No
62
Bluemix
Liberty Core
Liberty
profile
Full profile
Java API for XML-Based Web Services (JAX-WS) Provided by application - JSR 224
U
U
Bluemix
Liberty Core
Liberty
profile
Full profile
63
Liberty
profile
Full profile
Liberty Core
Liberty
profile
Bluemix
Bluemix
Full profile
Liberty Core
Liberty
profile
Full profile
Bluemix
U
U
Bluemix
Liberty Core
Liberty
profile
Full profile
64
Bluemix
Liberty Core
Liberty
profile
Full profile
Bluemix
Liberty Core
Liberty
profile
Full profile
Blueprint Container
Blueprint transactions
Blueprint JPA
Blueprint security
Bluemix
Liberty Core
Liberty
profile
Full profile
Liberty Core
Liberty
profile
Full profile
Bluemix
EJB Bundles
Repository Service
U
U
U
U
U
65
66
67
68
69
70
No
No
No
No
No
71
Yes
No
No
No
No
Yes
72
Yes
No
No
No
No
No
No
No
73
No
No
No
No
No
No
No
No
No
No
No
No
No
74
No
No
No
No
No
No
No
In Java 8, calling
java.lang.reflect.Proxy(InvocationHandler) with a null
parameter throws a NullPointerException. Prior to Java 8,
the constructor returns a proxy, but any method calls on that
proxy throw a NullPointerException.
No
No
No
java.lang.Thread
stop(java.lang.Throwable) is disabled
No
75
Yes
New methods in
java.util.concurrent.ConcurrentHashMap
No
No
No
Yes
No
This rule flags internal Sun JAXP classes are not available in
the IBM Java Runtime Environment.
No
Yes
Yes
76
Yes
77
78
Quick Fix
Action Taken
No
This rule detects @common Javadoc tags that are found in the
migrated BEA Beehive files.
Yes
This rule detects and migrates @jpf:action Javadoc tags that are
found in the migrated BEA Beehive files.
Yes
Yes
Yes
No
This rule detects Java classes that define EJBs that are in default
Java packages. WebSphere Application Server does not allow
EJBs in default Java packages.
No
This rule detects code within web or EJB modules that starts or
runs threads.
No
Yes
No
This rule detects the use of specific kodo import statements that
do not have equivalent openJPA imports.
These references are flagged so you can evaluate their usage and
migrate manually.
79
Rule Name
Quick Fix
Action Taken
No
This rule detects JPA properties that start with kodo.* in java
files but have no equivalent openJPA values.
This rule detects import and code references to classes where the
class package starts with weblogic.apache and the class does not
map to an open source Apache class.
No
You must modify the code to use different classes. See the rule
help for more information.
Do not use non-portable JPA imports
Yes
No
This rule detects a string literal that starts with "com.bea" in Java
code. This string can be used to reference the WebLogic Server
JMX domain and cannot be used as such in WebSphere
Application Server.
No
No
No
These references are flagged so that you can remove this Java EE
violation.
Do not use weblogic.apache packages Yes
This rule detects import and code references to classes where the
class package starts with weblogic.apache and the class maps
directly to an org.apache class.
The quick fix changes the code to org.apache. Download the
appropriate Apache open source .jar file, and include it with
your application.
80
Rule Name
Quick Fix
Action Taken
Yes
No
Yes
Yes
Yes
Yes
No
Yes
No
No
Yes
81
Rule Name
Quick Fix
Action Taken
Yes
This rule detects the use of the following proprietary JNDI name
values:
v java.naming.factory.initial = weblogic.jndi.
WLInitialContextFactory
v java.naming.provider.url = t3://localhost:7001
If found, users are given the option to change the JNDI names
to default portable JNDI name values:
v java.naming.factory.initial = com.ibm.websphere.naming.
WsnInitialContextFactory
v java.naming.provider.url = corbaloc:iiop:localhost:2809
Restriction: The JNDI name values must be in the same Java
source file where the context is initialized with the
javax.naming. InitialContext(Hashtable) constructor.
No
This rule detects imported classes that begin with weblogic but
not including the weblogic.apache classes. The flagged
server-specific APIs must be migrated.
Yes
Yes
No
No
No
This rule detects the use of the Transaction object and flags it for
manual migration.
No
No
No
Yes
82
Rule Name
Quick Fix
Action Taken
Yes
This rule detects the JPA properties with kodo specific values in
Java files.
No
Yes
Quick Fix
Action Taken
This rule detects and migrates BEA NetUI taglib directives in JSP
files.
Yes
This rule detects and migrates BEA NetUI tags used in JSP files.
No
This rule detects BEA Beehive and Apache Beehive tags so that you
can evaluate the use of this unsupported framework.
Quick Fix
Action Taken
Yes
83
Rule Name
Quick Fix
Action Taken
This rule detects the use of an internal WebLogic Server servlet
filter in web.xml files.
The quick fix removes the servlet filter entry along with its filter
mapping entry.
No
Yes
Yes
Yes
Yes
Yes
The quick fix sets the destination JNDI name in the EJB bindings
file.
The quick fix adds the resource reference JNDI name to the EJB
bindings file.
This rule detects <res-ref-name> elements in weblogic.xml or
weblogic-ejb-jar.xml files.
The quick fix adds the resource reference JNDI name to the EJB
bindings file.
Yes
Yes
No
The quick fix defines the context root value to the Web extensions
file.
This full profile rule detects Oracle auto-generated keys defined in
the weblogic-cmp-rdbms-jar.xml file. These keys are used for
container managed persistence entity beans. The application must
be modified to support keys generation.
84
Yes
Rule Name
Quick Fix
Action Taken
Yes
Yes
Yes
The following rules handle WebLogic Server JPA persistence XML migration:
Rule Name
Quick Fix
Action Taken
Yes
Yes
The quick fix removes the servlet along with its servlet mapping
elements.
This rule detects the use of kodo.* properties that do not have
openjpa equivalent.
The quick fix deletes the kodo property from persistence.xml files.
Yes
Yes
This rule detects the presence of known JPA properties with a name
starting with kodo.* in persistence.xml files.
The quick fix renames these properties to openjpa.*.
This rule detects the JPA properties with kodo-specific values in
persistence.xml files.
The quick fix changes these values to valid OpenJPA values.
The following rules flag any WebLogic Server unhandled or partially handled XML file:
Rule Name
Quick Fix
Action Taken
No
This rule flags the weblogic.xml file so that you can look for any
unmigrated elements at the end of the application migration.
No
85
Rule Name
Quick Fix
Action Taken
No
This rule flags the weblogic-cmp-jar.xml file so that you can look
for any unmigrated elements at the end of the application
migration.
No
No
No
This rule flags the weblogic-ejb-jar.xml file so that you can look
for any unmigrated elements at the end of the application
migration.
No
This rule flags the weblogic-ra.xml file so that you can look for any
unmigrated elements at the end of the application migration.
Quick Fix
Action Taken
No
No
No
No
Under the MANIFEST.MF Review category, the WebLogic Server rule set has a rule to verify that the
MANIFEST.MF class path is set up correctly.
Rule Name
Quick Fix
Action Taken
Yes
Under the Properties File Review category, the WebLogic Server rule set has a rule to analyze properties
files.
Rule Name
Quick Fix
Action Taken
No
86
Quick Fix
Action Taken
No
This rule detects code that creates threads in web or EJB modules.
No
This rule detects the use of JBoss Application Server naming lookup
strings that start with "java:", such as "java:jboss" and "java:jdbc".
Strings that start with "java:" or "java:/" are also detected because
the content afterwards might contain JBoss Application Server
values.
No
This rule detects imported classes that begin with org.jboss. These
classes must be manually migrated.
No
No
This rule detects general JBoss Application Server strings that are
not covered by other rules.
Yes
No
No
The quick fix that is provided for this rule converts the class to
implement the ServletContextListener interface to perform startup
and shutdown logic.
Important: If your code provides MBeans and it implements
MBeanRegistration for its intended purpose, you should turn off
this rule.
87
Rule Name
Quick Fix
Action Taken
Yes
This full profile rule detects the use of these JNDI property values:
v java.naming.factory.initial = org.jnp.interfaces.
NamingContextFactory
v java.naming.provider.url = jnp://localhost:1099
If these values are found, an option is provided to change the JNDI
names to default portable JNDI name values:
v java.naming.factory.initial = com.ibm.websphere.naming.
WsnInitialContextFactory
v java.naming.provider.url= corbaloc:iiop:localhost:2809
Restriction: The JNDI name values must be in the same Java
source file where the context is initialized with the javax.naming.
InitialContext(Hashtable) constructor.
No
This full profile rule detects JBoss JAX-RPC and JAX-WS timeout
constants to be migrated to IBM web service timeout constants.
Quick Fix
Action Taken
Yes
No
No
Yes
This rule detects the <jndi-name> tag in jboss.xml files for EJB
definitions.
The quick fix migrates the value found to the EJB bindings file.
Yes
Yes
88
Rule Name
Quick Fix
Action Taken
Yes
Yes
The quick fix sets the destination JNDI name in the EJB bindings
file.
The quick fix adds JNDI name of the resource reference to the EJB
bindings file.
Use WebSphere extensions to
define web module context root
Yes
Yes
Yes
The following rule flags any JBoss Application Server unhandled or partially handled XML file:
Rule Name
Quick Fix
Action Taken
No
This rule flags the jboss.xml file so that you can look for any
unmigrated elements at the end of the application migration.
No
This rule flags the jboss-app file so that you can look for any
unmigrated elements at the end of the application migration.
No
This rule flags the jboss-client.xml file so that you can look for
any unmigrated elements at the end of the application migration.
This rule flags the jbosscmp-jdbc.xml file so that you can look for
any unmigrated elements at the end of the application migration.
This rule flags the jboss-web.xml file so that you can look for any
unmigrated elements at the end of the application migration.
No
89
Rule Name
Quick Fix
Action Taken
Yes
This rule detects JAR files and classes in the EAR project root
folder.
The quick fix adds the JAR files and the classes to the
MANIFEST.MF file so that they are detected by WebSphere
Application Server.
Under the Properties File Review category, the JBoss rule set has a rule to analyze properties files.
Rule Name
Quick Fix
Action Taken
No
Quick Fix
Action Taken
No
This rule detects code that creates threads in web or EJB modules.
No
No
No
No
90
Quick Fix
Action Taken
This rule looks for proprietary Oracle Application Server tag
libraries in JSP files.
Quick Fix
Action Taken
No
No
This rule detects the use of web filters that start with "oracle."
defined in the web.xml.
Yes
Yes
This rule detects the use of web listeners that start with "oracle."
defined in the web.xml.
The quick fix deletes the listener element.
No
This rule detects login modules that are marked with the
<login-modules> tag in the orion-application.xml file.
Yes
Yes
The quick fix sets the destination JNDI name in the EJB bindings
file.
The quick fix adds the JNDI name of the resource reference to the
EJB bindings file.
Use WebSphere configuration to
control class loader order
No
91
Rule Name
Quick Fix
Action Taken
Yes
No
Yes
This full profile rule detects and migrates the concurrency strategy
used for EJB persistence.
The quick fix locates the concurrency strategy settings in the
orion-ejb-jar.xml file and sets equivalent properties in the
WebSphere extension file.
The following rules flag any Oracle Application Server unhandled or partially handled XML file:
Rule Name
Quick Fix
Action Taken
No
This rule flags the data-sources.xml file so that you can look for
any unmigrated elements at the end of the application migration.
No
No
This rule flags the jazn-data.xml file so that you can look for any
unmigrated elements at the end of the application migration.
No
This rule flags the oc4j-connectors.xml file so that you can look for
any unmigrated elements at the end of the application migration.
No
This rule flags the oc4j-ra.xml file so that you can look for any
unmigrated elements at the end of the application migration.
No
This rule flags the oracle-webservices.xml file so that you can look
for any unmigrated elements at the end of the application
migration.
No
This rule flags the orion-application.xml file so that you can look
for any unmigrated elements at the end of the application
migration.
No
No
This rule flags the orion-ejb-jar.xml file so that you can look for
any unmigrated elements at the end of the application migration.
No
This rule flags the orion-web.xml file so that you can look for any
unmigrated elements at the end of the application migration.
92
Quick Fix
Action Taken
No
Quick Fix
Action Taken
Yes
This rule detects an invalid initial context string that starts with
java:/comp instead of java:comp (without the "/").
No
This rule detects code that creates threads in web or EJB modules.
Yes
No
No
No
No
This rule detects initial context lookups so that you can check for
corresponding environment variable entries in the web.xml file.
No
93
Quick Fix
Action Taken
This rule flags any web module <welcome-file> that starts with a
slash character (/) or a backslash character (\) in the web.xml file.
Yes
This rule detects an invalid initial context string that starts with
java:/comp instead of java:comp within XML files.
No
Yes
This rule flags any resource references that do not have the resource
sharing scope set. The resource sharing scope defaults to Shareable
on Tomcat. Set the sharing scope the same on WebSphere.
Yes
Yes
No
Yes
Yes
Quick Fix
Action Taken
Yes
This rule detects JSP tags where single quotes are nested within
single quotes or where double quotes are nested within double
quotes.
94
Rule Name
Quick Fix
Action Taken
Yes
This rule detects JSP fragments included in another JSP file. If the
JSP fragment file has a .jsp extension rather than a .jspf extension,
the file is flagged.
The quick fix takes you to the refactor options to change the file
name and all of its references.
No
This rule detects JSP taglib directives that associate the same prefix
attribute value with different uri attribute values.
No
Yes
This rule validates that JSP tag attributes match the case as defined
in the tag library definition (TLD) file if it is available.
Quick Fix
Action Taken
No
This rule validates custom tag library definition (TLD) file tag
attribute names with the getter and setter methods in the tag class.
Framework migration
Under the Java Code Review and the XML File Review categories of rules, the Framework migration
category contains rules for recognizing some of the commonly used frameworks that might need changes
to work on WebSphere Application Server. The framework rules described in this section are
automatically selected with the competitive tool rule sets.
The following Java or XML framework detection rules trigger only once per project to let you know the
framework was detected. The rules provide information to help you verify that the framework is
compatible with WebSphere Application Server.
No
No
No
No
This rule scans Java and XML artifacts to detect the use of the
Seam framework.
95
No
This rule scans Java and XML artifacts to detect the use of the
Spring framework.
No
No
This rule flags the Spring beans that use the class
LocalContainerEntityManagerFactoryBean so the user can
check for valid configuration for WebSphere.
No
No
This rule flags the element jndi-lookup to let the user verify
that the usage is valid.
No
No
No
Yes
Yes
No
No
96
Rule Name
No
No
No
No
No
No
No
No
No
97
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
No
98
Yes
Yes
99
100
Migrated attributes
Tomcat attribute = Liberty profile
attribute
httpEndpoint
port = httpPort
redirectPort = httpsPort
Server/Service/Engine/
@defaultHost = host
connectionTimeout =
httpOptions/@persistTimeout
maxThreads =
httpOptions/
@maxKeepAliveRequests
socket.soReuseAddress =
tcpOptions/@soReuseAddr
101
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
httpEndpoint
port = httpsPort
Server/Service/Engine/
@defaultHost = host
connectionTimeout =
httpOptions/@persistTimeout
maxThreads =
httpOptions/
@maxKeepAliveRequests
socket.soReuseAddress =
tcpOptions/@soReuseAddr
sslProtocol = ssl/@sslProtocol
clientAuth (true) =
ssl/@clientAuthentication
clientAuth (want) =
ssl/
@clientAuthenticationSupported
ciphers = ssl/@enabledCiphers
keystoreFile =
keystore/@location
keystoreType = keystore/@type
keystorePass =
keystore/@password (xor
encoded using the
securityUtility command)
truststoreFile =
keystore/@location
truststoreType =
keystore/@type
truststorePass =
keystore/@password (xor
encoded using the
securityUtility command)
Service/Engine/Host
virtualHost
name = id
Alias = hostAlias
102
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url =
properties.derby.embedded/
@createDatabase,
@databaseName
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url = properties.db2.jcc/
@databaseName, @serverName,
@portNumber
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
103
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url = properties.oracle/@URL,
@driverType
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url = properties.sybase/
@databaseName, @serverName,
@portNumber
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
104
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url =
properties.datadirect.sqlserver/
@serverName, @portNumber,
@databaseName
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url =
properties.microsoft.sqlserver/
@URL
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
105
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url =
properties.datadirect.sqlserver/
@serverName, @portNumber,
@databaseName
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
dataSource
name = jndiName
username =
containerAuthData/@user
password =
containerAuthData/@password
(xor encoded using the
securityUtility command)
url = properties/@URL
defaultTransactionIsolation =
isolationLevel
maxActive =
connectionManager/
@maxPoolSize
maxIdle = connectionManager/
@minPoolSize
maxWait = connectionManager/
@connectionTimeout
name = jndiName
name = jndiName
jmsTopic
id = jndiName
physicalName =
properties.wasJms/
@queueName
106
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
name = jndiName
id = jndiName
physicalName =
properties.wasJms/@topicName
jmsConnectionFactory
name = jndiName
HOST or HOSTNAME =
properties.wmqJms/@hostName
PORT = properties.wmqJms/
@port
CHAN or CHANNEL =
properties.wmqJms/@channel
QMGR or QMANAGER =
properties.wmqJms/
@queueManager
TRAN or TRANSPORT =
properties.wmqJms/
@transportType
jmsQueueConnectionFactory
name = jndiName
HOST or HOSTNAME =
properties.wmqJms/@hostName
PORT = properties.wmqJms/
@port
CHAN or CHANNEL =
properties.wmqJms/@channel
QMGR or QMANAGER =
properties.wmqJms/
@queueManager
TRAN or TRANSPORT =
properties.wmqJms/
@transportType
jmsTopicConnectionFactory
name = jndiName
HOST or HOSTNAME =
properties.wmqJms/@hostName
PORT = properties.wmqJms/
@port
CHAN or CHANNEL =
properties.wmqJms/@channel
QMGR or QMANAGER =
properties.wmqJms/
@queueManager
TRAN or TRANSPORT =
properties.wmqJms/
@transportType
107
Table 31. Configuration elements that are migrated from the conf/server.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
jmsTopic
name = jndiName
TOP or TOPIC =
properties.wmqJms/
@baseTopicName
jmsQueue
name = jndiName
QU or QUEUE =
properties.wmqJms/
@baseQueueName
Liberty profile
configuration element
Migrated attributes
Tomcat attribute = Liberty
profile attribute
httpSession
maxActiveSessions =
maxInMemorySessionCount
maxInactiveInterval =
invalidationTimeout
sessionIdLength = idLength
processExpiresFrequency =
forceInvalidationMultiple
dataSource
dataSource
dataSource
dataSource
jmsConnectionFactory
108
Table 32. Configuration elements that are migrated from the conf/context.xml file (continued)
Tomcat configuration element
Liberty profile
configuration element
Migrated attributes
Tomcat attribute = Liberty
profile attribute
jmsTopic
jmsQueue
jmsConnectionFactory
jmsTopicConnectionFactory
jmsTopic
jmsQueue
Migrated elements
The Liberty mimeTypes/type
value is set to
extension=mime-type.
109
Migrated attributes
Tomcat attribute = Liberty profile
attribute
tomcat-users/role
basicRegistry/group
rolename = name
tomcat-users/user
basicRegistry/user
username = name
password = password (hash
encoded using the
securityUtility command)
roles = group/
member[@name]
A group member is created for
each role.
Migrated attributes
Tomcat attribute = Liberty profile
attribute
dataSource
dataSource
dataSource
dataSource
jmsConnectionFactory
jmsTopic
110
Table 35. Configuration elements that are migrated from the application META-INF/context.xml file (continued)
Tomcat configuration element
Migrated attributes
Tomcat attribute = Liberty profile
attribute
jmsQueue
jmsConnectionFactory
jmsQueueConnectionFactory
jmsTopicConnectionFactory
jmsTopic
jmsQueue
Migrated attributes
Tomcat attribute = Liberty profile
attribute
web-app/security-constraint/auth-constraint
application/application-bnd/
security-role
role-name = name
111
112
113
114
IBM
Printed in USA