IBM Support

WebSphere Application Server Profile creation fails on doImportConfigArchive

Troubleshooting


Problem

Your profile creation fails on the doImportConfigArchive task after a successful installation of WebSphere Application Server, The failure is traced to the WAS_HOME/bin/setupCmdLine.bat script. The failure occurs when the system PATH environment variable is corrupt, because the WAS_PATH variable uses the PATH.

Symptom

Profile creation fails showing the following errors in the profile creation log. For example, this might appear in a file named AppSrv01_create.log:

<record>
    <date>Jul 7, 2009 2:05:47 PM</date>
    <millis>1246989947848</millis>
    <sequence>177946</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>targetStarted</method>
    <thread>1</thread>
    <message>Target started for: doImportConfigArchive</message>
</record>
....
....
<record>
    <date>Jul 7, 2009 2:45:50 PM</date>
    <millis>1246992350108</millis>
    <sequence>178003</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>INFO</level>
    <class>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</class>
    <method>targetFinished</method>
    <thread>1</thread>
    <message>Target stopped for: doImportConfigArchive - FAILURE</message>
</record>
...
...
<record>
    <date>Jul 7, 2009 2:45:50 PM</date>
    <millis>1246992350108</millis>
    <sequence>178008</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>WARNING</level>
    <class>com.ibm.ws.install.configmanager.logging.LogUtils</class>
    <method>logException</method>
    <thread>1</thread>
    <message><WAS_HOME>\profileTemplates\default\actions\importConfigArchive.ant:199: wsadmin task failed with return code :-1
at com.ibm.websphere.ant.tasks.WsAdminInProcess.execute(WsAdminInProcess.java:333)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
--- truncated --
...
Caused by: wsadmin task failed with return code :-1
at com.ibm.ws.ant.utils.ProjectUtils.reportError(ProjectUtils.java:30)
at com.ibm.websphere.ant.tasks.WsAdminInProcess.execute(WsAdminInProcess.java:326)
... 29 more
--- Nested Exception ---
wsadmin task failed with return code :-1
at com.ibm.ws.ant.utils.ProjectUtils.reportError(ProjectUtils.java:30)
at com.ibm.websphere.ant.tasks.WsAdminInProcess.execute(WsAdminInProcess.java:326)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)


The profile directory structures are created, but the profile is unusable.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Install","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.5;8.0;7.0","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SS7JFU","label":"WebSphere Application Server - Express"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Install and migration","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;6.1","Edition":"Express","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 March 2025

UID

swg21393835