It seems that your problem has to do with using a java version > 8. Please see the following page:
The easiest is probably going to be to downgrade to java 8 (I have all my servers running on java 8). Or else follow the instructions above to provide jaxb.
BTW I believe this was your problem yesterday as well. The encryptionpassword stuff was a bit of a red herring - though useful reading anyhow
Thanks James… and absoutely it was all team effort of @bobj the champ, @Emma_Kassy@Knut_Staring and @clairebre in identifying the problem areas with DHIS2 versions compatability with JAVA, Tomcat and PostgreSQL…
I think this all needs to be documented with DHIS2.org aswell that their versions are not working great with the new versions of all depending frameworks and architecture.
Or they should release each version with the required versions of the relevant softwares.
Now we are facing another issue of importing Sample Database to the PostgreSQL. I guess now this is related to the Dump taken from which version of the Postgre is not known. Its giving Invalid Command Errors continuously while importing the database.
Do you have any further solution to the import of the sample database in version 2.29 and 2.30… Please advice.
Well done Rahul for persevering. We had a couple of wrong turns but got there in the end.
I am not sure if the incompatibility with newer java versions is documented anywhere but I know that the developers are aware and there is discussion about it. There a couple of awkward issues (like this jaxb business).
This has been quite a long thread so I suggest starting a fresh one with your fresh query about importing db. Its going to help with someone ever trying to find it again if it has its own thread with appropriate title etc
Dear All,
I need your support to sort out this error message HTTP Status 404 – Not Found
I am facing this issue since the last week.
I am using JAVA8 and Tomacat 8.5 , DHIS2 2.29 Verison and postgresql-9.6
Hello @Rahul. Thank you for your notes regarding the issue 404 when launching dhis2 server. I am facing the same issue and tried all the steps correctly (I think). I have read all the messages here in this forum. I use Java 8, Tomcat 9.0.41 and dhis2 v.2.35.1.
Could you please provide some insight to solve the problem. Thank you.
I would advice opening a new topic discussion and putting some information so we can help troubleshooting. Do you have logs that you can share (even screenshot is fine)?
Hello @jaime.bosque Jaime. Sorry I have missed your message and sorry for late reply because there was no notification pop up. I share the screenshot here for your review. I have set up the pgAdmin4 and I think it went well. When going to the dhis2 url, I encountered 404 every time.
This means that Tomcat is not running on that port. I am not sure what edb is but it is taking the port that you have probably assigned to Tomcat in your config files. Probably if you check the starting logs of Tomcat / Catalina you will see that it complains about not being able to start.
You either stop that EDB or you modify Tomcat to listen in another port…and then you access DHIS via http://localhost:NEWPORT/dhis