Announcement Announcement Module
No announcement yet.
ServletContextResource bug? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ServletContextResource bug?

    hi all; i am using 2.0M1
    i am trying to use ServletContextResource to load file from under WEB-INF directory.
    my configuration in as follows:
    <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="schedulerName" value="service-layer-sched"/>
    <property name="configLocation" value="servletcontext:/WEB-INF/"/>
    <property name="triggers">
    note that to make sure i the resource could be loaded i explicitly use the servlet API as follows:
    and got this output (the file was found):
    also, i have no problem putting the properties file in the classpath and loading it via the classpath resource.
    any help would be great.
    P.S: i dont know if this is related but my application is the root application in tomcat meaning that to access my app i use the URL http://localhost (not http://localhost/someApp)

    here is the stack trace of the exception: Could not open ServletContext resource [/servletcontext:/WEB-INF/]
    at textResource.getInputStream(ServletContextResource .java:99)
    at erUtils.fillProperties( 61)
    at org.springframework.scheduling.quartz.SchedulerFac toryBean.initSchedulerFactory(SchedulerFactoryBean .java:607)
    at org.springframework.scheduling.quartz.SchedulerFac toryBean.afterPropertiesSet(SchedulerFactoryBean.j ava:532)
    at AutowireCapableBeanFactory.invokeInitMethods(Abstr
    at AutowireCapableBeanFactory.initializeBean(Abstract
    at AutowireCapableBeanFactory.createBean(AbstractAuto
    at BeanFactory.getBean(
    at BeanFactory.getBean(
    at istableBeanFactory.preInstantiateSingletons(Defaul
    at ationContext.refresh(AbstractApplicationContext.ja va:331)
    at freshableWebApplicationContext.refresh(AbstractRef
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized( 49)
    at org.apache.catalina.core.StandardContext.listenerS tart(
    Last edited by gkatz; Jan 8th, 2006, 03:05 PM.