简体   繁体   中英

Cloudfoundry setting JAVA_OPTS environment variable

I am deploying some application in cloudfoundry. I have some library jar and configuration files also inside the application. I want to setup those jar and config file as environment variable, so I did

cf set-env APP_NAME JAVA_OPTS "-Dconf=/location/library.jar"

After these changes, I have to restage the application and I am always getting java.util.zip.ZipException .

Error log from cloud foundry was not helpful. It was because some of the dependency was required by the jar and they were missing. After adding those dependencies inside the workspace solved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM