dev@grizzly.java.net

Re: Windows file path

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

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
>