Setting Java classpath for Beanstalk Worker

0

I've deployed a Procfile with a classpath defined to point to shared libraries. The bundle I'm deploying includes an application's jar and the Procfile. Beanstalk reports:

2022/04/01 21:51:48.299718 [INFO] Failed to start web.service: Unit is not loaded properly: Invalid argument. See system logs and 'systemctl status web.service' for details.

2022/04/01 21:51:48.299758 [ERROR] An error occurred during execution of command [app-deploy] - [FlipApplication]. Stop running the command. Error: Register application failed because the registration of proc web failed: startProcess Failure: starting process "web" failed: Command /bin/sh -c systemctl start web.service failed with error exit status 1. Stderr:Failed to start web.service: Unit is not loaded properly: Invalid argument. See system logs and 'systemctl status web.service' for details.

Procfile looks like this: web: java -Djava.util.logging.SimpleFormatter.format="%2$s %5$s%6$s%n" -Xms512m -Xmx2048m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5017 -classpath "/efs-mount/transferfam/efs/wtg_ecomm2/lib/TomcatShared/axis21.5.4/XmlSchema-1.4.3.jar:/efs-mount/transferfam/efs/wtg_ecomm2/lib/TomcatShared/axis21.5.4/activation-1.1.jar" com.wtg.report.ReportProcessor

Can I not use these arguments to launch a EB worker.

Thanks much.

jack
gefragt vor 2 Jahren41 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen