-
Type: Task
-
Resolution: Fixed
-
Priority: Major
-
Affects Version/s: 1.11.19
-
Component/s: backend, native-libs
-
Security Level: Public (Visbile by non-authn users.)
-
None
Running StoRM backend v1.11.19 on a Java 11 JVM yields the following errors
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:800) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:698) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:621) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:579) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) at it.grid.storm.namespace.config.xml.XMLNamespaceLoader.getNamespaceSchemaFileName(XMLNamespaceLoader.java:242) at it.grid.storm.namespace.config.xml.XMLNamespaceLoader.<init>(XMLNamespaceLoader.java:133) at it.grid.storm.namespace.NamespaceDirector.initializeDirector(NamespaceDirector.java:54) at it.grid.storm.StoRM.loadNamespaceConfiguration(StoRM.java:162) at it.grid.storm.StoRM.init(StoRM.java:113) at it.grid.storm.Main.main(Main.java:21) Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 17 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:177) at it.grid.storm.namespace.config.xml.XMLNamespaceLoader.getNamespaceSchemaFileName(XMLNamespaceLoader.java:243) at it.grid.storm.namespace.config.xml.XMLNamespaceLoader.<init>(XMLNamespaceLoader.java:133) at it.grid.storm.namespace.NamespaceDirector.initializeDirector(NamespaceDirector.java:54) at it.grid.storm.StoRM.loadNamespaceConfiguration(StoRM.java:162) at it.grid.storm.StoRM.init(StoRM.java:113) at it.grid.storm.Main.main(Main.java:21) Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 28 more
We want to move to Java 11 so:
- StoRM Backend has to install Java 11 package
- and also StoRM native libs
- StoRM Backend must require newest native libs
- Remove all possibile dependencies to Java 8 in order to allow administrators to remove it without affecting StoRM