Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
volkerdrees
Product and Topic Expert
Product and Topic Expert
0 Kudos

In some projects administrators hesitate to provide OS access to their servers – at least on a permanent basis. Especially in a Duet or Alloy installation it is sometimes helpful to quickly access e.g. the defaultTrace.trc while troubleshooting or monitoring some scenario.

 

One option would be to use the NetWeaver Administrator to display the default-Trace via the local Browser. Another option is to install a standalone log viewer. The standalone log viewer is part of the regular installation of a J2EE engine, but can also be installed on a local computer to remotely access the trace files from the server.

 

You can either copy the standalone log viewer from the J2EE’s file system, or you can download an install it on your own.

 

The latter is described in this Blog. Whenever you want to locally run any of the J2EE tools (e.g. the standalone log viewer) please ensure that you use the same version as the J2EE engine itself. Otherwise you might get a warning popup informing you about the different versions.

 

How to download and setup a standalone J2EE 7.0 log viewer:

 
  1. Download the necessary file from the SAP Service Marketplace (SMP) and store it on your local file system. In this example we are downloading the SP17 log viewer for a 7.0 J2EE engine.




  2. Rename the .SCA File into a .ZIP file
  3. Unpack the ZIP-file:

  4. Navigate into folder “DEPLOYARCHIVES”
  5. Rename “logviewer-standalone-fs.sda” into .zip
  6. Unpack the ZIP-File:

  7. Navigate into folder “logviewer-standalone” and start logviewer.bat. This launches the standalone log viewer.
  8. From the menu choose “File” --> “Configuration…”

  9. Press “Add…” to add a new J2EE server. In the popup provide the name, hostname and the port number (in this case 50004), set Connection to “J2EE” and also provide User name and Password:

  10. Press OK on both screens to close the Configuration popup. As the “Connect” flag is set by default, the log viewer automatically tries to connect to the J2EE engine.

If the connection was successful, you can drill down to e.g. the defaultTrace.trc of the server node and open it:

That’s it.

6 Comments