Library file 'Castor.jar' missing from XOG Client of version 16.1.3
search cancel

Library file 'Castor.jar' missing from XOG Client of version 16.1.3

book

Article ID: 273427

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Library file 'Castor.jar' missing from XOG Client of version 16.1.3 causing error when validating and running script using XOG client.
 
Steps to Reproduce: 
 
1. Download XOG client from 16.1.3 environment.
2. Place attached test hello.xml into C:\xog\1613\xogclient\bin
3. Run gel -script hello.xml -validate
4. Observe error below:
C:\xog\1613\xogclient\bin>gel -script hello.xml -validate
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.NoClassDefFoundError: org/exolab/castor/xml/CastorException
        at com.niku.union.log.NikuLogger.isSingleTenantMode(NikuLogger.java:100)
        at com.niku.union.log.NikuLogger.isSystemRunningWithSingleTenantMode(NikuLogger.java:203)
        at com.niku.union.log.NikuLogger.getLog4jLogger(NikuLogger.java:176)
        at com.niku.union.log.NikuLogger.getLog4jLogger(NikuLogger.java:164)
        at com.niku.union.log.NikuLogger.info(NikuLogger.java:1408)
        at com.niku.union.gel.GELClient.main(GELClient.java:57)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: org.exolab.castor.xml.CastorException
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 12 more
Expected Results: it should execute without an error
 
Actual Results: it is throwing an error

Environment

Release : 16.1.3

Resolution

DE77552, fixed in 16.2.0

Workaround: Copy castor.jar file from Clarity install directory under lib folder.