I'm trying to add a script to GeoServer so I can create my own rendering transformation. However, I'm having trouble installing the scripting extension as outlined here.

The script uses the GeoScript Groovy API. I've added the groovy plugin files from the nightly build server to the WEB-INF/lib folder on my local machine, but I'm not getting the script directory appear in the GeoServer GUI after I restart. The docs only outline the process for installing the Python script extension, not the Groovy one.

I'm using GeoServer on my local machine which runs Windows 10. Is there something I'm missing to enable the scripting extension?

  • what does the log file say? – Ian Turton Jun 27 '17 at 19:20
  • @iant it does not seem to be creating one. It's a brand new installation and the logs folder has one file in it called keepme.txt – firefly-orange Jun 27 '17 at 19:32
  • does tomcat have write permission to the data directory? – Ian Turton Jun 28 '17 at 7:41
  • @iant I used the standalone windows installer. So as I understand it, I don't need Tomcat. Is that correct? – firefly-orange Jun 28 '17 at 12:16
  • OK then who ever runs geoserver needs write perms to the data dir, if you have no log file then scripting is the least of your issues, I'm surprised GeoServer starts at all. – Ian Turton Jun 28 '17 at 12:19

After installing the script extension, a script folder is created in the data_dir folder, it just does not appear in the GUI as the GeoServer docs indicate it should.

I had to make a wps folder in the new scripts one. I copied my script to the wps folder and it now shows up in the WPS request builder

Turns out I was looking in the wrong log folder as suggested by @iant. Noob mistake!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.