User Story #62 (closed)
Need clean solution for missing *.properties files.
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Milestone: | 3.0-M2 |
Component: | Deployment | Keywords: | spring,iteration3 |
Cc: | jmarie | Story Points: | n.a. |
Sprint: | n.a. | Importance: | n.a. |
Total Remaining Time: | n.a. | Estimated Remaining Time: | n.a. |
Description (last modified by jmoore)
The client Spring application context expects 3 properties files to be on the
classpath:
- hibernate.properties
- omero.properties
- jndi.properties
The context is *supposed* to ignore missing resources, but it does not. config-local.xml#L49 shows the setting of ignoreResourceNotFound which seems not to be working.
The easiest solution to this is to touch the files somewhere on the classpath, but this should not be required of all clients. We should consider shipping a jar with empty properties, or various jar version (shoola-jboss-jndi.jar) files to solve this problem.
Originally : http://bugs.openmicroscopy.org.uk/show_bug.cgi?id=648
Change History (4)
comment:1 Changed 18 years ago by jmoore
- Description modified (diff)
comment:2 Changed 18 years ago by jmoore
- Cc jmarie added
- Keywords spring added
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 18 years ago by jmoore
- Keywords iteration3 added
See SPR-1102.
Apparently this was fixed in the Spring 1.2.x series and somewhere along the lines got ported to 2.0-M* which we are now using. I've added a test to Preferences3Test (r708) to show this works. If there are any problems, open this back up and reschedule it.