Tanzu tc Server 5.0.14, runtime instance failed to start when using password encryption
search cancel

Tanzu tc Server 5.0.14, runtime instance failed to start when using password encryption

book

Article ID: 374474

calendar_today

Updated On:

Products

VMware Tanzu tc Server

Issue/Introduction

When creating a tc Server 5.0.14, runtime 10.1.26 instance using password encryption, it failed to startup with the following error:

'start' command failed. Instance 'vanille_2' start failed.
 
29-Jul-2024 15:26:31.356 SEVERE [main] org.apache.catalina.startup.Bootstrap.main Error running command
        java.lang.NoClassDefFoundError: org/apache/commons/codec/CharEncoding
                at com.springsource.tcserver.security.Base64.decode(Base64.java:258)
                at com.springsource.tcserver.security.PBKDF2Decoder.decrypt(PBKDF2Decoder.java:195)
                at com.springsource.tcserver.security.PBKDF2Decoder.decrypt(PBKDF2Decoder.java:185)
                at com.springsource.tcserver.security.PropertyDecoder.decodePropertyValue(PropertyDecoder.java:268)
                at com.springsource.tcserver.security.PropertyDecoder.getProperty(PropertyDecoder.java:231)
                at org.apache.tomcat.util.IntrospectionUtils.getProperty(IntrospectionUtils.java:383)
                at org.apache.tomcat.util.IntrospectionUtils.replaceProperties(IntrospectionUtils.java:337)
                at org.apache.tomcat.util.IntrospectionUtils.replaceProperties(IntrospectionUtils.java:302)
                at org.apache.tomcat.util.digester.Digester.updateAttributes(Digester.java:2018)
                at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1230)
                at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:518)
                at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
                at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1387)
                at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2726)
                at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
                at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:542)
                at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:889)
                at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825)
                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:1224)
                at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637)
                at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1522)
                at org.apache.catalina.startup.Catalina.parseServerXml(Catalina.java:603)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:693)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:731)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:568)
                at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:302)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:472)
        Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.CharEncoding
                at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
                at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
                at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
                ... 31 more

Environment

Tanzu tc Server 5.0.14 release

Cause

There is a bug issue with Tanzu tc Server 5.0.14 release.

Resolution

There is a Tanzu tc Server 5.0.15 release contains the bug fix for this issue.