I have a simple web application which was working fine when I had default package. when I added package & moved the classes to them, the deployment fails with error :
var page = require('webpage').create(),
domain = 'http://www.fagg-afmps.be',
fs = require('fs');
phantom.casperPath = 'C:/casperjs';
phantom.injectJs('C:/casperjs/bin/bootstrap.js');
fs.changeWorkingDirectory("C:\Projects\Inactive medicins");
var casper = require('casper').create({
pageSettings: {
webSecurityEnabled: false,
verbose: true
}
});
casper.userAgent("Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36")
casper.start(domain + '/nl/');
casper.then(function(){
var xlsLinkOriginal = this.evaluate(function(){
return $('.XLSLink').attr('href');
});
var filename = xlsLinkOriginal.substring(xlsLinkOriginal.lastIndexOf('/') + 1);
var linkPath = domain + xlsLinkOriginal.substring(0,xlsLinkOriginal.lastIndexOf('/') + 1);
try{
//file information
this.echo('filename: ' + unescape(filename));
this.echo('path: ' + linkPath + unescape(filename));
this.download(linkPath, unescape(filename));
}catch(e){
this.echo(e);
}
});
casper.run(function() {
this.echo('Done.').exit();
});
I tried deleting the old project & creating a new one. But somehow the old reference still exists. How can I remove the old references.
I am using Java 7, Tomcat 8 & eclipse
答案 0 :(得分:0)
谢谢大家的帮助。
我确定了问题的解决方案。
在web.xml中,pthread_create
和servlet-class
都应完全合格,如:
servlet-name
答案 1 :(得分:0)
从server.xml中删除旧项目的条目 或删除旧服务器及其文件夹并创建新服务器,然后重启你的日食。
我希望它能帮到你..!