Re: [jetty-user] add external jars to the classpath
Joakim Erdfelt <[email protected]> Wed, 31 Oct 2012 06:50:15 -0700
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAG4zZZCmnpjiC1_-y4POyS=2uAY8sPjM9NHiwvSm2UJ7Cq5q4g@mail.gmail.com> |
--047d7b33d1a6a813d904cd5b2eed Content-Type: text/plain; charset=ISO-8859-1 This blog might help. http://webtide.intalio.com/2011/08/sifting-logs-in-jetty-with-logback/ -- Joakim Erdfelt <[email protected]> webtide.com <http://www.webtide.com/> Developer advice, services and support from the Jetty & CometD experts eclipse.org/jetty - cometd.org On Wed, Oct 31, 2012 at 5:54 AM, Gaurav Kumar <[email protected]> wrote: > Hi, > I have slf4j+logback specific jars currently pushed into each of my wars > in webapp. This causes each web application to create its own log file. So > I wanted to pull out these jars to a common location to be used by all the > wars. > > I tried to push them into jetty/lib or jetty/lib/ext but this causes them > to be loaded at jetty startup which shows unwanted logging behaviour. > > Is there a way I could add jars somewhere to jetty and notify the wars > about their presence to be used by web applications (wars) but not by jetty > startup? > > Thanks. > --047d7b33d1a6a813d904cd5b2eed Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This blog might help.<div><br></div><div><a href=3D"http://webtide.intalio.= com/2011/08/sifting-logs-in-jetty-with-logback/">http://webtide.intalio.com= /2011/08/sifting-logs-in-jetty-with-logback/</a></div><div><br clear=3D"all= "> <div>--</div><div>Joakim Erdfelt <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>></div><div><a href=3D"http://ww= w.webtide.com/" target=3D"_blank">webtide.com</a></div><div><span>Developer= advice, services and support</span><br> <span>from the Jetty & CometD experts</span></div><div><a href=3D"http:= //eclipse.org/jetty/">eclipse.org/jetty</a>=A0-=A0<a href=3D"http://cometd.= org/">cometd.org</a></div><br> <br><br><div class=3D"gmail_quote">On Wed, Oct 31, 2012 at 5:54 AM, Gaurav = Kumar <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex"> <div dir=3D"ltr">Hi,<br>I have slf4j+logback specific jars currently pushed= into each of my wars in webapp. This causes each web application to create= its own log file. So I wanted to pull out these jars to a common location = to be used by all the wars.<br> <br>I tried to push them into jetty/lib or jetty/lib/ext but this causes th= em to be loaded at jetty startup which shows unwanted logging behaviour. <b= r><br>Is there a way I could add jars somewhere to jetty and notify the war= s about their presence to be used by web applications (wars) but not by jet= ty startup?<br> <br>Thanks.<br></div> </blockquote></div><br></div> --047d7b33d1a6a813d904cd5b2eed--