apache-commons-logging

Apache axis logging - ClassCastException while using it inside a Jira plugin

别来无恙 提交于 2019-12-08 04:55:35
问题 My Jira 5.0 plugin is broken with the following exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: java.lang.ExceptionInInitializerError at org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java:65) at com.xyz.germander.AddTestTrackLinkDialogAction.doConfirm(AddTestTrackLinkDialogAction.java:23) ... 148 more Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SLF4JLogFactory

Explanation of class loading in an EAR for non-requested but dependent class

社会主义新天地 提交于 2019-12-08 00:51:43
问题 I'm trying to track down a problem I'm having in WAS 6.1 with AXIS 1 and Commons Logging. My EAR is set to parent last. In the ear is commons-logging, Axis and a client jar that uses Axis. The classes in the client jar are called from a WAR. The WAR calls the client, which calls the axis jar, which needs commons-logging. But it does not appear as if the EAR is loading commons-logging from itself. It looks like commons-logging is coming from WebSphere. Then another class in the WAR directly

Apache axis logging - ClassCastException while using it inside a Jira plugin

僤鯓⒐⒋嵵緔 提交于 2019-12-07 19:23:26
My Jira 5.0 plugin is broken with the following exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: java.lang.ExceptionInInitializerError at org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java:65) at com.xyz.germander.AddTestTrackLinkDialogAction.doConfirm(AddTestTrackLinkDialogAction.java:23) ... 148 more Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SLF4JLogFactory cannot be cast to org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory

Websphere 8.5: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log

 ̄綄美尐妖づ 提交于 2019-12-06 04:06:00
问题 I developed an JSF-App with ICEFaces 3.0.1. With Tomcat and Glassfish, the App works fine. Now I wanted to test it on a WebSphere Application Server 8.5.0.0. The App starts but when I do some action, it crashes. I'm using the following libs: antlr-2.7.6.jar commons-collections-3.1.jar commons-lang-2.5.jar dom4j-1.6.1.jar icefaces-ace.jar icefaces-compat.jar icefaces.jar icepush.jar iText-5.0.4.jar jxl.jar slf4j-api-1.6.1.jar hibernate3.jar javassist-3.9.0.GA.jar poi-3.8-20120326.jar xpp3-1.1

Commons-logging with log4j2

心不动则不痛 提交于 2019-12-05 17:48:17
I am using log4j 1.2 with commons-logging. Now I am trying to upgrade it to log4j2. But how to use log4j2 with commons-logging to initialize log4j2. I tried to initialize commons logging in the below way. Its working fine **Statement1**: static Log log = new Log4JLogger(Logger.getLogger(Example.class)); **Statement2**:log.debug("debug statement"); Here I am using object of type org.apache.commons.logging.Log initialized with object of org.apache.log4j.Logger .( org.apache.log4j.Logger is the class from log4j 1.2 where as from log4j2 is changed to org.apache.logging.log4j.Logger ) Now after I

can't enable logging of spring framework

好久不见. 提交于 2019-12-04 05:27:35
问题 I want to configure the logging in Spring framework and Spring Security, and followed this http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/overview.html#overview-not-using-commons-logging but when I load the Tomcat I got this problem: GRAVE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/RH-Explore]] at

commons-logging and log4j properties file

被刻印的时光 ゝ 提交于 2019-12-03 16:52:27
问题 I am trying to use log4j via commons-logging and having problems if the log4j properties file is not called log4.properties. I get following error: log4j:WARN No appenders could be found for logger (LogMePlease). log4j:WARN Please initialize the log4j system properly. My code is very simple: import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class LogMePlease { static Log l = LogFactory.getLog(LogMePlease.class); public static void main(String [] args)

Commons Logging priority best practices

你。 提交于 2019-12-03 11:53:45
问题 This may be a purely subjective question (if no organization has attempted to standardize this), but my team struggles with this more than you would think. We use Apache Commons Logging as our logging interface and often the use of priority is not consistent across our development team. For example, some developers log any caught exception to fatal (log.fatal(message)) even though the flow is able to handle the error whereas others only log to fatal when something cause the program to

How to repackage HttpClient 4.3.1 and remove dependencies on commons-logging?

点点圈 提交于 2019-12-03 08:00:36
I want to repackage apache's httpclient lib to ship it with an android app (like https://code.google.com/p/httpclientandroidlib/ but with HttpClient 4.3.1) Therefore, I downloaded the httpclient 4.3.1 jar (includes all its dependencies) by hand and used jarjar to repackage it: x@x$: cd libs && for f in *.jar; do java -jar ../jarjar-1.4.jar process ../rules.txt $f out/my-$f; done with rules.txt : rule org.apache.http.** my.repackaged.org.apache.http.@1 Then I used ant to put the output together: <project name="MyProject" default="merge" basedir="."> <target name="merge"> <zip destfile="my-org

commons-logging and log4j properties file

守給你的承諾、 提交于 2019-12-03 05:56:01
I am trying to use log4j via commons-logging and having problems if the log4j properties file is not called log4.properties. I get following error: log4j:WARN No appenders could be found for logger (LogMePlease). log4j:WARN Please initialize the log4j system properly. My code is very simple: import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class LogMePlease { static Log l = LogFactory.getLog(LogMePlease.class); public static void main(String [] args) { l.warn("Hello World!"); } } In my class path, i have: commons-logging.properties file which contains