Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpringBoot application stuck at springboot logo

I have spring boot application integrated with jersey framework. Now when I try to run that application it just stucks at Spring boot logo and nothing happens after that.

I tried adding -X also , but no logs appear after logo.I tried many changes to my pom but with same result. I cannt proceed further as I am not able to figure out error information.

Any guess how can I debug this issue, I cannot share my code right now.

[Update] I somehow managed to run the applicaton.Now it goes beyond Sprint Logo

I can see application is started but I am not able to see tomcat starting logs and it just hangs there..

Is it could be issue with using tomcat with springboot and jersy

like image 387
anand Avatar asked Nov 23 '16 10:11

anand


2 Answers

I was also facing this:

Resolved it by adding "console" config in log4j2.xml

 <?xml version="1.0" encoding="UTF-8"?>
 <Configuration status="info" packages="com.citi.area51">
<Appenders>
    <Console name="Console" target="SYSTEM_OUT">
        <PatternLayout pattern="%d{dd/MM/yyyy HH:mm:ss.SSSSSS} [%t] %-5level 
%logger{36} - %msg%n"/>
    </Console>
</Appenders>
<Loggers>
    <Root level="info">
        <AppenderRef ref="Console"/>
        <AppenderRef ref="File"/>
    </Root>
</Loggers>
</Configuration>
like image 132
Swapnil Jaju Avatar answered Oct 24 '22 01:10

Swapnil Jaju


The same issue happened to me after I added the following logback.xml configuration, because I wanted to limit the noise produced by apache http client:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <logger name="org.apache" level="ERROR" />
  <logger name="httpclient" level="ERROR" />
</configuration>

When I added appender and root logger, my app started working again.

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="info">
    <appender-ref ref="STDOUT" />
  </root>

So, if you are facing this issue, check configuration of your loggers.

Hope it helps someone!

like image 24
Viacheslav Shalamov Avatar answered Oct 24 '22 03:10

Viacheslav Shalamov