Missing R-functionality in WPS 3.3.1

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

Missing R-functionality in WPS 3.3.1

M.Jackenkroll
Hey list,

I would like to use WPS4R, so I copied the "52N WPS 3.3.1"-war-file  
(tried 3.3.2 before, same/similar behavior) in my tomcat7  
webapps-directory. The webapp was build and the coming-with webside is  
availabel. But... the R-algorithms do not work. In the admin console  
only LocalAlgorithmRepository, UploadedAlgorithmRepository and  
ServiceLoaderAlgorithmRepository are listed.

In the web.xml following configuration is made:
         <servlet>
                 <servlet-name>wpsServlet</servlet-name>
                 
<servlet-class>org.n52.wps.server.WebProcessingService</servlet-class>
                 <load-on-startup>1</load-on-startup>
                 <init-param>
                         <param-name>wps.config.file</param-name>
                         
<param-value>/config/wps_config_geotools.xml</param-value>
                 </init-param>
         </servlet>

I noticed several message in the logs. This one appears everytime at the top:
javax.naming.NameNotFoundException: Name [wps.config.file] is not  
bound in this Context. Unable to find [wps.config.file].

When I use an empty config-file (only WPSConfiguration and Server-tag)  
no errors are listed in the log-file, but the webapp could not start.  
It seems that the wps reads the config-file by the path in the  
web.xml, although it is written different in the logs.

Could you explain me this behavior? And more important: Could you tell  
me how I could use the R-repository?

Thanks!

KR
Markus

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Missing R-functionality in WPS 3.3.1

BenjaminPross
Hello Markus,

did you build the webapp yourself? If yes, please follow the guidelines
in this post [1].
If you downloaded the webapp from our website, you will need to
additionally download the GeoTools package [2]. Just unpack this in the
root directory of the WPS webapp.
To set up the R repository afterwards, the post [1] could also be helpful.
The log statement that you noticed is just informational, nothing is
going wrong there. It has something to do with different ways to specify
the path to the config file. You can learn more about this in the WPS
readme [3].

Hope this helps.

Cheers,

Benjamin

[1]
http://geoprocessing.forum.52north.org/Missing-R-functionality-in-WPS-3-3-2-tp4026096p4026097.html
[2] http://52north.org/downloads/send/15-wps/462-wps-3-3-1-geotools-package
[3]
https://github.com/52North/WPS/blob/dev/README.md#non-default-configuration-file

Am 21.07.2015 um 20:06 schrieb [hidden email]:

> Hey list,
>
> I would like to use WPS4R, so I copied the "52N WPS 3.3.1"-war-file
> (tried 3.3.2 before, same/similar behavior) in my tomcat7
> webapps-directory. The webapp was build and the coming-with webside is
> availabel. But... the R-algorithms do not work. In the admin console
> only LocalAlgorithmRepository, UploadedAlgorithmRepository and
> ServiceLoaderAlgorithmRepository are listed.
>
> In the web.xml following configuration is made:
>         <servlet>
> <servlet-name>wpsServlet</servlet-name>
> <servlet-class>org.n52.wps.server.WebProcessingService</servlet-class>
>                 <load-on-startup>1</load-on-startup>
>                 <init-param>
> <param-name>wps.config.file</param-name>
> <param-value>/config/wps_config_geotools.xml</param-value>
>                 </init-param>
>         </servlet>
>
> I noticed several message in the logs. This one appears everytime at
> the top:
> javax.naming.NameNotFoundException: Name [wps.config.file] is not
> bound in this Context. Unable to find [wps.config.file].
>
> When I use an empty config-file (only WPSConfiguration and Server-tag)
> no errors are listed in the log-file, but the webapp could not start.
> It seems that the wps reads the config-file by the path in the
> web.xml, although it is written different in the logs.
>
> Could you explain me this behavior? And more important: Could you tell
> me how I could use the R-repository?
>
> Thanks!
>
> KR
> Markus
>
> _______________________________________________
> Geoprocessingservices mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/geoprocessingservices
> http://geoprocessing.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines


--
Benjamin Proß
Software Engineer
52°North Geoprocessing Community

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
[hidden email]
http://52north.org/

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
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Missing R-functionality in WPS 3.3.1

M.Jackenkroll
Hey Benjamin,

thank you for your reply I downloaded it from your webside and you  
were right, the GeoTools package was missing. After installing it, the  
webservice seems to work as expected.

Cheers,
Markus



_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines