All requests to load classes need to go through the openmrs classloader:
Context.loadClass("com.other.class.name");

Or if your library is loading its own classes it should be using hte thread
classloader:
Thread.currentThread().setClassLoader(OpenmrsClassLoader.getInstance());

What are you trying to do?
When are the classes being loaded?
What jars are they?
Are the jars appearing in the .omod file in the lib folder (unzip it and
check)?

Ben

On Thu, Oct 13, 2011 at 7:14 PM, Juan David <[email protected]> wrote:

> Hi,
>
> I think I am not referencing the libraries.
>
> How can I:
>
>     "You might need to set the openmrs classloader onto the current thread
> classloader."
>
>    "Also, referencing from spring app context files seems to be an issue."
>
> They are 7 jars that I use in like 2 files. Do I need to set the
> classloader in each
> file? How could I reference all the jars to work like if they were copied
> in the
> $tomcat_home/webapps/openmrs/WEB-INF/lib folder?
>
> _________________________________________
>
> To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
> [email protected] with "SIGNOFF openmrs-devel-l" in the  body
> (not the subject) of your e-mail.
>
> [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to