dev@grizzly.java.net

Re: Windows file path

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 02 Mar 2009 21:53:50 -0500

Salut,

Jeanfrancois Arcand wrote:
> Salut,
>
> OK I've closed the issue as I haven't tested properly (on Linux). I will
> do some test on win32 and let you know.

OK this is now fixed. I've tested with:

> public class GrizzlyEmbedWebServer {
>
> public static void main( String args[] ) throws Exception {
> GrizzlyWebServer ws = new GrizzlyWebServer("c:/home/");
> System.out.println("Grizzly WebServer listening on port 8080");
> ws.start();
> }
> }

You can either apply the workaround, build grizzly from source or wait
for 1.9.9 release.

Thanks!

-- Jeanfrancois

>
> A+
>
> - Jeanfrancois
>
> Jeanfrancois Arcand wrote:
>> Salut,
>>
>> this is a bug. I've filled:
>>
>> https://grizzly.dev.java.net/issues/show_bug.cgi?id=469
>>
>> and already fixed it. As a Workaround, just add:
>>
>>> GrizzlyAdapter ga = new GrizzlyAdapter(webResourcesPath){
>>>
>>> @Override
>>> public void service(GrizzlyRequest request,
>>> GrizzlyResponse response) {
>>> response.setStatus(404, "Not Found");
>>> }
>>> };
>> > ws.addGrizzlyAdapter(ga);
>>
>> working a on fix :-)
>>
>> -- Jeanfrancois
>>
>> Jeanfrancois Arcand wrote:
>>> Salut,
>>>
>>> paksegu wrote:
>>>>
>>>>
>>>> what could I be doing wrong, no file found?
>>>> http://localhost:8080/index.html
>>>>
>>>>
>>>> @Action
>>>> public void Webserver() {
>>>> GrizzlyWebServer ws = new GrizzlyWebServer("C:/fish2o");
>>>> try{
>>>> jLabel6.setText("Grizzly WebServer listening
>>>> on port 8080");
>>>> ws.start();
>>>> } catch (IOException ex){
>>>> // Something when wrong.
>>>> }
>>>> }
>>>>
>>>>
>>>
>>> Stupid question: is there a index.html file under fish20?
>>>
>>> Thanks!
>>>
>>> -- Jeanfrancois
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>