how to add custom jars to GLOBAL jetty classpath on azure web app service?

只愿长相守 提交于 2020-01-24 20:14:07

问题


I'm trying to deploy a java web app on jetty on azure web app service that uses postgres data source. The problem is that I don't know how to add postgres JDBC driver to global jetty classpath, which is required by jetty to create the data source before deploying my app (hence I can't just add the driver to WEB-INF/lib subfolder of my war).

I've tried to create site/wwwroot/lib/ext folder and put the driver there, but it seems that jetty's ext module which should automatically add all jars from this folder to the global classpath is not enabled.

Any suggestions?

Thanks!

来源:https://stackoverflow.com/questions/51324531/how-to-add-custom-jars-to-global-jetty-classpath-on-azure-web-app-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!