Wednesday 16 May 2012

com.ibm.websphere.management.filetransfer.client.TransferFailedException: 404 Not Found upgrade-profile

I was running upgrade-profile task for migrating IBM Websphere Portal server 6.x to 7.x I had following error :
  [wsadmin] WASX7017E: Exception received while running file "C:\IBM\WebSphere\wp_profile\ConfigEngine\config\work\was\curJaclScript.jacl"; exception information: com.ibm.websphere.management.filetransfer.client.TransferFailedException: 404 Not Found (for: C:\Users\WASI-A~1\AppData\Local\Temp\2\app137385f0f7e.ear).


Solution:

On Source server :

1) Make sure all application servers are stopped.

2) Locate the systemApps.xml file under the source installation. It is located at <WAS_Install>\wp_profile\config\cells\<cellname>\nodes\<nodename>

3) Edit this file and copy the following statement from under the servername=WebSphere_Portal entry.

<deployedApplications>${WAS_INSTALL_ROOT}/systemApps/filetransfer.ear</deployedApplications>

4). Close this file


On Target server :

1) Locate the systemApps.xml file under the migrated V7x installation.
It is located at <WAS_Install>\wp_profile\config\cells\<cellname>\nodes\<nodename>

2) Edit this file and paste the copied statement under the
servername=WebSphere_Portal entry as shown below.

<serverEntries xmi:id="ServerEntry_1318609547618"
serverDisplayName="WebSphere_Portal"
serverName="WebSphere_Portal"
serverType="APPLICATION_SERVER">

<deployedApplications>${WAS_INSTALL_ROOT}/systemApps/wimwmm.ear</deployedApplications>

<deployedApplications>${WAS_INSTALL_ROOT}/systemApps/filetransfer.ear</deployedApplications>
</serverEntries>

3) Save and close this file
4) Started the WebSphere_Portal server

Now re-run the upgrade-profile task.









Details of problem:

C:\IBM\WebSphere\PortalServer\ui\wp.mashup.widgets.deploy\config\includes\wp.mwidgets.deploy_cfg.xml


update-registry-property-create-ear-applyMIGStatic-wp.theme.dojo:
Target finished: update-registry-property-create-ear-applyMIGStatic-wp.theme.dojo
Thu May 10 16:09:27 EDT 2012
Target started: action-create-ear-wp.mashup.widgets.deploy

action-create-ear-wp.mashup.widgets.deploy:
[wplc-create-ear] Task parameters:
[wplc-create-ear]   Global attributes:
[wplc-create-ear]     cell="DefaultNode"
[wplc-create-ear]     engineinstalllocation="C:/IBM/WebSphere/wp_profile/ConfigEngine"
[wplc-create-ear]     osarch="amd64"
[wplc-create-ear]     pathseparator=";"
[wplc-create-ear]     node="DefaultNode"
[wplc-create-ear]     server="WebSphere_Portal"
[wplc-create-ear]   Instance attributes (Set 1 of 1):
[wplc-create-ear]     cluster= *** NOT_SPECIFIED ***
[wplc-create-ear]     startingweight="50"
[wplc-create-ear]     appname="feedReader"
[wplc-create-ear]     options
[wplc-create-ear]       -installed.ear.destination="${WPS_HOME}/ui/wp.mashup.widgets.deploy/installedApps"
[wplc-create-ear]       -defaultbinding.force
[wplc-create-ear]       -zeroEarCopy
[wplc-create-ear]       -usedefaultbindings
[wplc-create-ear]       -CtxRootForWebMod=[""FeedReader" feedReader.war,WEB-INF/web.xml /mccfeedReader"]
[wplc-create-ear]       -defaultbinding.virtual.host="default_host"
[wplc-create-ear]     attribute=[ *** NONE_SPECIFIED *** ]
[wplc-create-ear]     classloadermode= *** NOT_SPECIFIED ***
[wplc-create-ear]     earfile="C:/IBM/WEBSPH~1/PORTAL~1/ui/wp.mashup.widgets.deploy/installedApps/feedReader.ear"
[wplc-create-ear]     contextroot= *** NOT_SPECIFIED ***
[wplc-create-ear] false
[wplc-create-ear] Task parameters:
[wplc-create-ear]   Global attributes:
[wplc-create-ear]     cell="DefaultNode"
[wplc-create-ear]     engineinstalllocation="C:/IBM/WebSphere/wp_profile/ConfigEngine"
[wplc-create-ear]     osarch="amd64"
[wplc-create-ear]     pathseparator=";"
[wplc-create-ear]     node="DefaultNode"
[wplc-create-ear]     server="WebSphere_Portal"
[wplc-create-ear]   Instance attributes (Set 1 of 1):
[wplc-create-ear]     cluster= *** NOT_SPECIFIED ***
[wplc-create-ear]     startingweight="50"
[wplc-create-ear]     appname="eventExplorer"
[wplc-create-ear]     options
[wplc-create-ear]       -installed.ear.destination="${WPS_HOME}/ui/wp.mashup.widgets.deploy/installedApps"
[wplc-create-ear]       -defaultbinding.force
[wplc-create-ear]       -zeroEarCopy
[wplc-create-ear]       -usedefaultbindings
[wplc-create-ear]       -CtxRootForWebMod=[""EventExplorer" eventExplorer.war,WEB-INF/web.xml /mcceventExplorer"]
[wplc-create-ear]       -defaultbinding.virtual.host="default_host"
[wplc-create-ear]     attribute=[ *** NONE_SPECIFIED *** ]
[wplc-create-ear]     classloadermode= *** NOT_SPECIFIED ***
[wplc-create-ear]     earfile="C:/IBM/WEBSPH~1/PORTAL~1/ui/wp.mashup.widgets.deploy/installedApps/eventExplorer.ear"
[wplc-create-ear]     contextroot= *** NOT_SPECIFIED ***
[wplc-create-ear] false
[wplc-create-ear] Task parameters:
[wplc-create-ear]   Global attributes:
[wplc-create-ear]     cell="DefaultNode"
[wplc-create-ear]     engineinstalllocation="C:/IBM/WebSphere/wp_profile/ConfigEngine"
[wplc-create-ear]     osarch="amd64"
[wplc-create-ear]     pathseparator=";"
[wplc-create-ear]     node="DefaultNode"
[wplc-create-ear]     server="WebSphere_Portal"
[wplc-create-ear]   Instance attributes (Set 1 of 1):
[wplc-create-ear]     cluster= *** NOT_SPECIFIED ***
[wplc-create-ear]     startingweight="50"
[wplc-create-ear]     appname="websiteDisplayer"
[wplc-create-ear]     options
[wplc-create-ear]       -installed.ear.destination="${WPS_HOME}/ui/wp.mashup.widgets.deploy/installedApps"
[wplc-create-ear]       -defaultbinding.force
[wplc-create-ear]       -zeroEarCopy
[wplc-create-ear]       -usedefaultbindings
[wplc-create-ear]       -CtxRootForWebMod=[""WebsiteDisplayer" websiteDisplayer_v201.war,WEB-INF/web.xml /mccwebsiteDisplayer"]
[wplc-create-ear]       -defaultbinding.virtual.host="default_host"
[wplc-create-ear]     attribute=[ *** NONE_SPECIFIED *** ]
[wplc-create-ear]     classloadermode= *** NOT_SPECIFIED ***
[wplc-create-ear]     earfile="C:/IBM/WEBSPH~1/PORTAL~1/ui/wp.mashup.widgets.deploy/installedApps/websiteDisplayer.ear"
[wplc-create-ear]     contextroot= *** NOT_SPECIFIED ***
[wplc-create-ear] false
Target finished: action-create-ear-wp.mashup.widgets.deploy
Thu May 10 16:09:27 EDT 2012
Target started: action-create-ear-applyMIGStatic-wp.mashup.widgets.deploy

action-create-ear-applyMIGStatic-wp.mashup.widgets.deploy:
Target finished: action-create-ear-applyMIGStatic-wp.mashup.widgets.deploy
Thu May 10 16:09:27 EDT 2012
Target started: update-registry-property-create-ear-applyMIGStatic-wp.mashup.widgets.deploy

update-registry-property-create-ear-applyMIGStatic-wp.mashup.widgets.deploy:
Target finished: update-registry-property-create-ear-applyMIGStatic-wp.mashup.widgets.deploy
Thu May 10 16:09:27 EDT 2012
Target started: consolidate-config-extension-create-ear-applyMIG7000,-applyMIGStatic

consolidate-config-extension-create-ear-applyMIG7000,-applyMIGStatic:
Target finished: consolidate-config-extension-create-ear-applyMIG7000,-applyMIGStatic
Target finished: create-ear
Executing final configuration for consolidated config
[wplc-consolidate-wsadmin] Task parameters:
[wplc-consolidate-wsadmin]   Global attributes:
true
  [wsadmin] WASX7209I: Connected to process "WebSphere_Portal" on node DefaultNode using SOAP connector;  The type of process is: UnManagedProcess
  [wsadmin] AppName JavaContentRepository
  [wsadmin] Enterprise application JavaContentRepository does not exist.
  [wsadmin] AppName WSPolicyManager
  [wsadmin] Ear File C:/IBM/WEBSPH~1/PORTAL~1/ap/wp.policy.webservices/ear.prod/WSPolicyManager.ear
  [wsadmin] Install Options -update -appname "WSPolicyManager" 
  [wsadmin] WASX7017E: Exception received while running file "C:\IBM\WebSphere\wp_profile\ConfigEngine\config\work\was\curJaclScript.jacl"; exception information: com.ibm.websphere.management.filetransfer.client.TransferFailedException: 404 Not Found (for: C:\Users\WASI-A~1\AppData\Local\Temp\2\app137385f0f7e.ear).

C:\IBM\WebSphere\wp_profile\ConfigEngine\config\includes\apply_PTF.xml:59: Java returned: 105
    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
    at com.ibm.websphere.ant.tasks.WsAdmin.execute(WsAdmin.java:406)
    at com.ibm.wplc.deploy.tasks.AbstractBaseWsAdminWrapperTask.executeTask(AbstractBaseWsAdminWrapperTask.java:290)
    at com.ibm.wplc.deploy.tasks.ConsolidateWsAdminTask.execute(ConsolidateWsAdminTask.java:34)
    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.taskdefs.Sequential.execute(Sequential.java:64)
    at com.ibm.wps.config.If.execute(If.java:67)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    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.taskdefs.Sequential.execute(Sequential.java:64)
    at com.ibm.wps.config.If.execute(If.java:77)
    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)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.Main.start(Main.java:150)
    at com.ibm.wps.config.ConfigEngine.process(ConfigEngine.java:819)
    at com.ibm.wps.config.ConfigEngine.main(ConfigEngine.java:247)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:267)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.ibm.wps.config.launch.ConfigEngineLauncher.process(ConfigEngineLauncher.java:269)
    at com.ibm.wps.config.launch.ConfigEngineLauncher.main(ConfigEngineLauncher.java:311)
C:\IBM\WebSphere\wp_profile\ConfigEngine\config\includes\apply_PTF.xml:59: Java returned: 105

2 comments:

  1. Did you ever find a solution?

    ReplyDelete
    Replies
    1. yes, solution is also there in the blog post. plz check.

      Delete