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

时间:2015-05-22 04:52:24

标签: java web-services tomcat

我正在开发as rest WS,我想设置系统属性。

function addNote() {
    chrome.storage.local.get('noteTitleList', function (x) {
        var titleSet = x.noteTitleList;
        var titleSetLength = titleSet.length;
        var noteTitle = titleSet[titleSetLength]; // results in an undefined

        $element = document.createElement("section");
        $($element).addClass('note-' + titleSetLength);
        $($element).addClass('notelink');
        $element.appendChild(document.createTextNode(noteTitle)); // section text says undefined
        document.getElementById('saved-note-area').appendChild($element);
        $delete = document.createElement("i");
        $($delete).addClass('fa');
        $($delete).addClass('fa-trash-o');
        $($delete).addClass('trash-' + titleSetLength);
        document.getElementById('saved-note-area').appendChild($delete);
    });
});

当我要运行该项目时,它会出现错误:

String AUTH_CONF = "http://localhost:8080/RestWS/WebContent/WEB-INF/authwl.conf";
System.setProperty("java.security.auth.login.config", AUTH_CONF);

我也把authwl.conf文件放在respwctive文件夹中。对于这个项目,我使用的是tomcat7.0。

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

0 个答案:

没有答案
相关问题