> Remy Maucherat wrote:
>
> Then those jar files and class files need to be in a directory that won't
possibly
> conflict with jasper if a user has a directory named "classes" in the root
of
> their context which contains JSP's.  Please use WEB-INF/lib and
WEB-INF/classes
> in the work dir context directory.

Good idea. Ok, I'll do that.

> > > Which takes precedence, the shadowed war file in
work/localhost/examples ?
> > > or the unarchived copy in webapps/examples?
> > >
> > > What is the expected behaviour of this feature if you drop a war file
in
> > > a webapp directory?  What if you update a war file?
> >
> > Note: Jasper is temporarily broken when running from a WAR.
>
> Ok, its broke.  But how is this supposed to work?  Inquiring minds want to
know.

Ok, here's the full story.
Up until very recently, ServletContext.getRealPath() was returning fake
paths when running from a WAR. Now, it's returning null (which is the
correct value according to the servlet spec). The problem is that Jasper
still has some parts which are written with the filesystem in mind, and it
doesn't expect to get a null value. So you get a NPE in the Parser.

Remy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to