Hola, I haven't looked at the code, but I'd speculate that the reason this isn't working is because module servlets are "fake", i.e. there's actually a "ModuleServlet" in core that delegates to the servlets you'd define in your module's config.xml file.
One way to get a resource is to put it in your module's "resources" folder, and get it via ModuleUtil.getPathForResource(). If you go that route, could you please add a code snippet to the Module Resources wiki page (https://wiki.openmrs.org/x/PA8z) describing how to do it? -Darius 2011/11/18 Juan David Pastás Rivera <[email protected]> > Hi, > > I am defining a servlet in my module config file. > > And using this code in the servlet class: > > config = this.getClass().getResource("weasis-connector.properties"); > > I have weasis-connector.properties file inside the servlet class folder, > and in metadata, but the resource does not get found. > > Where do I have to put weasis-connector.properties file or what string > should I put to the resource be found? or other thing? > > Thanks > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list _________________________________________ 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]

