GeoServer 1.5.4 error in Demo Request.

View: New views
8 Messages — Rating Filter:   Alert me  

GeoServer 1.5.4 error in Demo Request.

by PaulToan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I go to GeoServer Demo request page, and try all request, but I get flowing error for all:

<servlet-exception>
java.net.ConnectException: Connection refused
</servlet-exception>

Help me, thanks.

--
   Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding --> chon Unicode (UTF-8). Cam on.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: GeoServer 1.5.4 error in Demo Request.

by Andrea Aime-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Toan Nguyen wrote:
> I go to GeoServer Demo request page, and try all request, but I get
> flowing error for all:
>
>         <servlet-exception>
>         java.net.ConnectException: Connection refused
>         </servlet-exception>
>

Hum, this is strange, it probably means you setup GeoServer with
a proxy? In that case the demo requests are probably not going to
work.

Cheers
Andrea

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: GeoServer 1.5.4 error in Demo Request.

by PaulToan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

First, sorry for my English.
I dont setup GeoServer with a proxy. I use Ubuntu, and install tomcat5.5. I install Geoserver by copying geoserver.war file to webapps folder of Tomcat.
I setup my map in Geoserver, I can load it. But, I cant request from Geoserver in Mapbuilder. I try go to Request Dome of Geoserver, but there are no request success. All return:

<servlet-exception>
       java.net.ConnectException: Connection refused
</servlet-exception>

How can I fix it?
--
   Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding --> chon Unicode (UTF-8). Cam on.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Parent Message unknown Re: GeoServer 1.5.4 error in Demo Request.

by PaulToan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I try reinstall Tomcat by downloading new Tomcat source from Apache's site, and install it in /usr/local/tomcat.
Then install Geoserver, (which run well in my machine). But same error I get:

<servlet-exception> java.net.ConnectException: Connection refused </servlet-exception>

Who know why? Please help me.

On Mon, Oct 6, 2008 at 7:16 PM, Christian Wygoda <crischan@...> wrote:
Hi,

don't install Tomcat from the Ubuntu repositories. It's default security
settings don't work well with Geoserver.
Download Tomcat from their project site and unpack into a directory
somewhere.
(My Tomcat on my Ubuntu box lives in /opt/tomcat for example. I also run
it under my normal user account while setting up and testing things when
access security is of no concern)

See if that helps.




--
   Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding --> chon Unicode (UTF-8). Cam on.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: GeoServer 1.5.4 error in Demo Request.

by PaulToan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have found something, but I dont know why, I hope someone can help me.
Geoserver Demo Request use POST method, when we choose a request, the info will apply to the form in Response Frame, and POST to Geoserver then result will return in Response frame.
But, with a request without post info. I copy URL of request, and paste in AddressBar, enter then result appear.
I think, Geoserver or Tomcat or something dont accept POST method.

--
   Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding --> chon Unicode (UTF-8). Cam on.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: GeoServer 1.5.4 error in Demo Request.

by Justin Deoliveira-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Toan,

Sounds strange indeed. To humor me can you try the following GET request:

http://localhost:8080/geoserver/wfs?request=getcapabilities

And then the following POST request:

<wfs:GetCapabilities service="wfs" xmlns:wfs="http://www.opengis.net/wfs"/>

I suggest using 'curl' as to factor out any issues with the demo request
form itself. If you save that to a file 'foo', you can do:

curl -H 'Content-type: text/xml' -d @foo http://localhost:8080/geoserver/wfs

(There is a more concise command for POST requests but I cant remember
it at the moment :) )

If indeed the POST request fails but the GET requests proceeds then I
agree with you, something is blocking POST request... but i have no idea
of what it may be... I have never seen this issue before.

-Justin

Toan Nguyen wrote:

