nothing better than a screenshot :)
if a use the web.xml from hudson.war.. the context of the servlet is "/" so
I install the context there.. but I think I could use the war name is
default context.. like deploy in jetty or tomcat.
and I need to figure out why I obtain to // for the context.
I entered :
http://localhost:8080/
and obtain
http://localhost:8080//
2009/2/9 Survivant 00 <survivant00_at_gmail.com>
> it's not a 404.. it's the main page.. but without the static content.
>
> #2 - there is no method in GWS for the static resources.. it's in the
> ServletAdapter.
>
> should I activate the static resource in each servlet ?
>
> the question is more this :
>
> servlet1 : servlet-mapping : *.jsp
> servlet2 : servlet-mapping : *.xdf
>
> but which one will handle *.gif, *.html, *.css ?
>
>
> 2009/2/9 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>
>
> Salut,
>>
>> Survivant 00 wrote:
>>
>>> I started Hudson with GrizzlyWebServer but when I access the root page, I
>>> don,t see images or css.
>>>
>>
>> The application is under /hudson. I guess we can improve the error page
>> here, but I suspect you got a 404, which is expected.
>>
>>
>>> I saw some examples where you put
>>> ServerAdapter.setHandleStaticResources(true)..
>>>
>>> 2 Questions
>>>
>>> # 1 - but when you have multiples servlets how you do that ?
>>>
>>
>> They all needs to be under their own path, e.g. you can invoke the
>> following method to differentiate them:
>>
>>
>> https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/tcp/StaticResourcesAdapter.html#setResourcesContextPath(java.lang.String)<https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/tcp/StaticResourcesAdapter.html#setResourcesContextPath%28java.lang.String%29>
>>
>>
>>
>>> # 2 - there is a way to set the handle on the GrizzyWebServer instead ?
>>>
>>
>> Can you elaborate?
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>>
>>
>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>>
>