I am sure my problem is a common problem, but I cannot seem to find an solution in the forums.
I have a Java application that uses Spring/Hibernate. I package this application up into a batch.jar file that contains all of my class files and applicationContext.xml files. I am also using PropertyPlaceHolderConfigurer in my applicationContext.xml file to load my database specific information. This information is contained in a file called 'database.properties'
I am trying to run my batch on the UNIX command line like the following.
java -classpath $HOME/lib/batch.jar:$HOME/properties/database.properties com.putnam.fams.batch.BatchProcessMain
Spring keeps failing because it cannot find the database.properties file. When I put the database.properties file inside of the batch.jar file it works fine. I need to have it outside of the jar so I am able to change it.
Any help would be appreciated or please send me to a similar post.