DevTest Workstation throws PersistenceUnitLoadingException After Login in Version 10.8.4
search cancel

DevTest Workstation throws PersistenceUnitLoadingException After Login in Version 10.8.4

book

Article ID: 436355

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

After upgrading to DevTest 10.8.4, users receive a Database Error: PersistenceUnitLoadingException immediately after logging into the DevTest Workstation. The error typically references persistence.xml and may prevent the application from loading functional components. Workstation.log has the below error.

----------
ERROR com.itko.lisa.utils.JpaUtil    - Could not configure database persistence for unit: itko-reporting
org.eclipse.persistence.exceptions.PersistenceUnitLoadingException: 
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: com.itko.lisa.test.TestExecClassLoader@65cf4d6d
Internal Exception: Exception [EclipseLink-7357] (Eclipse Persistence Services - 4.0.0.v202210051929): org.eclipse.persistence.exceptions.ValidationException
Exception Description: The "[jar:file:/C:/Users/XXXXX/DevTest/HOTDEP~1/CACHE~1/ITKO-X~1.tt/META-INF/persistence.xml]" URL for "[META-INF/persistence.xml]" resource does not belong to a valid persistence root (as per Jakarta Persistence Specification)
at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:129) ~[eclipselink-4.0.0.jar:4.0.0]
at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:373) ~[eclipselink-4.0.0.jar:4.0.0]
at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:322) ~[eclipselink-4.0.0.jar:4.0.0]
.......
.......
Caused by: org.eclipse.persistence.exceptions.ValidationException: 
Exception Description: The "[jar:file:/C:/Users/XXXXX/DevTest/HOTDEP~1/CACHE~1/ITKO-X~1.tt/META-INF/persistence.xml]" URL for "[META-INF/persistence.xml]" resource does not belong to a valid persistence root (as per Jakarta Persistence Specification)
at org.eclipse.persistence.exceptions.ValidationException.invalidPersistenceRootUrl(ValidationException.java:3022) ~[eclipselink-4.0.0.jar:4.0.0]
at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.computePURootURL(PersistenceUnitProcessor.java:232) ~[eclipselink-4.0.0.jar:4.0.0]
-----------
 

Environment

  • Product: Service Virtualization (DevTest)
  • Version: 10.8.x
  • OS: Windows, Linux

Cause

The error is caused as persistence.xml is not available in the specified path in the Users directory which DevTest is using from lisa.user.propertiesfile.

Resolution

The Workstation is not shared by other users and Customer doesn't need to use the lisa.user.properties and specifying the data directory.

Follow these steps to reset the user configuration and restore workstation connectivity:

  1. Stop Services: Close the DevTest Workstation.
  2. Clear User Properties:
    • Navigate to the DevTest installation directory (LISA_HOME).
    • Locate the lisa.user.properties file.
    • Delete the file or rename it (e.g., lisa.user.properties.old).
  3. Verify Permissions:
    • Ensure the user has full Write and Modify permissions for their user profile data directory, typically: %userprofile%\DevTest.
  4. Restart Workstation:
    • Launch the DevTest Workstation and log in and the error should not be shown.