Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

How to deploy plain html-files with geronimo?

View: New views
6 Messages — Rating Filter:   Alert me  

How to deploy plain html-files with geronimo?

by juhanay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: How to deploy plain html-files with geronimo?

by djencks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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?

by Quintin Beukes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Why does it have to have a servlet at all?

Quintin Beukes



On Tue, Oct 13, 2009 at 7:05 PM, David Jencks <david_jencks@...> 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?

by djencks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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  
> <david_jencks@...> 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?

by Quintin Beukes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Now I learn something new. Thanks :>

Quintin Beukes



On Tue, Oct 13, 2009 at 8:35 PM, David Jencks <david_jencks@...> 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 <david_jencks@...>
>> 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?

by RunHua Chi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <quintin@...> wrote:
Now I learn something new. Thanks :>

Quintin Beukes



On Tue, Oct 13, 2009 at 8:35 PM, David Jencks <david_jencks@...> 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 <david_jencks@...>
>> 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.
>>>>
>>>
>>>
>
>