Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] What are the semantics of WebAppContext.setExtraClasspath

Can somebody please reply to this query. 

"The order of class loading is still not clear. Is is correct to assume that whatever paths we specify in WebAppContent.setExtraClasspath(), they will get priority over WEB-INF/lib of the webapp. Also, is it the correct use for this API."

-regards
Amit

--- On Thu, 2/7/09, amit jaiswal <amit_jus@xxxxxxxxx> wrote:

> From: amit jaiswal <amit_jus@xxxxxxxxx>
> Subject: Re: [jetty-users] What are the semantics of WebAppContext.setExtraClasspath
> To: "JETTY user mailing list" <jetty-users@xxxxxxxxxxx>
> Date: Thursday, 2 July, 2009, 4:04 PM
> Hi,
> 
> The order of class loading is still not clear. Is is
> correct to assume that whatever paths we specify in
> WebAppContent.setExtraClasspath(), they will get priority
> over WEB-INF/lib of the webapp. Also, is it the correct use
> case for this API.
> 
> -regards
> Amit
> 
> 
> --- On Thu, 2/7/09, Jan Bartel <janb@xxxxxxxxxxx>
> wrote:
> 
> > From: Jan Bartel <janb@xxxxxxxxxxx>
> > Subject: Re: [jetty-users] What are the semantics of
> WebAppContext.setExtraClasspath
> > To: "JETTY user mailing list" <jetty-users@xxxxxxxxxxx>
> > Date: Thursday, 2 July, 2009, 11:13 AM
> > Amit,
> > 
> > See:
> > http://docs.codehaus.org/display/JETTY/Classloading
> > 
> > regards
> > Jan
> > 
> > 
> > amit jaiswal wrote:
> > > Hi,
> > > 
> > > Can somebody explain the semantics of
> > WebAppContext.setExtraClasspath() method: http://www.mortbay.org/apidocs/org/mortbay/jetty/webapp/WebAppContext.html#setExtraClasspath(java.lang.String)
> > > 
> > > I am using jetty and loading a war file to create
> a
> > webapp. But there is a set of external jars (say in
> > /home/john/common-jars), which should be given
> preference
> > before the jars in WEB-INF/lib directory of the
> webapp.
> > > 
> > > I tried using the
> > setExtraClasspath("/home/john/common-jars") method,
> and it
> > works, but want to know if this is the correct usage
> of the
> > API. Is it correct to assume that setExtraClasspath()
> will
> > always prepend the classpath with the given path?
> > > 
> > > -amit
> > > _______________________________________________
> > > jetty-users mailing list
> > > jetty-users@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/jetty-users
> > 
> > -- Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx
> > | http://www.webtide.com
> > _______________________________________________
> > jetty-users mailing list
> > jetty-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/jetty-users
> >
>


Back to the top