IBM Support

When generating a start server script using -script option, nothing is written to logs

Troubleshooting


Problem

When generating a start server script using -script option, nothing is written to native_stdout.log, native_stderr.log or startServer.log at the start of the JVM, such as starting the WebSphere® Application Server.

Cause

This is a limitation of the -script option.

Resolving The Problem

Start script generated by using following command:

startServer server_name [options]


Options:

  • -script [<script fileName>] -background

    Generates a launch script with the startServer command instead of launching the server process directly. The launch script name is an optional argument. If you do not supply the launch script name, the default script file name is start_server_name based on the server_name name passed as the first argument to the startServer command. The -background parameter is an optional parameter that specifies that the generated script will run in the background when you run it.

  • startServer server_name -script

    Produces the start_server_name.sh or start_server_name.bat files, such as start_server1.bat, when you invoke the script to start the JVM.

    Output: Script generated successfully.

  • start_server1.sh server_name

    Example: start_server1.sh server1

    No native_stdout.log, native_stderr.log or startServer.log will be created. This is design limitation. When we start the server using this start_server1.sh script, you will notice that the command prompt never returns so that we can type a new command that is because it is showing you whatever is printed to the native_stdxxx.logs. So instead of logging that information to those logs, it just prints it to the screen. So this is not a defect, it is by design.

    We have extensively investigated with developer and this is normal behavior. The native logs will not get generated, when the server is started using script.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Administrative Scripting Tools (for example: wsadmin or ANT)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5.5;8.5;8.0;7.0;6.1;6.0;5.1","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Historical Number

73144 ;999;760

Document Information

Modified date:
15 June 2018

UID

swg21225582