You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by juhanay <ju...@gmail.com> on 2009/10/13 17:31:12 UTC
How to deploy plain html-files with geronimo?
Hi
My problem is simple. How to deploy plain html-files or a directory to a
user without packing these things is a war file(like apache web server
does). So that the user may browse the directory stucture with the browser.
WAR-file is not viable option since i cannot pack all the files in a war
file.
--
View this message in context: http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: How to deploy plain html-files with geronimo?
Posted by chi runhua <ch...@gmail.com>.
I found the following pages regarding the default servlet for Tomcat and
Jetty. Hope they are the docs that David mentioned.
Tomcat: http://tomcat.apache.org/tomcat-6.0-doc/default-servlet.html
Jetty:
http://www.mortbay.org/jetty/jetty-6/apidocs/org/mortbay/jetty/servlet/DefaultServlet.html
Juhanay, we're looking forward your sharing on how to enable the feature on
Geronimo. I'm pretty sure that your experiences would help others alot.
Thanks
Jeff C
On Wed, Oct 14, 2009 at 3:42 PM, Quintin Beukes <qu...@skywalk.co.za>wrote:
> Now I learn something new. Thanks :>
>
> Quintin Beukes
>
>
>
> On Tue, Oct 13, 2009 at 8:35 PM, David Jencks <da...@yahoo.com>
> wrote:
> >
> > On Oct 13, 2009, at 10:12 AM, Quintin Beukes wrote:
> >
> >> Why does it have to have a servlet at all?
> >
> > You need a default servlet to serve static content. Jetty and tomcat
> > install one by default in each web app (unless you override it) but these
> > automatic default servlets serve content from inside the war. If you
> pack
> > stuff up in a war, you shouldn't need any servlet :-). If you want the
> > content served from somewhere else, you need to configure a default
> servlet
> > to tell it where the "somewhere else" is.
> >
> > hope this is clearer :-)
> > david jencks
> >
> >
> >>
> >> Quintin Beukes
> >>
> >>
> >>
> >> On Tue, Oct 13, 2009 at 7:05 PM, David Jencks <da...@yahoo.com>
> >> wrote:
> >>>
> >>> On Oct 13, 2009, at 8:31 AM, juhanay wrote:
> >>>
> >>>>
> >>>> Hi
> >>>> My problem is simple. How to deploy plain html-files or a directory to
> a
> >>>> user without packing these things is a war file(like apache web server
> >>>> does). So that the user may browse the directory stucture with the
> >>>> browser.
> >>>> WAR-file is not viable option since i cannot pack all the files in a
> war
> >>>> file.
> >>>
> >>> Why not?
> >>>
> >>> Assuming you have a good answer to that question :-) you can set up a
> >>> web
> >>> app that has only the default servlet for the web container you are
> using
> >>> (jetty or tomcat) and configure it to serve static content from
> wherever
> >>> it
> >>> actually is. Unfortunately I don't have an example of how to do this
> >>> handy,
> >>> but I suspect either jetty or tomcat documentation might explain how to
> >>> do
> >>> this. It would be a good thing to get into our docs as well (assuming
> it
> >>> isn't already there and I just don't know about it).
> >>>
> >>> thanks
> >>> david jencks
> >>>
> >>>> --
> >>>> View this message in context:
> >>>>
> >>>>
> http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
> >>>> Sent from the Apache Geronimo - Users mailing list archive at
> >>>> Nabble.com.
> >>>>
> >>>
> >>>
> >
> >
>
Re: How to deploy plain html-files with geronimo?
Posted by Quintin Beukes <qu...@skywalk.co.za>.
Now I learn something new. Thanks :>
Quintin Beukes
On Tue, Oct 13, 2009 at 8:35 PM, David Jencks <da...@yahoo.com> wrote:
>
> On Oct 13, 2009, at 10:12 AM, Quintin Beukes wrote:
>
>> Why does it have to have a servlet at all?
>
> You need a default servlet to serve static content. Jetty and tomcat
> install one by default in each web app (unless you override it) but these
> automatic default servlets serve content from inside the war. If you pack
> stuff up in a war, you shouldn't need any servlet :-). If you want the
> content served from somewhere else, you need to configure a default servlet
> to tell it where the "somewhere else" is.
>
> hope this is clearer :-)
> david jencks
>
>
>>
>> Quintin Beukes
>>
>>
>>
>> On Tue, Oct 13, 2009 at 7:05 PM, David Jencks <da...@yahoo.com>
>> wrote:
>>>
>>> On Oct 13, 2009, at 8:31 AM, juhanay wrote:
>>>
>>>>
>>>> Hi
>>>> My problem is simple. How to deploy plain html-files or a directory to a
>>>> user without packing these things is a war file(like apache web server
>>>> does). So that the user may browse the directory stucture with the
>>>> browser.
>>>> WAR-file is not viable option since i cannot pack all the files in a war
>>>> file.
>>>
>>> Why not?
>>>
>>> Assuming you have a good answer to that question :-) you can set up a
>>> web
>>> app that has only the default servlet for the web container you are using
>>> (jetty or tomcat) and configure it to serve static content from wherever
>>> it
>>> actually is. Unfortunately I don't have an example of how to do this
>>> handy,
>>> but I suspect either jetty or tomcat documentation might explain how to
>>> do
>>> this. It would be a good thing to get into our docs as well (assuming it
>>> isn't already there and I just don't know about it).
>>>
>>> thanks
>>> david jencks
>>>
>>>> --
>>>> View this message in context:
>>>>
>>>> http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
>>>> Sent from the Apache Geronimo - Users mailing list archive at
>>>> Nabble.com.
>>>>
>>>
>>>
>
>
Re: How to deploy plain html-files with geronimo?
Posted by David Jencks <da...@yahoo.com>.
On Oct 13, 2009, at 10:12 AM, Quintin Beukes wrote:
> Why does it have to have a servlet at all?
You need a default servlet to serve static content. Jetty and tomcat
install one by default in each web app (unless you override it) but
these automatic default servlets serve content from inside the war.
If you pack stuff up in a war, you shouldn't need any servlet :-). If
you want the content served from somewhere else, you need to configure
a default servlet to tell it where the "somewhere else" is.
hope this is clearer :-)
david jencks
>
> Quintin Beukes
>
>
>
> On Tue, Oct 13, 2009 at 7:05 PM, David Jencks
> <da...@yahoo.com> wrote:
>>
>> On Oct 13, 2009, at 8:31 AM, juhanay wrote:
>>
>>>
>>> Hi
>>> My problem is simple. How to deploy plain html-files or a
>>> directory to a
>>> user without packing these things is a war file(like apache web
>>> server
>>> does). So that the user may browse the directory stucture with the
>>> browser.
>>> WAR-file is not viable option since i cannot pack all the files in
>>> a war
>>> file.
>>
>> Why not?
>>
>> Assuming you have a good answer to that question :-) you can set
>> up a web
>> app that has only the default servlet for the web container you are
>> using
>> (jetty or tomcat) and configure it to serve static content from
>> wherever it
>> actually is. Unfortunately I don't have an example of how to do
>> this handy,
>> but I suspect either jetty or tomcat documentation might explain
>> how to do
>> this. It would be a good thing to get into our docs as well
>> (assuming it
>> isn't already there and I just don't know about it).
>>
>> thanks
>> david jencks
>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
>>> Sent from the Apache Geronimo - Users mailing list archive at
>>> Nabble.com.
>>>
>>
>>
Re: How to deploy plain html-files with geronimo?
Posted by Quintin Beukes <qu...@skywalk.co.za>.
Why does it have to have a servlet at all?
Quintin Beukes
On Tue, Oct 13, 2009 at 7:05 PM, David Jencks <da...@yahoo.com> wrote:
>
> On Oct 13, 2009, at 8:31 AM, juhanay wrote:
>
>>
>> Hi
>> My problem is simple. How to deploy plain html-files or a directory to a
>> user without packing these things is a war file(like apache web server
>> does). So that the user may browse the directory stucture with the
>> browser.
>> WAR-file is not viable option since i cannot pack all the files in a war
>> file.
>
> Why not?
>
> Assuming you have a good answer to that question :-) you can set up a web
> app that has only the default servlet for the web container you are using
> (jetty or tomcat) and configure it to serve static content from wherever it
> actually is. Unfortunately I don't have an example of how to do this handy,
> but I suspect either jetty or tomcat documentation might explain how to do
> this. It would be a good thing to get into our docs as well (assuming it
> isn't already there and I just don't know about it).
>
> thanks
> david jencks
>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>
>
Re: How to deploy plain html-files with geronimo?
Posted by David Jencks <da...@yahoo.com>.
On Oct 13, 2009, at 8:31 AM, juhanay wrote:
>
> Hi
> My problem is simple. How to deploy plain html-files or a directory
> to a
> user without packing these things is a war file(like apache web server
> does). So that the user may browse the directory stucture with the
> browser.
> WAR-file is not viable option since i cannot pack all the files in a
> war
> file.
Why not?
Assuming you have a good answer to that question :-) you can set up a
web app that has only the default servlet for the web container you
are using (jetty or tomcat) and configure it to serve static content
from wherever it actually is. Unfortunately I don't have an example
of how to do this handy, but I suspect either jetty or tomcat
documentation might explain how to do this. It would be a good thing
to get into our docs as well (assuming it isn't already there and I
just don't know about it).
thanks
david jencks
> --
> View this message in context: http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
> Sent from the Apache Geronimo - Users mailing list archive at
> Nabble.com.
>