Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13771

Archetype doesn't read log4j2-dev.xml any more in Windows (10)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 12.6.11, 13.4.4, 14.3.0
    • None
    • None
    • CI/CD
    • CI/CD Sprint 241, CI/CD Sprint 242

    Description

      On Windows 10, the latest 13.4.4-SNAPSHOT an 14.3.0-SNAPSHOT archetypes produce below stack trace when running the project locally with cargo.run profile. After that, the log system is broken.

      It's caused by the log4j version: downgrading from 2.13.3 to 2.11.1 makes it go away (on 13.4.4 at least).

      INFO 17-Aug-2020 10:07:00.416 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [C:\work\myprojects\myproject14.3.0-S\target\tomcat9x\conf\Catalina\localhost\site.xml]
      WARN ERROR StatusLogger Unable to access file://C/work/myprojects/myproject14.3.0-S/conf/log4j2-dev.xml
      INFO  java.net.UnknownHostException: C
      INFO    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
      INFO    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
      INFO    at java.net.Socket.connect(Socket.java:589)
      INFO    at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:962)
      INFO    at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:924)
      INFO    at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1019)
      INFO    at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1005)
      INFO    at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
      INFO    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:400)
      INFO    at org.apache.logging.log4j.core.config.ConfigurationSource.fromUri(ConfigurationSource.java:330)
      INFO    at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:499)
      INFO    at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:492)
      INFO    at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:415)
      INFO    at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:323)
      INFO    at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:687)
      INFO    at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708)
      INFO    at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
      INFO    at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
      INFO    at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
      INFO    at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
      INFO    at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:138)
      INFO    at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:45)
      INFO    at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:48)
      INFO    at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:30)
      INFO    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
      INFO    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
      INFO    at org.hippoecm.hst.site.container.HstContextLoaderListener.<clinit>(HstContextLoaderListener.java:53)
      INFO    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      INFO    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      INFO    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      INFO    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      INFO    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:151)
      INFO    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4602)
      INFO    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139)
      INFO    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      INFO    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
      INFO    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      INFO    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      INFO    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
      INFO    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1830)
      INFO    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      INFO    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      INFO    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      INFO    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
      INFO    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
      INFO    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
      INFO    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      INFO    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      INFO    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      INFO    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      INFO    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      INFO    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
      INFO    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      INFO    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      INFO    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
      INFO    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
      INFO    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      INFO    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      INFO    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      INFO    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
      INFO    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      INFO    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      INFO    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      INFO    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      INFO    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      INFO    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      INFO    at org.apache.catalina.startup.Catalina.start(Catalina.java:738)
      INFO    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      INFO    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      INFO    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      INFO    at java.lang.reflect.Method.invoke(Method.java:498)
      INFO    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
      INFO    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
      WARN ERROR StatusLogger Reconfiguration failed: No configuration found for 'Default' at 'null' in 'null'
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: