Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

User Story #62 (closed)

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

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

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.

comment:3 Changed 18 years ago by jmoore

  • Keywords iteration3 added

comment:4 Changed 18 years ago by jmoore

r897 changes the behavior decided on here. Rather than just ignoring missing files and assuming clients will provide either *.properties files or call System.setProperty(), we're now providing as many defaults as possible. Prompted by #313.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.68447 sec.)

We're Hiring!