dev@grizzly.java.net

Re: Windows file path

From: paksegu <paksegu_at_yahoo.com>
Date: Tue, 3 Mar 2009 00:01:00 -0800 (PST)

Thanks but still no sucess with build 1.9.9

Ransford Segu-Baffoe

paksegu_at_yahoo.com

http://www.noqmx.com/
https://serenade.dev.java.net/

--- On Mon, 3/2/09, Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM> wrote:

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Subject: Re: Windows file path
To: dev_at_grizzly.dev.java.net
Date: Monday, March 2, 2009, 9:53 PM

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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
For additional commands, e-mail: dev-help_at_grizzly.dev.java.net