Java 如何为web服务设置本地文件路径?

Java 如何为web服务设置本地文件路径?,java,web-services,tomcat,Java,Web Services,Tomcat,我正在开发RESTWS,我想设置系统属性 String AUTH_CONF = "http://localhost:8080/RestWS/WebContent/WEB-INF/authwl.conf"; System.setProperty("java.security.auth.login.config", AUTH_CONF); 当我要运行项目时,它是一个错误: java.lang.SecurityException: Configuration Error: No such file

我正在开发RESTWS,我想设置系统属性

String AUTH_CONF = "http://localhost:8080/RestWS/WebContent/WEB-INF/authwl.conf";
System.setProperty("java.security.auth.login.config", AUTH_CONF);
当我要运行项目时,它是一个错误:

java.lang.SecurityException: Configuration Error:
No such file or directory
at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)
java.lang.SecurityException:配置错误:
没有这样的文件或目录
位于com.sun.security.auth.login.ConfigFile。(来源未知)
我还将authwl.conf文件放在respwctive文件夹中


如果有人有解决方案,请发布。

您需要放置本地文件的相对路径,而不是http url,本地的文件路径是什么?D://Project//RestWS//WebContent//WEB-INF//authwl.conf