OpenGovIntelligence / json-qb-api-implementation

3 stars 3 forks source link

mvn project structure to avoid classpath errors #10

Open mohadelrezk opened 7 years ago

mohadelrezk commented 7 years ago

when running the service from command line I faced this error:

SEVERE: java.io.FileNotFoundException: property file 'config.prop' not found in the classpath java.io.FileNotFoundException: property file 'config.prop' not found in the classpath

possibly you will not face this if you are running the service from IDE.

the solution was to rearrange the folder structure to conform with mvn structure:

src>main>java>{all packages and sources} src>main>resources {here mvn expects to find the config.prop file}