Description
Issue Summary
Bundled Tomcat Deploy or Start tasks are failing with a log4j error
This is reproducible on Data Center: (yes)
Steps to Reproduce
- Configure a build with at least 1 Tomcat Deploy Task
- Trigger the build
Expected Results
Tomcat Deploy task executes successfully
Actual Results
The below exception is thrown in the build log / Remote Agent log:
error 30-Aug-2023 16:49:42 Error occurred while running Task 'Tomcat Deploy(3)' of type com.atlassian.bamboo.plugins.tomcat.bamboo-tomcat-plugin:deployAppTask. error 30-Aug-2023 16:49:42 java.lang.ExceptionInInitializerError error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.plugins.tomcat.manager.TomcatApplicationManagerImpl.<init>(TomcatApplicationManagerImpl.java:61) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.plugins.tomcat.tasks.DeployAppTask.execute(DeployAppTask.java:46) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:238) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:210) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:168) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:161) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:155) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) error 30-Aug-2023 16:49:42 at com.atlassian.bamboo.security.ImpersonationHelper.lambda$makeRunnableWithSystemAuthority$0(ImpersonationHelper.java:38) error 30-Aug-2023 16:49:42 at java.base/java.lang.Thread.run(Thread.java:829) error 30-Aug-2023 16:49:42 Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)) error 30-Aug-2023 16:49:42 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) error 30-Aug-2023 16:49:42 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) error 30-Aug-2023 16:49:42 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) error 30-Aug-2023 16:49:42 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) error 30-Aug-2023 16:49:42 at org.apache.commons.httpclient.params.DefaultHttpParams.<clinit>(DefaultHttpParams.java:54) error 30-Aug-2023 16:49:42 ... 18 more error 30-Aug-2023 16:49:42 Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) error 30-Aug-2023 16:49:42 at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397) error 30-Aug-2023 16:49:42 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) error 30-Aug-2023 16:49:42 ... 22 more error 30-Aug-2023 16:49:42 Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. error 30-Aug-2023 16:49:42 at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385) error 30-Aug-2023 16:49:42 ... 23 more
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Attachments
Issue Links
- mentioned in
-
Page Loading...