In my Websphere Portal environment, I'm trying to configure a bean that uses a resource found outside of the WAR (it's in some parent classpath for WAS). I'm sure it's there because I can access it using the following:
URL url = getClass().getResource("/config/someProps.properties");
However, in my Spring applicationContext.xml, the following does not work:
<bean id="initBean" class="foo.PropInitializer">
<constructor-arg value="classpath:/config/someProps.properties"/>
</bean>
If I remove the "classpath:", that doesn't help either.
Currently, I'm loading the Spring context using the ContextLoaderListener, but it seems that the parent classpath is not accessible/available to Spring.
Is there a way (using Spring config) to load the parent classpath as well?