logo       

Re: War files: packed or unpacked?: msg#00045

java.jetty.general

Subject: Re: War files: packed or unpacked?

Davide,

The etc/demo.xml file has this example:

<Call name="addWebApplication">
<Arg>/jsp-examples/*</Arg>
<Arg><SystemProperty name="jetty.home"
default="."/>/demo/webapps/jsp-examples.war</Arg>
<Set name="extractWAR">true</Set>
</Call>


cheers
Jan

> 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
> _______________________________________________
> jetty-discuss mailing list
> jetty-discuss@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jetty-discuss
>


--
Jan

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



-------------------------------------------------------
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