Trouble running OpenMRS 1.11.7 war on tomcat

Hi everyone,

I have installed openMRS version 1.11.7 war package on tomcat.

So the problem that am currently facing is that I can’t get it up and running. I configured the setup correctly but after accesing openMRS through the browser as shown below. the page is blank.

After going through the log file i notice a certain error

WARN - SolrResourceLoader.addToClassLoader(161) |2017-06-01 21:26:54,112| Can’t find (or read) directory to add to classloader: …/…/…/dist/ (resolved as: C:\Windows\System32\config\systemprofile\Application Data\OpenMRS\chartsearch\collection1......\dist). WARN - SolrResourceLoader.addToClassLoader(161) |2017-06-01 21:26:54,114| Can’t find (or read) directory to add to classloader: …/…/…/dist/ (resolved as: C:\Windows\System32\config\systemprofile\Application Data\OpenMRS\chartsearch\collection1......\dist). WARN - SolrResourceLoader.addToClassLoader(161) |2017-06-01 21:26:54,114| Can’t find (or read) directory to add to classloader: …/…/…/dist/ (resolved as: C:\Windows\System32\config\systemprofile\Application Data\OpenMRS\chartsearch\collection1......\dist). WARN - SolrResourceLoader.addToClassLoader(161) |2017-06-01 21:26:54,115| Can’t find (or read) directory to add to classloader: …/…/…/dist/ (resolved as: C:\Windows\System32\config\systemprofile\Application Data\OpenMRS\chartsearch\collection1......\dist). WARN - SolrResourceLoader.addToClassLoader(161) |2017-06-01 21:26:54,115| Can’t find (or read) directory to add to classloader: /non/existent/dir/yields/warning (resolved as: C:\Windows\System32\config\systemprofile\Application Data\OpenMRS\chartsearch\collection1\non\existent\dir\yields\warning).

Could these be the cause? How do i solve these.

PLEASE HELP!!!

Restart tomcat and then refresh the page in your browser.

Even after restarting tomcat and refreshing the browser I still get the same error.

I suspect that it is a memory issue and in which case this could be useful: https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors

If it turns out not to be so, then paste the contents of your tomcat logs at pastebin.com

Here is the log file

https://pastebin.com/P0fNrbVU

Did you get this from the tomcat logs folder? If yes, what file name was this?

yes i got it from the tomcat logs folder with the name ‘tomcat7-stdout.2017-06-01

What surprises me is that the standalone version is working perfectly. So i possibly fail to understand why the war fails to work

Did you paste all that was in the log file?

Yes that was everything in the file

Do you have any other log file in the logs folder?

These are all the log files I have in that folder

Can i look at catalina?

There you go

https://pastebin.com/29YDcKLd

Do you have a reason for not using the latest released version of the OpenMRS platform?

I understand that openHmis module with the cashier and inventory do not run on Java 1.8 .

These modules are the reason I am not using the current releases.

Daniel do you have any more advice on this issue?

Can i have a look at the contents of all the log files?

Hi Daniel I apologize for the late reply. below are the pastebin links

https://pastebin.com/UFXQ3Kdv

https://pastebin.com/wbKvGKQj

https://pastebin.com/NWB3TXKh

https://pastebin.com/rt13WMWp

Stop tomcat and delete all files and folders in C:\Program Files\Apache Software Foundation\Tomcat 7.0 Then start tomcat and try again.