08:14:10,515 |-INFO in ch.qos.logback.classic.net.SocketAppender[null] - Starting a new connector thread.
08:14:10,515 |-WARN in ch.qos.logback.classic.net.SocketAppender[null] - Could not connect to remote logback server at [localhost]. We will try again later. java.net.ConnectException: Connection refused: connect
at java.net.ConnectException: Connection refused: connect
at at java.net.PlainSocketImpl.socketConnect(Native Method)
at at java.net.PlainSocketImpl.doConnect(Unknown Source)
at at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at at java.net.PlainSocketImpl.connect(Unknown Source)
at at java.net.SocksSocketImpl.connect(Unknown Source)
at at java.net.Socket.connect(Unknown Source)
at at java.net.Socket.connect(Unknown Source)
at at java.net.Socket.<init>(Unknown Source)
at at java.net.Socket.<init>(Unknown Source)
at at ch.qos.logback.core.net.SocketAppenderBase.connect(SocketAppenderBase.java:130)
at at ch.qos.logback.core.net.SocketAppenderBase.start(SocketAppenderBase.java:81)
at at ch.qos.logback.classic.joran.action.ConsolePluginAction.begin(ConsolePluginAction.java:53)
at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:273)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:127)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:40)
at at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:332)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at at java.lang.Class.forName0(Native Method)
at at java.lang.Class.forName(Unknown Source)
at at org.red5.logging.Red5LoggerFactory.getLogger(Red5LoggerFactory.java:120)
at at org.red5.logging.Red5LoggerFactory.getLogger(Red5LoggerFactory.java:108)
at at org.red5.server.war.WarLoaderServlet.<clinit>(WarLoaderServlet.java:65)
at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at at java.lang.reflect.Constructor.newInstance(Unknown Source)
at at java.lang.Class.newInstance0(Unknown Source)
at at java.lang.Class.newInstance(Unknown Source)
at at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4150)
at at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at at java.lang.reflect.Method.invoke(Unknown Source)
at at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
这种错误虽然说无关紧要,但是看着不舒服,解决办法把logback.xml日志配置文件里的<consolePlugin/>删掉就行了
本文介绍了解决Logback配置中SocketAppender连接拒绝的问题,通过删除logback.xml配置文件中的<consolePlugin/>标签来避免启动时出现警告信息。
3362

被折叠的 条评论
为什么被折叠?



