Show TOC Start of Content Area

Procedure documentation Installing Log Viewer as a Service  Locate the document in its SAP Library structure

Use

You can install Log Viewer server as a service on Microsoft Windows and as a daemon on UNIX. You can then connect locally to the Log Viewer service by two ways:

      starting the Log Viewer client using P4 port of the J2EE Engine

      remotely, by using RMI port to the Log Viewer server.

However, by default, the NI protocol is used.

Prerequisites

      On Microsoft Windows, the service.ini and the service.exe files exist in the same directory; by default, this is the <Drive>:\usr\sap\<SID>\JC<Instance number>\j2ee\admin\logviewer-standalone directory.

      On Microsoft Windows, the service.inifile has been configured. For more information, see the <Drive>:\usr\sap\<SID>\JC<Instance number>\j2ee\admin\logviewer-standalone\Service_Readme.txt file.

      On Microsoft Windows, JDK version 1.4.2 or higher has been installed.

      On UNIX, the /usr/sap/<SID>/JC<Instance number>/j2ee/admin/logviewer-standalone/daemon/LV_daemon.sh file has been configured.

Procedure

Installing Log Viewer as a Service on Microsoft Windows

...

       1.      In the file system, go to the <Drive>:\usr\sap\<SID>\JC<Instance number>\j2ee\admin\logviewer-standalone directory.

       2.      To install Log Viewer as a service, in the command line, execute the service.exe –install command.

The Log Viewer server is installed as the following service on Microsoft Windows: SAP J2EE Engine Logviewer.

       3.      To start SAP J2EE Engine Logviewer service, choose Start Control Panel Administrative Tools Services, select the service and then choose Start.

Note

By default, SAP J2EE Engine Logviewer service runs on port 1099. If you want to change the port, in the <Drive>:\usr\sap\<SID>\JC<Instance number>\j2ee\admin\logviewer-standalone\server\LogViewerServer.properties file, change the value of the following property: Logviewer_java.naming.provider.url = rmi://localhost:1099.

Caution

If you want to uninstall the J2EE Engine, you have to stop SAP J2EE Engine Logviewer service. Otherwise, you will receive an error message that the <Drive>:\usr\sap\<SID>\JC<Instance number>\j2ee\admin\logviewer_standalone directory cannot be removed.

Installing the Log Viewer as a Daemon on UNIX

...

       1.      In the file system, go to the /usr/sap/<SID>/JC<Instance number>/j2ee/admin/logviewer-standalone/daemon directory.

       2.      To install the Log Viewer as a daemon, in the command line, execute the LV_daemon.sh script.

The LV_daemon.sh script invokes the server_nohup.sh script. The Log Viewer server is installed as the following daemon on UNIX: SAP J2EE Engine Logviewer.

       3.      To start and stop the SAP J2EE Engine Logviewer daemon, execute the LV_daemon.sh start and LV_daemon.sh stop commands respectively.

 

Additional Information

Caution

Follow this procedure only if you receive the following error when trying to start the service:

“Error 1053: The service could not respond to the start or control request in a timely fashion.”

Removing Error 1053

Note

This error occurs only if using Microsoft Windows.

To install the service, proceed as follows:

       1.      Remove the service with the following command:

   <SAP_install_dir>\<system_name>\<instance_name>\j2ee\admin\logviewer-standalone\service.exe –remove

       2.      In the <SAP_install_dir>\<system_name>\<instance_name>\j2ee\admin\logviewer-standalone\service.ini file, change the lines as shown in the example below and save it:

Service_0_JavaPath = C:/j2sdk1.4.2_09/

Service_0_RootDir = <SAP_install_dir>\<system_name>\<instance_name>\/j2ee/admin/logviewer-standalone

Note

Use the symbol "/" instead of "\".

       3.      In the <SAP_install_dir>\<system_name>\<instance_name>\j2ee\admin\logviewer-standalone\server\LogViewerServer.properties file, change the lines as shown in the example below and save it:

Logviewer_MonitorablePath = c:\\usr\\sap

Logviewer_CCMSTemplateGenerationDirectory = c:\\usr\\sap\\tmp

Logviewer_LogDirectoryReadFromFile = c:\\usr\\sap\\tmp\\ServerLogDirectory.xml

       4.      Execute the command:

<SAP_install_dir>\<system_name>\<instance_name>\\j2ee\admin\logviewer-standalone\service.exe –install

       5.      Go to Control Panel    Administrative Tools    Services and start the service ‘SAP J2EE Engine LogViewer’.

Result

You will no longer receive this error message.

 

End of Content Area