How to run binary/exe that's part of a Java Web Application deployed on HEROKU?

huangapple 未分类评论54阅读模式
英文:

How to run binary/exe that's part of a Java Web Application deployed on HEROKU?

问题

我有一个使用Eclipse开发的动态Web项目,转换为了Maven项目。

我已经导出了WAR包,并将其部署到了HEROKU上。

问题是:

java.io.IOException: 无法运行程序“/app/target/tomcat.21601/webapps/expanded/lib/binary”:错误=13,权限被拒绝

这个二进制文件是由Servlet调用来执行一些操作的,但可能需要使用chmod命令进行设置。

从Heroku控制台,我找不到可以访问这个二进制文件并运行chmod命令的方法,因为WAR包不是一个目录。

我应该如何在Heroku服务器上为Web应用程序中的二进制文件运行chmod命令?

英文:

I have a Dynamic Web Project, developed with Eclipse, converted in a Maven project.

I have exported the WAR, and i have deployed it on HEROKU.

The issue is :

java.io.IOException: Cannot run program "/app/target/tomcat.21601/webapps/expanded/lib/binary": error=13, Permission denied

This binary is called by the servlet for doing some stuffs, but maybe it needs chmod command.

From the Heroku console, I can't find a way to reach the binary and run chmod, cause the WAR is not a directory.

How I can chmod a binary that is part of Web application, on the Heroku machine?

huangapple
  • 本文由 发表于 2020年3月15日 12:07:21
  • 转载请务必保留本文链接:https://java.coder-hub.com/60689651.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定