Refer to the Bill of Material section (BOM) here: https://logging.apache.org/log4j/2.x/maven-artifacts.html
Cheers, Paul On Tue, May 31, 2016 at 3:41 PM, DiFrango, Ronald < ronald.difra...@capitalone.com> wrote: > Paul, > > > I hadn’t seen that before, that would be great! > > Ron DiFrango > > > > > > > > > > > On 5/31/16, 4:39 PM, "Paul Benedict" <pbened...@apache.org> wrote: > > >DiFrango, log4j includes a BOM you may want to consider using. This will > >keep all your log4j artifacts versioned the same. > > > >Cheers, > >Paul > > > >On Tue, May 31, 2016 at 3:37 PM, DiFrango, Ronald < > >ronald.difra...@capitalone.com> wrote: > > > >> Gary, > >> > >> It ended up being a transitive dependency conflict, one of the included > >> libraries had 2.5. > >> > >> Ron DiFrango > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> On 5/31/16, 3:38 PM, "DiFrango, Ronald" <ronald.difra...@capitalone.com > > > >> wrote: > >> > >> >Gary, > >> > > >> >I did a full clean and install via Maven, but I’ll double check the > >> dependencies. > >> > > >> >Thanks, > >> > > >> >Ron > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> >On 5/31/16, 3:35 PM, "Gary Gregory" <garydgreg...@gmail.com> wrote: > >> > > >> >>On Tue, May 31, 2016 at 11:42 AM, DiFrango, Ronald < > >> >>ronald.difra...@capitalone.com> wrote: > >> >> > >> >>> All, > >> >>> > >> >>> I just attempted to upgrade from log42j version 2.5 to 2.6 and I > >> started > >> >>> getting the following: > >> >>> > >> >>> java.lang.NoSuchMethodError: > >> >>> > >> > org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;)V > >> >>> > >> >>> This seems to happen on log messages where we do something simple > like: > >> >>> > >> >>> logger.debug(“Configuration Directory {}", configRoot); > >> >>> > >> >>> It does get resolved if I do something like: > >> >>> > >> >>> logger.debug(“Configuration Directory {}”, new > Object[]{configRoot}); > >> >>> > >> >>> But that seems unnecessary. > >> >>> > >> >>> This worked perfectly fine in 2.5, any thing that I’m missing? > >> >>> > >> >> > >> >>And yet I see the Logger debug(String, Object) method here: > >> >> > >> > https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Logger.html#debug(java.lang.String,%20java.lang.Object) > >> >> > >> >>Can you check your classpath? There is something odd going on. > >> >> > >> >>What happens if you try to recompile your sources? > >> >> > >> >>Gary > >> >> > >> >> > >> >>> > >> >>> Thanks, > >> >>> > >> >>> Ron > >> >>> ________________________________________________________ > >> >>> > >> >>> The information contained in this e-mail is confidential and/or > >> >>> proprietary to Capital One and/or its affiliates and may only be > used > >> >>> solely in performance of work or services for Capital One. The > >> information > >> >>> transmitted herewith is intended only for use by the individual or > >> entity > >> >>> to which it is addressed. If the reader of this message is not the > >> intended > >> >>> recipient, you are hereby notified that any review, retransmission, > >> >>> dissemination, distribution, copying or other use of, or taking of > any > >> >>> action in reliance upon this information is strictly prohibited. If > you > >> >>> have received this communication in error, please contact the sender > >> and > >> >>> delete the material from your computer. > >> >>> > >> >> > >> >> > >> >> > >> >>-- > >> >>E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > >> >>Java Persistence with Hibernate, Second Edition > >> >><http://www.manning.com/bauer3/> > >> >>JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > >> >>Spring Batch in Action <http://www.manning.com/templier/> > >> >>Blog: http://garygregory.wordpress.com > >> >>Home: http://garygregory.com/ > >> >>Tweet! http://twitter.com/GaryGregory > >> >________________________________________________________ > >> > > >> >The information contained in this e-mail is confidential and/or > >> proprietary to Capital One and/or its affiliates and may only be used > >> solely in performance of work or services for Capital One. The > information > >> transmitted herewith is intended only for use by the individual or > entity > >> to which it is addressed. If the reader of this message is not the > intended > >> recipient, you are hereby notified that any review, retransmission, > >> dissemination, distribution, copying or other use of, or taking of any > >> action in reliance upon this information is strictly prohibited. If you > >> have received this communication in error, please contact the sender and > >> delete the material from your computer. > >> ________________________________________________________ > >> > >> The information contained in this e-mail is confidential and/or > >> proprietary to Capital One and/or its affiliates and may only be used > >> solely in performance of work or services for Capital One. The > information > >> transmitted herewith is intended only for use by the individual or > entity > >> to which it is addressed. If the reader of this message is not the > intended > >> recipient, you are hereby notified that any review, retransmission, > >> dissemination, distribution, copying or other use of, or taking of any > >> action in reliance upon this information is strictly prohibited. If you > >> have received this communication in error, please contact the sender and > >> delete the material from your computer. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > >> For additional commands, e-mail: log4j-user-h...@logging.apache.org > >> > >> > ________________________________________________________ > > The information contained in this e-mail is confidential and/or > proprietary to Capital One and/or its affiliates and may only be used > solely in performance of work or services for Capital One. The information > transmitted herewith is intended only for use by the individual or entity > to which it is addressed. If the reader of this message is not the intended > recipient, you are hereby notified that any review, retransmission, > dissemination, distribution, copying or other use of, or taking of any > action in reliance upon this information is strictly prohibited. If you > have received this communication in error, please contact the sender and > delete the material from your computer. >