Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessBuilder In Servlet Not Working

Brian L July 26, 2022

I'm currently trying to build a Jira plugin that utilizes a Java servlet and the process builder class to call my Python script which generates HTML.

On localhost, it works completely correctly, I'm guessing because the paths are all correct but as soon as I deploy to the Internet, the Java servlet doesn't call the Python script to change any HTML, it just displays what HTML was generated previously when I tested it on localhost.

This is the path I have currently for calling my Python script:

String path = System.getProperty("user.home") + "/servletDemo/src/main/java/com/brian/demo/servlet/pluginSetup.py"

I then replace the path to make it usable: path = path.replace('\\','/');

And then I build and start the path with ProcessBuilder. It works fine on localhost with the script being called but I can't wrap my head around why the python script isn't being called when deployed onto a Jira server. I checked the browser console and it didn't seem to throw me any major errors.

 

Anyone know what it could be :( 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events