DevTest - Error while deploying the Virtual Service

book

Article ID: 126326

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

A mar file, created with the MakeMar utility, fails on the "Upload and Deploy Virtual Service" screen in the Portal with a message similar to the following:

Note - This error has been formatted for easier reading:
Error while deploying the Virtual Service. ( {"error":{"type":"TestDefException","message":"Could not stage: Unable to load file: name=C:\\CA\\DevTest\\lisatmp_10.1.0\\lads\\257D539F0ACB11E9966A005056815FBA\\MyProject\\VirtualServices\\AVirturalService.vsm
path:[C:\\CA\\DevTest\\lisatmp_10.1.0\\lads\\257D539F0ACB11E9966A005056815FBA\\MyProject\\VirtualServices\\AVirturalService.vsm]
absolutePath:[C:\\CA\\DevTest\\lisatmp_10.1.0\\lads\\257D539F0ACB11E9966A005056815FBA\\MyProject\\VirtualServices\\AVirturalService.vsm.vsm]
canonicalPath:[C:\\CA\\DevTest\\lisatmp_10.1.0\\lads\\257D539F0ACB11E9966A005056815FBA\\MyProject\\VirtualServices\\AVirturalService.vsm.vsm]",
"stackTrace":
["com.itko.lisa.coordinator.CoordinatorImpl.stageModelArchive(CoordinatorImpl.java:1083)",
"com.itko.lisa.coordinator.VirtualServiceCoordinator.<init>(VirtualServiceCoordinator.java:152)",
"com.itko.lisa.coordinator.VirtualServiceImpl.createVSCoordinator(VirtualServiceImpl.java:258)",
Many more lines....

Cause

Once the .mari file is created, the parent directory cannot change names.
Example:
Project Name = MyProject
A .mari file is created from a vsm within the "MyProject" directory

For version control or other reason, the project "MyProject" is renamed to "MyProject-Version1"
If a .mar file is created from the .mari file, deploying the .mar file will fail.

Environment

All supported DevTest environments

Resolution

All .mari files should be rebuilt anytime the Project name changes for any reasons.
 

Additional Information

Not Applicable