web stats
Mirth Community - View Single Post - Unable to load modified JARs in MC 3.3.0
View Single Post
Old 10-19-2015, 08:12 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
Join Date: Oct 2010
Posts: 7,125
narupley is on a distinguished road

If you're creating separate Directory resources (this is the recommended best practice), then you also need to enable them on the channel(s) you want to use them on. Go to the Summary tab and click on Set Dependencies, then go to the Library Resources tab. Select the contexts you want to include your library in.

If you're dumping everything into custom-lib (this is not recommended), then assuming that the default resource still points to custom-lib then your channels should be linked to it by default. Check to make sure that "[Default Resource]" is checked on those channels (same location as before).

If you're adding or updating JARs, you shouldn't need to restart MC. You should only need to run the Reload Resource task on the Resources settings view.

Also, if you're using custom-lib, then in mirth.properties the "server.includecustomlib" setting determines whether those libraries will be loaded into the overall server classpath or not. This is really only needed when you need a library to override something in MC, not just something you're doing in JavaScript. If you're not sure whether you need it to be enabled, it most likely should not be. If you've upgraded from an earlier version to 3.2.2 or higher, then that property will automatically be migrated to "true" in order to keep the same behavior. In that case you need only set it to "false" and restart the server.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote