Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #848 (new task)

Opened 3 months ago

Last modified 3 months ago

Module classloaders are not set properly on startup

Reported by: jacobb Assigned to: somebody
Priority: minor Milestone: OpenMRS 1.3
Component: OpenMRS Code Base Keywords: HISA2008
Cc:

Description

When a module is added to OpenMRS, the context classloader of the module is not properly set. In order to fix this issue, OpenMRS needs to be fully restarted after a module has been added. Temporarily, the following line can be added to the startup() method of any affected module's activator:

Thread.currentThread().setContextClassLoader(OpenmrsClassLoader.getInstance());

Change History

06/19/08 11:51:27 changed by bwolfe

The easiest way to find where this would be would be to just follow the logic in the controller. It'll go near wherever OpenmrsClassloader.destroyInstance() is called.

10 nondeveloper points for the bug Jacob.

8 developer points are up for grabs for the fix.