hello everyone. i’m new in openmrs… after creating my first module and inserting it on the platform(according to the book’s “openmrs-devmanual” indications)… i can’t find the class namemodule.java extends BaseOpenmrsObject implements Serializable and .hbm.xml file to update.
and i have this page when i go on “manage module”"
What are you really trying to create(reference and application). that page shows 404 meaning the page is not found. j guess the error may not come from hibernate class in the first case,
Can you first run as maven test(jetty:run) and see the output from console. j suggest you first run the tests .@dlector
@dlector, reference application is not a server though it uses many servers but specifically it uses tomcat server thats why you need to locate localhost:8080/ after starting the reference application. can you please paste the error in the pastebin or share the screen shot, it will be better.to ses the error and help you thanks
i meant “Distribution”… i think I am a little lost.
I had this error while uploading the module “Request processing failed; nested exception is java.lang.IllegalStateException: BeanFactory not initialized or already closed - call ‘refresh’ before accessing beans via the ApplicationContext” …
I restarted my computer, I saw the module using this page http://localhost:8081/openmrs/admin/… (i chose 8081 as port) when i click on it i have "HTTP status 404 " @sharif
Hi @dlector, have you uploaded what your trying to work on to git hub ?? can you share the github repo here ??
About the error , The sdk has a bug, that is the auto-generated controller by the sdk cant map to the Hello-world jsp page created , and that hasnt yet been worked on, so its a little work needed to debug that in your module
@sharif
if i want to insert a module that will be able to communicate (both ways) data with openmrs database. I have to configure which server? i choose which approach openmrs SDK or openmrs standalone …?
Hello @mozzy… I’m just trying to insert the basic module before attacking the project I’m working on.
I have not created a repo on git yet. How can I fix the bug?
j think he is trying to mean that he created a module but when he is trying to upload it openmrs standalone, it brings error. @mozzy j think we need to upload “omod” into the openmrs standalone. @dlector, we need to see the code example or the log error atleast…
yes … I follow the indications of the book “open-mrs devmanual”… I think I made a mistake. when i set up the Openmrs server i chose “distribution” when i created the module i chose “platform”
create a platform or reference application module(depending on what you want) using the sdk.
Then deploy the module in a standalone application not the SDK server. life will be easier for you running a standalone (either platform or reference apllication), depending on the kind of module you created
can I have two openmrs server? setup Distribution after setup platform with the same link for the database , the same username ,the same password , the same port or another port… like platform use 8080, Distribution use 8081…