I am trying to run the cpt4 utility to update the CONCEPT table but I am running into an issue. One thing I did notice is that there was no lib folder in my download. Here is the error I am receiving:
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/ws/Service
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:821)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:719)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:642)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:600)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.odhsi.utils.cpt.ApplicationContextServer.init(ApplicationContextServer.java:42)
at org.odhsi.utils.cpt.Application.main(Application.java:44)
Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Service
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
… 11 more
This is only a warning, so it shouldn’t prevent the utility from working completely. Were there any other errors?
Also, if it’s possible, you could try using Java 8 to run this.
Thanks for the reply. According to the logfile, the update failed:
[INFO ] 2019-11-15 08:19:10.380 [main] Application - Update failed. Usage: java -Dumls-user= -Dumls-password= -jar cpt4.jar
-Dumls-user is mandatory.
-Dumls-password is mandatory.
version is mandatory. Possible values are 4 or 5
output-file-name is optional.
I will try installing Java 8 and re-running.
Thanks!
I re-ran using Java 8 and I get the same error. I downloaded the vocabularies 3 times and never got a lib folder with the downloads. It looks like maybe a java.xm.ws file is missing?