我在写一些Quartz作业。石英属性文件和石英作业xml保存在src/main/resources/quartz /文件夹下。无法从web.xml中的Maven资源文件夹中提到属性文件作为上下文参数值
我提供路径石英属性文件是这样的:
<!-- Quartz schedular context parameters -->
<context-param>
<param-name>quartz:config-file</param-name>
<param-value>classpath*:quartz.properties</param-value>
</context-param>
我得到异常: org.quartz.SchedulerException:属性文件:“类路径*:quartz.properties”无法读取。 [见嵌套异常:java.io.FileNotFoundException:类路径*:quartz.properties(没有这样的文件或目录)]
我尝试添加在/ WEB-INF /石英夹石英属性文件并给路径
<param-value>classpath*:quartz.properties</param-value>
in web xml。
请建议我是否做错了什么。
UPDATE:
appFolder - WEB-INF
|_ classes
|_ quartz (with properties file in it)
|_ com (all class files in it)
|_ lib
|_ spring (spring-servlet.xml in it)
|_ view (jsp files in it)
|_ web.xml
你可以在文章中的战争中的WEB-INF文件夹中包含文件和文件夹结构吗? – Sudhakar 2013-02-23 07:51:10
@Sudhakar请参阅更新。 – 2013-02-23 08:03:04