[jetty-user] add external jars to the classpath
Gaurav Kumar <[email protected]> Wed, 31 Oct 2012 18:24:15 +0530
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAPc-p7ngEahevVEW8WUnL1Md3rZ+zHV67QoZ=2DTs3N0dCaqEg@mail.gmail.com> |
--f46d043c80f2a072b104cd5a67cf Content-Type: text/plain; charset=ISO-8859-1 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. --f46d043c80f2a072b104cd5a67cf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <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> --f46d043c80f2a072b104cd5a67cf--