> I have found something, but I dont know why, I hope someone can help me.
> Geoserver Demo Request use POST method, when we choose a request, the
> info will apply to the form in Response Frame, and POST to Geoserver
> then result will return in Response frame.
> But, with a request without post info. I copy URL of request, and paste
> in AddressBar, enter then result appear.
> I think, Geoserver or Tomcat or something dont accept POST method.
>
> --
>    Nguyễn Đình Toán
>
> -------------------------
> Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding
> --> chon Unicode (UTF-8). Cam on.
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@...
> https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: GeoServer 1.5.4 error in Demo Request.

by David Winslow-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Justin Deoliveira wrote:

> Hi Toan,
>
> Sounds strange indeed. To humor me can you try the following GET request:
>
> http://localhost:8080/geoserver/wfs?request=getcapabilities
>
> And then the following POST request:
>
> <wfs:GetCapabilities service="wfs" xmlns:wfs="http://www.opengis.net/wfs"/>
>
> I suggest using 'curl' as to factor out any issues with the demo request
> form itself. If you save that to a file 'foo', you can do:
>
> curl -H 'Content-type: text/xml' -d @foo http://localhost:8080/geoserver/wfs
>
> (There is a more concise command for POST requests but I cant remember
> it at the moment :) )
>  
I usually use 'curl -Tfoo -XPOST http://localhost:8080/geoserver/wfs' 
for POST requests.

> If indeed the POST request fails but the GET requests proceeds then I
> agree with you, something is blocking POST request... but i have no idea
> of what it may be... I have never seen this issue before.
>
> -Justin
>
> Toan Nguyen wrote:
>  
>> I have found something, but I dont know why, I hope someone can help me.
>> Geoserver Demo Request use POST method, when we choose a request, the
>> info will apply to the form in Response Frame, and POST to Geoserver
>> then result will return in Response frame.
>> But, with a request without post info. I copy URL of request, and paste
>> in AddressBar, enter then result appear.
>> I think, Geoserver or Tomcat or something dont accept POST method.
>>
>> --
>>    Nguyễn Đình Toán
>>
>> -------------------------
>> Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding
>> --> chon Unicode (UTF-8). Cam on.
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users@...
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>    
>
>
>  

-d

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: GeoServer 1.5.4 error in Demo Request.

by PaulToan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My Server at a.b.c.d (an ip address, I cant public it now, sorry), and Geoserver at a.b.c.d:8080/geoserver.
Get request http://a.b.c.d:8080/geoserver/wfs?request=getcapabilities is OK.

I dont know how to execute your command (curl -H 'Content-type: text/xml' -d @foo http://localhost:8080/geoserver/wfs). So I write a php script called curl.php like this:

$data = '<wfs:GetCapabilities service="wfs" xmlns:wfs="http://www.opengis.net/wfs"/>';

$headers = array(           
    'Content-type: text/xml',
    "Accept: image/png; text/xml",
    "Cache-Control: no-cache",
    "Pragma: no-cache",           
    "Content-length: ".strlen($data)
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://a.b.c.d:8080/geoserver/wfs");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 90);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_USERAGENT, $defined_vars['HTTP_USER_AGENT']);

// Apply the XML to our curl call
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

$response = curl_exec($ch);

header('Content-type: text/xml');
echo $response;

and put it on oder server (ex: x.y.z.t) and call http://x.y.z.t/curl.php ==> it Ok.
But when I put curl.php file on the same server with geoserver, and call http://a.b.c.d/curl.php ==> it return nothing (blank page), no error msg too.

And I found that, if I put curl.php file in a.b.c.d server, and change "http://a.b.c.d:8080/geoserver/wfs" to "http://localhost:8080/geoserver/wfs", then call http://a.b.c.d/curl.php ==> it Ok. :D

Why????? and Request Demo Example of Geoserver still return error for all example:

<servlet-exception> java.net.ConnectException: Connection refused </servlet-exception>

--
   Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding --> chon Unicode (UTF-8). Cam on.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users
LightInTheBox - Buy quality products at wholesale price!