Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在maven3.0.4下使用jetty:run运行web项目找不到js配置文件 #332

Closed
weirhp opened this issue Sep 22, 2012 · 3 comments
Closed
Labels
Milestone

Comments

@weirhp
Copy link

weirhp commented Sep 22, 2012

创建正常结构的maven web项目,使用nutz1.b.45.
构建的项目发布在tomcat下,可以正常跑。
但是使用jetty:run,提示找不到js配置文件。
经调试分析,问题可能出在Scans的增强扫描部分,

堆栈信息:
Disks.getCanonicalPath(String) line: 105
FileResource.(String, File) line: 30
Scans$ResourceFileVisitor.visit(File) line: 381
Disks.visitFile(File, FileVisitor, FileFilter) line: 37
Disks.visitFile(File, FileVisitor, FileFilter) line: 42
FileSystemResourceLocation.scan(String, Pattern, List) line: 73
Scans.scan(String, String) line: 190
(loc.scan("", pattern, list);)这个方法的第一参数为空字符串。当运行到new FileResource(String base, File file)
base = Disks.normalize(Disks.getCanonicalPath(base));
base的值变为空
会发生空指针异常。

@wendal
Copy link
Member

wendal commented Sep 22, 2012

我记得已经fix了的

@weirhp weirhp closed this as completed Sep 22, 2012
@zozoh
Copy link
Member

zozoh commented Nov 20, 2012

1.b.46 看看咯

@weirhp
Copy link
Author

weirhp commented Nov 21, 2012

1.b.46中已经解决了该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants