I'm having some difficulty setting up an application to be deployed using web start. Simply put, the end user needs to configure the DB properties (as well as a few other things), so I tried to use this example;
http://opensource.atlassian.com/conf...ur +XML+files
But I when the context loads, I get the following message;
My property loader is;Code:org.springframework.beans.factory.BeanInitializationException: Could not load properties from class path resource [WEB-INF/classes/myapp.properties]; nested exception is java.io.FileNotFoundException: Could not open class path resource [WEB-INF/classes/myapp.properties] java.io.FileNotFoundException: Could not open class path resource [WEB-INF/classes/myapp.properties] at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:109) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:120) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:315) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:266) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at myapp.AV.<init>(Unknown Source)
Any ideas? Is this a fundamental issue w/ webstart (probably the wrong forum here, but since the petclinic has a webstart example...) Anyways, TIA. (Also, as I was flailing about, I included the commented out location as well. Am I misunderstanding the "ignoreUnresolvablePlaceholders"...should it ignore the resources it can't find?)Code:<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>/WEB-INF/classes/myapp.properties</value> <!-- <value>classpath:myapp.properties</value> --> </list> </property> <property name="ignoreUnresolvablePlaceholders"> <value>true</value> </property> </bean>


Reply With Quote