SpringBoot application starts org.apache.catalina.LifecycleException

Table of Contents SpringBoot application starts org.apache.catalina.LifecycleException Problem Description Cause Analysis Solution 1. Check the resources that the application depends on 2. Check application configuration 3. Check port occupancy 4. Check dependent component version compatibility 5. Check the log files Application scenario example: org.apache.catalina.LifecycleExceptionexception caused by database connection exception SpringBoot application starts org.apache.catalina.LifecycleException When developing […]

org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer

//Error log org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:351) at org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:776) at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:681) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:386) at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:364) at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96) at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2159) at com.fasterxml.jackson.core.json.UTF8JsonGenerator._writeStringSegments(UTF8JsonGenerator.java:1302) at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeString(UTF8JsonGenerator.java:502) at com.fasterxml.jackson.databind.ser.std.StringSerializer.serialize(StringSerializer.java:41) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319) at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1516) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1006) at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:343) at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:104) at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:277) at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:181) at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:82) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:123) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at […]

Encountering org.apache.catalina.connector.ClientAbortException again: java.net.SocketException: Broken pipe (Write failed)…

On the “Payment Record” page of the Youfu merchant platform, the merchant operator clicks the “Download Settlement Voucher” button, and the system will return the receipt file of the transaction with the selected conditions to the browser page in the form of a zip package. Because the program involves complex calculations, library reading, network, and […]

Tomcat startup project exception Failed to initialize component [org.apache.catalina.webresources.JarResourceSet

Tomcat startup project exception Failed to initialize component [org.apache.catalina.webresources.JarResourceSet Exception information: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@28e39c9d] at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:833) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@28e39c9d] at […]

tomcat startup (2) org.apache.catalina.startup.Bootstrap analysis

/** * Bootstrap loader for Catalina. This application constructs a class loader * for use in loading the Catalina internal classes (by accumulating all of the * JAR files found in the “server” directory under “catalina.home”), and * starts the regular execution of the container. The purpose of this * roundabout approach is to keep […]

Detailed understanding of Catalina.createDgester method

This method mainly sets up (this method is very important and important to understand, although I haven’t learned design patterns yet.) 1. Create a StandardServer instance when encountering the tag Set related properties inside the StandardServer class and call the Catalina.setServer() method to set the server 2. When encountering the sub-tag ==> of the tag […]

Tomcat startup (3) Brief analysis of Catalina

The previous article analyzed Bootstrap to daemon.setAwait(true); daemon.load(args); daemon.start(); These three methods are actually reflection calls to the org.apache.catalina.startup.Catalina class. There is an explanation of the Catalina class This Google Translate is really powerful Startup/Shutdown shell program for Catalina. The following command line options are recognized: ?-config {pathname} – Set the pathname of the configuration […]

Tomcat reports error when publishing war: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCo

Question Java8 code has been developed with IDEA before. The Tomcat that comes with IDEA runs without problems, and it runs with my local Tomcat without problems. However, when deployed to a remote server, the following error is reported. Tomcat reports the following error: Tomcat error: 05-Sep-2023 17:14:54.249 SEVERE [localhost-startStop-8] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed […]

org.apache.catalina.core.ApplicationContext.log ssi: Can’t find file: /index.htmlERROR ErrorPageFil

The self-configured tomcat prompts an error message when deploying an application: org.apache.catalina.core.ApplicationContext.log ssi: Can’t find file: /index.html ERROR ErrorPageFilter Cannot forward to error page for request [/] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you […]