tharaka
(Tharaka Nilushan)
January 27, 2016, 9:56am
1
Application Name: Openmrs 2.0
Version Number: 2.0
Question:
I built the .war in Java 8 and copied to tomcat webapps Tried in both tomcat-7 and tomcat-8.0.30. At the start it shows the following page.
When I logged in, shows the following.
I have being trying doing everything for nearly fivedays. Your help in this is highly appreciated.
Thanks,
@tharaka
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 10:07am
2
What do you have in the logs?
tharaka
(Tharaka Nilushan)
January 27, 2016, 10:44am
3
At the startup it gives the error at:
Tomcat startup warnings
INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2109) |2016-01-27 16:11:57,949| Unable to find a runtime properties file at /home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30/openmrs-runtime.properties
INFO 1/27/16 4:11 PM:liquibase: Reading from `liquibasechangelog`
WARNING 1/27/16 4:11 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
WARNING 1/27/16 4:11 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
WARNING 1/27/16 4:11 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
INFO 1/27/16 4:11 PM:liquibase: Reading from `liquibasechangelog`
WARNING 1/27/16 4:11 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
WARNING 1/27/16 4:11 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
WARNING 1/27/16 4:11 PM:liquibase: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case
This file has been truncated. show original
No logs after that.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 11:13am
4
Try restart tomcat and see what happens.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 11:26am
6
Can i look at the current log?
tharaka
(Tharaka Nilushan)
January 27, 2016, 11:43am
7
At the startup full log is at:
No logs after that.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 11:51am
8
Close the browser, and then reopen it to access openmrs. Send us a screenshot of the browser page.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 12:12pm
10
Log in with the username and password that you earlier on supplied.
tharaka
(Tharaka Nilushan)
January 27, 2016, 12:43pm
11
Still the same comes as follows.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 1:03pm
12
tharaka
(Tharaka Nilushan)
January 27, 2016, 4:18pm
13
I did so. Then everything went find until the final step “Update the database”. This error is given in the tomcat.
This is shown in the browser.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 5:37pm
14
Which version of the legacyui module are you using?
tharaka
(Tharaka Nilushan)
January 27, 2016, 6:21pm
15
I built it myself from the master branch. It is 1.0 SNAPSHOT.
dkayiwa
(Daniel Kayiwa)
January 27, 2016, 6:34pm
16
Pull the latest module changes and rebuild it again. Am also assuming you are using the latest master or 2.0.x branch. Overwrite the compiled module and try again.
1 Like
surangak
(Suranga Kasthurirathne)
January 27, 2016, 7:08pm
17
@tharaka , if i’m right, you’re working on tickets for an OpenMRS module, right? in that case, you might just want to download the OpenMRS war, instead of building it on your own? if you can install OpenMRS 2.0 alpha, and install just the modules you need atop that, you should be fine, right?
1 Like
surangak
(Suranga Kasthurirathne)
January 28, 2016, 11:19pm
18
@tharaka , any luck with this? I hope that all is well
tharaka
(Tharaka Nilushan)
January 30, 2016, 5:24am
19
I tried with both master and 2.0.x branch. But still no luck. This time it starts good. But when loading legacy UI gives this exception . Can you build these two yourself and getinto work. Please let me know the tomcat version, java version and branches of openmrs-core and openmrs-module-legacyui that you are successful with.
tharaka
(Tharaka Nilushan)
January 30, 2016, 5:25am
20
No luck with building myself. It gives errors always. Maybe we need to look into this. However going to try your succession.