error SLF4J

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

error SLF4J

christophe
hello


i run the WPSClientExample.java from  org.n52.wps.client.example the one imported with the wps maven project in step 5 in the tuto: https://wiki.52north.org/bin/view/Geoprocessing/TutorialWpsEclipseIndigoGit#5_Import_the_WPS_project_in_Ecli

i got this error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

i downloaded the SLF4J 1.7.zip and put the jar files in maven i'm using with eclipse (D:\install_wps\maven\lib)
but nothing changed

here is the complete error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.io.IOException: Could not initialize WPS http://localhost:8080/wps/WebProcessingService
    at org.n52.wps.client.WPSClientSession.getProcessDescriptionsFromCache(WPSClientSession.java:185)
    at org.n52.wps.client.WPSClientSession.getProcessDescription(WPSClientSession.java:201)
    at org.n52.wps.client.example.WPSClientExample.requestDescribeProcess(WPSClientExample.java:118)
    at org.n52.wps.client.example.WPSClientExample.testExecute(WPSClientExample.java:57)
    at org.n52.wps.client.example.WPSClientExample.main(WPSClientExample.java:193)
org.n52.wps.client.WPSClientException: Error occured while retrieving capabilities from url: http://localhost:8080/wps/WebProcessingService?Service=WPS&Request=GetCapabilities&version=1.0.0&
    at org.n52.wps.client.WPSClientSession.retrieveCapsViaGET(WPSClientSession.java:332)
    at org.n52.wps.client.WPSClientSession.connect(WPSClientSession.java:130)
    at org.n52.wps.client.example.WPSClientExample.requestGetCapabilities(WPSClientExample.java:98)
    at org.n52.wps.client.example.WPSClientExample.testExecute(WPSClientExample.java:64)
    at org.n52.wps.client.example.WPSClientExample.main(WPSClientExample.java:193)


thank you

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: error SLF4J

BenjaminPross
Hi Christophe,

This has most likely nothing to do with SLF4J. Please make sure that the URLs in the capabilities
match your setup, i.e. if your WPS runs at http://localhost:8080/wps/WebProcessingService, in the capabilities it must appear:

...
        <ows:OperationsMetadata>
                <ows:Operation name="GetCapabilities">
                        <ows:DCP>
                                <ows:HTTP>
                                        <ows:Get xlink:href="http://localhost:8080/wps/WebProcessingService"/>
...

You can change the settings in the wps_config.xml or using the webadmin console.

Hope this helps.

Cheers,

Benjamin
Reply | Threaded
Open this post in threaded view
|

Re: error SLF4J

christophe
thank you for the reply. Well, when i execute the url : http://localhost:8080/wps/WebProcessingService?Request=GetCapabilities&Service=WPS

i have:

<ows:OperationsMetadata><ows:Operation name="GetCapabilities"><ows:DCP><ows:HTTP><ows:Get xlink:href="http://localhost:8080/wps/WebProcessingService"/></ows:HTTP></ows:DCP></ows:Operation><ows:Operation name="DescribeProcess"><ows:DCP><ows:HTTP><ows:Get xlink:href="http://localhost:8080/wps/WebProcessingService"/></ows:HTTP></ows:DCP></ows:Operation><ows:Operation name="Execute"><ows:DCP><ows:HTTP><ows:Get xlink:href="http://localhost:8080/wps/WebProcessingService"/><ows:Post xlink:href="http://localhost:8080/wps/WebProcessingService"/></ows:HTTP></ows:DCP></ows:Operation></ows:OperationsMetadata>

But in the wps_config.xml  i don't have the word GetCapabilities



On Fri, Aug 1, 2014 at 6:14 AM, BenjaminPross <[hidden email]> wrote:
Hi Christophe,

This has most likely nothing to do with SLF4J. Please make sure that the
URLs in the capabilities
match your setup, i.e. if your WPS runs at
http://localhost:8080/wps/WebProcessingService, in the capabilities it must
appear:

...
        <ows:OperationsMetadata>
                <ows:Operation name="GetCapabilities">
                        <ows:DCP>
                                <ows:HTTP>
                                        <ows:Get xlink:href="http://localhost:8080/wps/WebProcessingService"/>
...

You can change the settings in the wps_config.xml or using the webadmin
console.

Hope this helps.

Cheers,

Benjamin



--
View this message in context: http://geoprocessing.forum.52north.org/error-SLF4J-tp4025729p4025731.html
Sent from the 52° North - Geoprocessing Community Forum mailing list archive at Nabble.com.
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org


_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Reply | Threaded
Open this post in threaded view
|

Re: error SLF4J

Daniel
Am 01.08.2014 um 20:15 schrieb christophe joey:

> thank you for the reply. Well, when i execute the url :
> http://localhost:8080/wps/WebProcessingService?Request=GetCapabilities&Service=WPS
>
> i have:
>
> <ows:OperationsMetadata><ows:Operation
> name="GetCapabilities"><ows:DCP><ows:HTTP><ows:Get
> xlink:href="http://localhost:8080/wps/WebProcessingService"/></ows:HTTP></ows:DCP></ows:Operation><ows:Operation
> name="DescribeProcess"><ows:DCP><ows:HTTP><ows:Get
> xlink:href="http://localhost:8080/wps/WebProcessingService"/></ows:HTTP></ows:DCP></ows:Operation><ows:Operation
> name="Execute"><ows:DCP><ows:HTTP><ows:Get
> xlink:href="http://localhost:8080/wps/WebProcessingService"/><ows:Post
> xlink:href="http://localhost:8080/wps/WebProcessingService"/></ows:HTTP></ows:DCP></ows:Operation></ows:OperationsMetadata>
>
> But in the wps_config.xml  i don't have the word GetCapabilities

I think Benjamin meant that you can change the port and hostname (i.e.
"localhost" and "8080") in the settings file.

So the server seems to be running fine.

/Daniel


>
>
> On Fri, Aug 1, 2014 at 6:14 AM, BenjaminPross <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi Christophe,
>
>     This has most likely nothing to do with SLF4J. Please make sure that the
>     URLs in the capabilities
>     match your setup, i.e. if your WPS runs at
>     http://localhost:8080/wps/WebProcessingService, in the capabilities
>     it must
>     appear:
>
>     ...
>              <ows:OperationsMetadata>
>                      <ows:Operation name="GetCapabilities">
>                              <ows:DCP>
>                                      <ows:HTTP>
>                                              <ows:Get
>     xlink:href="http://localhost:8080/wps/WebProcessingService"/>
>     ...
>
>     You can change the settings in the wps_config.xml or using the webadmin
>     console.
>
>     Hope this helps.
>
>     Cheers,
>
>     Benjamin
>
>
>
>     --
>     View this message in context:
>     http://geoprocessing.forum.52north.org/error-SLF4J-tp4025729p4025731.html
>     Sent from the 52° North - Geoprocessing Community Forum mailing list
>     archive at Nabble.com.
>     _______________________________________________
>     Geoprocessingservices mailing list
>     [hidden email]
>     <mailto:[hidden email]>
>     http://list.52north.org/mailman/listinfo/geoprocessingservices
>     http://geoprocessing.forum.52north.org
>
>
>
>
> _______________________________________________
> Geoprocessingservices mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> http://geoprocessing.forum.52north.org
>


--
Daniel Nüst
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11

http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org