Hi Team,

We are migrating our application from JDK8 to JDK11 (RedHat OpenJDK11).
Modified the JAVA_HOME to JDK11 path.
Currently we are using Tomcat version 9. (It is working fine with JDK8).
Since the JDK11 won't support the JAVA_ENDORSED_DIRS, so I have removed the 
"-Djava.endorsed.dirs" in catalina.sh.

Once removed endorsed entry, got the below exception while start the 
application:
java.lang.NoClassDefFoundError: java/sql/Statement
                at 
java.xml/com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.close(UTF8Reader.java)
                at 
java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.closeReaders(XMLEntityManager.java:1452)
                at 
java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.cleanup(XML11Configuration.java:803)
                at 
java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:844)
                at 
java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
                at 
java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
                at 
java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
                at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1517)
                at 
org.apache.catalina.startup.Catalina.parseServerXml(Catalina.java:584)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:675)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:712)
                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 
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
                at 
org.apache.catalina.startup.Bootstrap.mainStatement(Bootstrap.java:472)
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: 
java/sql/Statement
                at java.base/java.io.PrintWriter.close(PrintWriter.java)
                at org.apache.juli.FileHandler.closeWriter(FileHandler.java:339)
                at org.apache.juli.FileHandler.close(FileHandler.java:327)
                at 
org.apache.juli.ClassLoaderLogManager.resetLoggers(ClassLoaderLogManager.java:397)
                at 
org.apache.juli.ClassLoaderLogManager.shutdown(ClassLoaderLogManager.java:376)
                at 
org.apache.juli.ClassLoaderLogManager$Cleaner.run(ClassLoaderLogManager.java:80)


Kindly help us to resolve this issue and let me know if you need any further 
details.




Regards,
Gopalakrishnan S


______________________________________________________________________ This 
email is intended only for the use of the individual(s) to whom it is addressed 
and may be privileged and confidential. Unauthorised use or disclosure is 
prohibited. If you receive this e-mail in error, please advise immediately and 
delete the original message. This message may have been altered without your or 
our knowledge and the sender does not accept any liability for any errors or 
omissions in the message. Emails are monitored by supervisory personnel in 
jurisdictions where monitoring is permitted. Such communications are retained 
and may be produced to regulatory authorities or others with legal rights to 
the information. Please see link for RBCCM disclosures. 
https://www.rbccm.com/rbccm/policies-disclaimers.page

Reply via email to