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.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
03 March 2025
UID
swg21393835