Troubleshooting
Problem
Profile creation finishes with partial success on Windows Server 2016 Datacenter. Regular Windows Server 2016 does not have this issue.
Symptom
Profiles are created, but it is only partially successful.
The logs may show an error similar to this:
The exception message is: Execute failed: java.io.IOException: Cannot run program "${env.SYSTEMROOT}\system32\CScript.exe" (in directory "C:\IBM\WebSphere\AppServer\profileTemplates\management\actions"): CreateProcess error=2, �w�肳�ꂽ�t�@�C����������܂���B</message>
The ant file createProfileShortCut2StartMenuMgmt is unable to resolve the environment variable SYSTEMROOT.
Resolving The Problem
To get around this problem, manageprofiles script in <WAS_HOME>/bin must be the modified. The modification made changes the Java system "os.name" property from "Windows Server 2016 Datacenter" to "Windows Server 2016".
In the manageprofiles.sh (or .bat) file, in the block starting with %JAVA_EXE%, add "-Dos.name=Windows Server 2016" (with the quotations), right before -DWAS_HOME property.
In WAS\bin\ProfileManagement\eclipse64\pmt.sh (or .bat) and WAS\bin\ProfileManagement\eclipse64\wct.sh (or .bat) add "-Dos.name=Windows Server 2016" (with the quotations), right before -DWAS_HOME property.
Product Synonym
WebSphere Application Server; WebSphere Application Server Network Deployment
Was this topic helpful?
Document Information
Modified date:
22 August 2018
UID
ibm10718859