[英]Velocity Template - Exception in thread “main” org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource
[英]Exception in thread “main” org.apache.velocity.exception.VelocityException
有谁知道我该如何解决这个问题?
我正在尝试使用Java API与amazonMechanicalTurk
建立连接。
Exception in thread "main"
org.apache.velocity.exception.VelocityException: Error initializing
log: org.apache.log4j.Logger object set as runtime.log.logsystem is
not a valid log implementation.
Caused by: org.apache.velocity.exception.VelocityException:
org.apache.log4j.Logger object set as runtime.log.logsystem is not a
valid log implementation.
帮个忙,与Velocity合作,我了解到最好关闭他该死的日志:
//disabling Velocity log
Velocity.setProperty("runtime.log.logsystem.class", "org.apache.velocity.runtime.log.NullLogSystem");
我只是决定向我的项目中添加其他一些Velocity库。 我的项目只有Apache Velocity jar文件,然后从这里 ,我还将Velocity-Dep添加到我的Maven项目和Yesssssssssss! 胜利! 还在问为什么?! 因为我的项目运行良好,直到我决定将java-aws-mturk库更新为1.7.0版; 然后我得到那个错误!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.