logo       

War files: packed or unpacked?: msg#00043

java.jetty.general

Subject: War files: packed or unpacked?

Hi,
I'm using Jetty 5.0 embedded for a web console of a POJO application. I
start my web console through a standard web application war file.
I'm able to succesfully run JSP pages which access to my app only if I
unpack the war file. On the Jetty readme file I saw:

JSP Classpaths
--------------
The context classloader is passed to the Jasper JspServlet and is used
as the parent loader of the JspLoader.
A file classpath is also passed for used by the JSP compiler. Note that
if the context is a packed WAR file, then there is no reasonable file
based classpath that can be passed to the compiler.

If this proves to be a problem for you, then unpack your WAR files
(which is what most other containers do by default anyway).

Is there any way to configure jetty to automa(g)ically unpack the war
file? (i.e. through some tag in xml file) I saw that the
addWebApplications method has a boolean "extract" parameter and it
works.
How to do the same with the "addWebApplication"?

Thank you in advance

--
Davide


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise