geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <djen...@gluecode.com>
Subject Re: deploying minimal web app
Date Fri, 01 Apr 2005 18:55:20 GMT

On Apr 1, 2005, at 10:47 AM, David Jencks wrote:

>
> On Apr 1, 2005, at 10:33 AM, Scott Anderson wrote:
>
>> David Jencks wrote:
>>
>>>> In my first attempt I noticed that Jetty was
>> ignoring
>>>> the context name I had specified in
>>>> META-INF/context.xml and used the name of the war
>> file
>>>> instead.
>>>
>>> We ignore all jetty-specific deployment info.
>>
>> It turns out that this is a Tomcat specific mechanism
>> for specifying web app context properties. I had
>> thought that this had made it into the servlet spec.
>> However, it would be nice if Jetty shared this
>> mechanism.
>>
>>>> Once I figured this out it also appeared that
>>>> Jetty was ignoring the welcome file specified in
>>>> WEB-INF/web.xml and showing the contents of the war
>>>> directory instead.
>>>
>>> This is very surprising to me.  If you can verify
>> this can you open a
>>> jira issue with a test case?
>>
>> I did some further investigation and discovered that
>> the welcome file list *is* properly supported if there
>> is only one welcome file in the list. I encountered
>> the failure when I was testing with a war generated
>> from NetBeans default web application template which
>> initializes this list with three entries...
>>
>>     <welcome-file-list>
>> 	<welcome-file>
>>             index.jsp
>>         </welcome-file>
>> 	<welcome-file>
>>             index.html
>>         </welcome-file>
>> 	<welcome-file>
>>             index.htm
>>         </welcome-file>
>>     </welcome-file-list>
>>
>> ...but only includes an index.jsp file with the war
>> that is generated. Let me know if you want me to add
>> this issue to JIRA. I have my workaround.
>
> Thanks, I'll look into this.

Did you by any chance convert this to

<welcome-file>index.jsp</welcome-file>

when you made it work?  I think the issue might be that we aren't 
trimming the whitespace properly.

thanks
david jencks


Mime
View raw message