This chapter includes the following sections:
The Message Editor is installed when you install WebLogic Server. Optionally, you can edit the XML catalogs in a text editor or with any XML editing tool.
Note:
WebLogic Server provides its own message catalogs which contain all the messages relating to WebLogic Server subsystems and functionality. You cannot edit these catalogs. For descriptions of WebLogic Server catalogs, see Error Messages.
You use the Message Editor to perform the following tasks:
Create XML message catalogs
Create and edit messages
View all the messages in one catalog
View the messages in several catalogs simultaneously
Search for messages
Validate the XML in catalog entries
Retire and unretire messages
Note:
The Message Editor does not support the editing of localized catalogs.
Before you start the Message Editor, install and configure your WebLogic Server system and set the environment variables, ORACLE_HOME
\user_projects\domains\wl_server\setExamplesEnv.cmd
. Make sure that your classpath is set correctly. For more information on these topics, see Installing and Configuring Oracle WebLogic Server and Coherence.
Sample message catalog files are located in your ORACLE_HOME
/wlserver/samples/server/examples/src/examples/i18n/msgcat
directory.
You can use the sample message catalogs as templates to create your own messages. You simply modify the provided information, such as the package name and class name. Then translate the message text and save the catalog. For more information on this topic, see Writing Messages to the WebLogic Server Log.
To start the Message Editor, you can enter either of the following commands:
java weblogic.MsgEditor
java weblogic.i18ntools.gui.MessageEditor
To access basic command line help, enter:
java weblogic.MsgEditor -help
The main WebLogic Message Editor window for Log Messages appears, as shown in Figure 6-1.
Figure 6-1 WebLogic Message Editor for Log Messages
Use the Message Editor to manage catalogs. The following sections describe how to use the Message Editor to manage catalogs:
To find an existing catalog from the main WebLogic Message Editor window, enter the full pathname in the Message Catalog field, or click Browse and navigate to the existing catalog from the Open dialog.
The sample catalogs included with your WebLogic Server installation are in the ORACLE_HOME
/wlserver/samples/server/examples/src/examples/i18n/msgcat
directory.
Note:
Your directory path might be different, depending on where you installed WebLogic Server.
You can place your user-defined catalogs in any directory you designate.
Once you locate the catalog, Packages, Subsystem, Version, Base ID, and End ID (if any) are displayed, and the displayed catalog is the context catalog in which all other actions are performed.
You are now ready to enter new messages, edit existing messages, search for a message, or view all messages in the catalog.
If you select a log message catalog in the Message catalog field, the WebLogic Message Editor window for Log Messages appears, as shown in Figure 6-3.
Figure 6-3 WebLogic Message Editor for Log Messages
If you select a simple messages catalog in the Message catalog field, the WebLogic Message Editor window for Simple Messages appears, as shown in Figure 6-4.
Figure 6-4 WebLogic Message Editor for Simple Messages
You can use Message Editor to add messages to catalogs. The following sections describe how to use Message Editor to add messages to catalogs:
You can use the Message Editor to find messages. The following sections describe how to use the Message Editor to find messages:
The WebLogic Message Editor contains a Message Viewer that lets you view all messages in a catalog, view all messages in multiple catalogs, and select any message to edit.
The following sections describe how to use the Message Viewer to view and select messages to edit:
If you view the messages from the current context catalog and then change the context by navigating to a new catalog, a second Message Viewer window opens displaying the new catalog. You can view messages for as many catalogs as you require (or can reasonably fit on your screen). Each catalog is displayed in a separate Message Viewer window. For information about browsing to a new catalog, see Browsing to an Existing Catalog.
You can select any message displayed in the Message Viewer and the selected message becomes the context catalog. The message is displayed in the Message Editor window.
Figure 6-11 Message Viewer and Message Editor for Message 909001
You can retire and unretire messages in the Message Editor window. Retiring a message does not mean that the message is deleted from the master catalog; it is simply hidden from user view. This feature is useful for removing obsolete messages. If you need to bring a retired message back into view, you can unretire it.
To retire or unretire a message, complete the following procedure: