[jira] [Closed] (LOG4J2-91) NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V

2012-10-14 Thread Gary D. Gregory (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4J2-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory closed LOG4J2-91.
-


Works like a charm :)

 NoSuchMethodError: 
 org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
 ---

 Key: LOG4J2-91
 URL: https://issues.apache.org/jira/browse/LOG4J2-91
 Project: Log4j 2
  Issue Type: Bug
  Components: log4j 1.2 emulation
Affects Versions: 2.0-beta1
 Environment: java version 1.7.0_07
 Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
 Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
Reporter: Gary D. Gregory
Assignee: Ralph Goers
 Fix For: 2.0-beta2


 I have an app that uses HtmlUnit which depends on Log4J 1.2.
 When I run it, I get:
 {noformat}
 Exception in thread main java.lang.NoSuchMethodError: 
 org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
   at 
 org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:177)
   at 
 com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.parseClassElement(JavaScriptConfiguration.java:394)
   at 
 com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.buildUsageMap(JavaScriptConfiguration.java:312)
   at 
 com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.init(JavaScriptConfiguration.java:147)
   at 
 com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getInstance(JavaScriptConfiguration.java:237)
   at 
 com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:116)
   at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:219)
   at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:193)
   at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:184)
   at 
 com.c2g2.collect.BizJournalsPageCollector.init(BizJournalsPageCollector.java:50)
   at com.c2g2.site.SitesDb.newBizJournalsSiteDb(SitesDb.java:95)
   at com.c2g2.site.SitesDb.getSiteDbList(SitesDb.java:39)
   at com.c2g2.site.SitesDbCollector.run(SitesDbCollector.java:32)
   at com.c2g2.site.SitesDbCollector.main(SitesDbCollector.java:24)
 {noformat}
 My CP in Eclipse:
 {code:xml}
 ?xml version=1.0 encoding=UTF-8?
 classpath
   classpathentry kind=src path=src/main/java/
   classpathentry kind=con 
 path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Oracle
  JRE 7 +NiN/
   classpathentry kind=lib path=lib/jetty-all-8.1.7.v20120910.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/commons-codec-1.6.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/commons-collections-3.2.1.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/commons-io-2.2.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/commons-lang3-3.1.jar 
 sourcepath=src/lib/commons-lang3-3.1-sources.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/commons-logging-1.1.1.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/cssparser-0.9.7.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/htmlunit-2.10.jar 
 sourcepath=src/lib/htmlunit-2.10-src.zip/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/htmlunit-core-js-2.10.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/httpclient-4.2.1.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/httpcore-4.2.1.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/httpmime-4.2.1.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/nekohtml-1.9.16.jar/
   classpathentry kind=lib path=lib/htmlunit-2.10/lib/sac-1.3.jar/
   classpathentry kind=lib 
 path=lib/htmlunit-2.10/lib/serializer-2.7.1.jar/
   classpathentry kind=lib path=lib/commons-vfs2-2.0.jar 
 sourcepath=src/lib/commons-vfs2-2.0-sources.jar/
   classpathentry kind=lib path=lib/joda-time-2.1.jar 
 sourcepath=src/lib/joda-time-2.1-sources.jar/
   classpathentry kind=lib path=lib/commons-csv-1.0-SNAPSHOT.jar 
 sourcepath=/commons-csv/src/
   classpathentry kind=lib path=lib/commons-email-1.2.jar 
 sourcepath=src/lib/commons-email-1.2-sources.jar/
   classpathentry kind=lib path=lib/mail-1.4.5.jar/
   classpathentry kind=lib path=lib/log4j-api-2.0-beta1.jar 
 sourcepath=src/lib/log4j-api-2.0-beta1-sources.jar/
   classpathentry kind=lib path=lib/log4j-core-2.0-beta1.jar 
 sourcepath=src/lib/log4j-core-2.0-beta1-sources.jar/
   classpathentry kind=lib 

[jira] [Created] (LOG4J2-91) NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V

2012-09-24 Thread Gary D. Gregory (JIRA)
Gary D. Gregory created LOG4J2-91:
-

 Summary: NoSuchMethodError: 
org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
 Key: LOG4J2-91
 URL: https://issues.apache.org/jira/browse/LOG4J2-91
 Project: Log4j 2
  Issue Type: Bug
  Components: log4j 1.2 emulation
Affects Versions: 2.0-beta1
 Environment: java version 1.7.0_07
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

Reporter: Gary D. Gregory


I have an app that uses HtmlUnit which depends on Log4J 1.2.

When I run it, I get:

{noformat}
Exception in thread main java.lang.NoSuchMethodError: 
org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V
at 
org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:177)
at 
com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.parseClassElement(JavaScriptConfiguration.java:394)
at 
com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.buildUsageMap(JavaScriptConfiguration.java:312)
at 
com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.init(JavaScriptConfiguration.java:147)
at 
com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getInstance(JavaScriptConfiguration.java:237)
at 
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:116)
at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:219)
at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:193)
at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:184)
at 
com.c2g2.collect.BizJournalsPageCollector.init(BizJournalsPageCollector.java:50)
at com.c2g2.site.SitesDb.newBizJournalsSiteDb(SitesDb.java:95)
at com.c2g2.site.SitesDb.getSiteDbList(SitesDb.java:39)
at com.c2g2.site.SitesDbCollector.run(SitesDbCollector.java:32)
at com.c2g2.site.SitesDbCollector.main(SitesDbCollector.java:24)
{noformat}

My CP in Eclipse:

{code:xml}
?xml version=1.0 encoding=UTF-8?
classpath
classpathentry kind=src path=src/main/java/
classpathentry kind=con 
path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Oracle
 JRE 7 +NiN/
classpathentry kind=lib path=lib/jetty-all-8.1.7.v20120910.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/commons-codec-1.6.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/commons-collections-3.2.1.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/commons-io-2.2.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/commons-lang3-3.1.jar 
sourcepath=src/lib/commons-lang3-3.1-sources.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/commons-logging-1.1.1.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/cssparser-0.9.7.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/htmlunit-2.10.jar 
sourcepath=src/lib/htmlunit-2.10-src.zip/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/htmlunit-core-js-2.10.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/httpclient-4.2.1.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/httpcore-4.2.1.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/httpmime-4.2.1.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/nekohtml-1.9.16.jar/
classpathentry kind=lib path=lib/htmlunit-2.10/lib/sac-1.3.jar/
classpathentry kind=lib 
path=lib/htmlunit-2.10/lib/serializer-2.7.1.jar/
classpathentry kind=lib path=lib/commons-vfs2-2.0.jar 
sourcepath=src/lib/commons-vfs2-2.0-sources.jar/
classpathentry kind=lib path=lib/joda-time-2.1.jar 
sourcepath=src/lib/joda-time-2.1-sources.jar/
classpathentry kind=lib path=lib/commons-csv-1.0-SNAPSHOT.jar 
sourcepath=/commons-csv/src/
classpathentry kind=lib path=lib/commons-email-1.2.jar 
sourcepath=src/lib/commons-email-1.2-sources.jar/
classpathentry kind=lib path=lib/mail-1.4.5.jar/
classpathentry kind=lib path=lib/log4j-api-2.0-beta1.jar 
sourcepath=src/lib/log4j-api-2.0-beta1-sources.jar/
classpathentry kind=lib path=lib/log4j-core-2.0-beta1.jar 
sourcepath=src/lib/log4j-core-2.0-beta1-sources.jar/
classpathentry kind=lib path=lib/log4j12-api-2.0-beta1.jar/
classpathentry kind=output path=bin/
/classpath
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (LOG4J2-30) Author tags

2012-04-28 Thread Gary D. Gregory (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4J2-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13264300#comment-13264300
 ] 

Gary D. Gregory commented on LOG4J2-30:
---

+1 to remove author tags.

 Author tags
 ---

 Key: LOG4J2-30
 URL: https://issues.apache.org/jira/browse/LOG4J2-30
 Project: Log4j 2
  Issue Type: Wish
Reporter: Curt Arnold
Priority: Minor

 Logging this as a bug so that it eventually gets resolved.
 From log4j-dev thread Future development of log4j 2.0
 On 20/02/2010 12:42 AM, Christian Grobmeier wrote:
 there might be other discussions which could
 lead to frustrations on several sides. I think on discussions like
 having author tags and such.
 On Feb 19, 2010, at 5:57 PM, Ceki Gülcü wrote:
 Author tags is a way of recognizing contributors. Recognition is a
 very important aspect of oss.
 ---
 Author tags have been discouraged by the board, 
 http://www.apache.org/foundation/records/minutes/2004/board_minutes_2004_02_18.txt
  (section D)
 This statement by Dirk-Wlllem van Gulik, then president of the ASF, expands 
 on the rationale: 
 http://marc.info/?l=xml-cocoon-devm=107787986409413w=2
 Don't think we need to tackle the issue until there is code someone wants to 
 tag.  I'm not planning on tagging any code that I initially develop.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org