Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: JspServlet classpath init param is ignored

werner loibl [celumsolutions]

2006-12-15

Replies:

Mark,

thanks for looking into this! I changed the classpath param according to
your suggestion but still it's not working.

Are you sure the source considers the classpath property in a typical
web setup? In JspRuntimeContext on line 335 the code says:

String cp = (String) context.getAttribute(Constants.SERVLET_CLASSPATH);
if (cp == null || cp.equals("")) {
cp = options.getClassPath();
}

When I start tomcat the if expression always evaluates to false (hence
the Constants.SERVLET_CLASSPATH context attribute is set).

This is the only place where I found a reference to
options.getClassPath().

Again thank you for your support!

Werner


----Mark Thomas wrote:----

werner loibl [celumsolutions] wrote:
> Does anyone know whether the classpath init param is meant to work
resp.
> to be used in this situation?

Looking at the source I can't see any reason why it wouldn't. However,
you shouldn't be passing in a list of URLs you should just specify the
path so try X:/lib/plugin.jar instead.

HTH,

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.