Error redeploying the VS using VSEManager in 10.8.4
search cancel

Error redeploying the VS using VSEManager in 10.8.4

book

Article ID: 441093

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When attempting to redeploy a virtual service using the `VSEManager` command-line tool in **DevTest Solutions version 10.8.4**, the operation fails with an XML parsing error. The following error is observed in the console output:
 
```text
ERROR: An error occurred processing specified arguments.
org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 68; cvc-elt.1.a: Cannot find the declaration of element 'beans'.
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)
at org.springframework.context.support.GenericXmlApplicationContext.load(GenericXmlApplicationContext.java:130)
at com.itko.lisa.test.LisaSecurityManager.initializeSpringSecurity(LisaSecurityManager.java:805)
```

Environment

Product: DevTest Solutions / Service Virtualization
Version: 10.8.4 (10.8.4.22)
Component: VSEManager / Registry

Cause

The error is caused by a compatibility issue within the `itko-activemq-5.16.8.1.jar` file. Specifically, the `Spring.schemas` configuration inside this JAR prevents the Spring framework from correctly identifying the declaration for the `<beans>` element in configuration files like `applicationContext-security.xml` during the security initialization process.

Resolution

To resolve this issue, replace the problematic jar file DevTest_Home/lib/shared/itko-activemq-5.16.8.1.jar with the jar itko-activemq-5.16.8.1.jar in the attached zip file.
 
Steps to apply the updated JAR:
 
1. Stop all DevTest components**, including the Registry, VSE, Portal, and Enterprise Dashboard.
2. Navigate to the directory `DevTest_Home/lib/shared/` 
3. Back up the existing file 'DevTest_Home/lib/shared/itko-activemq-5.16.8.1.jar' to some other location.
4. Copy the updated JAR file itko-activemq-5.16.8.1.jar into the `DevTest_Home/lib/shared/` directory.
5. Ensure the file permissions match the original installation.
6. Restart all DevTest components.
7. Execute the redeploy command again to verify the fix:
   - `./VSEManager --username=admin --password=admin --redeploy <path_to_mar_file>`
 
 

Additional Information

Attachments

itko-activemq-5.16.8.1.zip get_app