Re: authapi.jar with Log4j2

EDMONDO SENA <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.user
Message-ID <CAOrqEaFdasS0y1+=AToN0r964Ora-A2izMfvtxK6uAJki590Gg@mail.gmail.com>
There are no log4j1 jars in classpath.

//Edmondo.



Il giorno ven 29 ott 2021 alle 17:34 Doug Wegscheid <
[email protected]> ha scritto:

>  ...and make sure that the log4j v1 jar files are NOT on the classpath.
>
>     On Friday, October 29, 2021, 11:21:52 AM EDT, Gary Gregory <
> [email protected]> wrote:
>
>  Make sure the log4j 2 jars are first on the class path and do not include
> any log4j 1 jars.
>
> Gary
>
> On Fri, Oct 29, 2021, 11:18 EDMONDO SENA <[email protected]> wrote:
>
> >
> > it has already been done and it doesn't work!
> >
> > This is the exception:
> >
> > Exception in thread "main"
> > Java.lang.NoSuchMethodError:org.apache.log4j.spi.LocationInfo.<init>
> >
> >
> >
> >
> > On 2021/10/29 15:09:59, Doug Wegscheid <[email protected]> wrote:
> > > Put the log4j-1.2-api.jar on the classpath along with the other
> > necessary log4j2 jars, and configure log4j2.
> > >
> > > Sent from AT&T Yahoo Mail on Android
> > >
> > >  On Fri, Oct 29, 2021 at 11:07 AM, EDMONDO SENA<[email protected]>
> > wrote:  it's not that simple one, a thing is to write, one thing is to
> > understand what to do! Said so it seems a simplistic discussion.
> > >
> > > //Edmondo.
> > >
> > >
> > >
> > > On 2021/10/29 14:13:31, Doug Wegscheid <[email protected]>
> > wrote:
> > > > You can your existing authapi.jar:
> > > > "Log4j 2 provides support for the Log4j 1 logging methods by
> providing
> > alternate implementations of the classes containing those methods. These
> > classes may be found in the log4j-1.2-api jar distributed with the
> project.
> > All calls to perform logging will result in the data passed to the
> logging
> > methods to be forwarded to the Log4j2 API where they can be processed by
> > implementations of the Log4j 2 API."
> > > >
> > > > Sent from AT&T Yahoo Mail on Android
> > > >
> > > >  On Fri, Oct 29, 2021 at 9:04 AM, EDMONDO SENA<[email protected]>
> > wrote:  I have already seen this site but I have not found any answer to
> my
> > problem.
> > > >
> > > > //Edmondo.
> > > >
> > > >
> > > >
> > > > On 2021/10/29 12:52:55, Gary Gregory <[email protected]> wrote:
> > > > > Edmondo,
> > > > >
> > > > > Please see
> > https://logging.apache.org/log4j/2.x/manual/compatibility.html
> > > > >
> > > > > Gary
> > > > >
> > > > > On Fri, Oct 29, 2021, 04:22 EDMONDO SENA <[email protected]>
> wrote:
> > > > >
> > > > > >
> > > > > > Good Morning,
> > > > > >
> > > > > > authapi.jar is a 3pp library which uses old log4 inside.
> > > > > > Is there any way to get authapi.jar to work with log4j 2?
> > > > > >
> > > > > > What can I do to make them work together?
> > > > > > Do I need to download a new authapi.jar version for log4j2?
> > > > > >
> > > > > > Thanks in advance.
> > > > > > Kind regards.
> > > > > >
> > > > > > //Edmondo.
> > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> [email protected]
> > > > > > For additional commands, e-mail:
> > [email protected]
> > > > > >
> > > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [email protected]
> > > > For additional commands, e-mail: [email protected]
> > > >
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.