Skip to content

Instantly share code, notes, and snippets.

@Tharakamora
Tharakamora / Tomcat exception
Created January 30, 2016 06:03
Tomcat exception with alpha release
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:215)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at java.util.jar.JarFile.<init>(JarFile.java:154)
at java.util.jar.JarFile.<init>(JarFile.java:91)
at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:99)
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
@Tharakamora
Tharakamora / Error on loading legacyui
Created January 30, 2016 05:24
Error on loading legacyui
HTTP Status 500 - Servlet.init() for servlet openmrs threw exception
type Exception report
message Servlet.init() for servlet openmrs threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
@Tharakamora
Tharakamora / Browser error when updating the database
Created January 27, 2016 16:18
Browser error when updating the database
HTTP Status 500 - Servlet.init() for servlet openmrs threw exception
type Exception report
message Servlet.init() for servlet openmrs threw exception
description The server encountered an internal error that prevented it from fulfilling this request.
exception
@Tharakamora
Tharakamora / Tomcat error when updating the database.
Created January 27, 2016 16:16
Tomcat error when updating the database.
WARN - AbstractApplicationContext.refresh(487) |2016-01-27 21:42:25,961| Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webComponentRegistrar' defined in URL [jar:file:/home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30/temp/1453911143875.openmrs-lib-cache/legacyui/legacyui.jar!/org/openmrs/web/WebComponentRegistrar.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Filters can not be added to context /openmrs as the context has been initialised
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springfra
@Tharakamora
Tharakamora / Tomcat startup logs
Created January 27, 2016 11:43
Tomcat startup logs
sh bin/catalina.sh run
Using CATALINA_BASE: /home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30
Using CATALINA_HOME: /home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30
Using CATALINA_TMPDIR: /home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30/temp
Using JRE_HOME: /usr/lib/jvm/java-8-oracle
Using CLASSPATH: /home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30/bin/bootstrap.jar:/home/chamara/Desktop/Master/gsoc/tomcat/apache-tomcat-8.0.30/bin/tomcat-juli.jar
27-Jan-2016 16:45:07.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.30
27-Jan-2016 16:45:07.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 1 2015 22:30:46 UTC
27-Jan-2016 16:45:07.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.30.0
27-Jan-2016 16:45:07.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:
@Tharakamora
Tharakamora / Legacyui compile errors
Created January 27, 2016 11:17
Legacyui compile errors
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project legacyui-omod: Compilation failure: Compilation failure:
[ERROR] /home/chamara/Desktop/Master/gsoc/openmrs/openmrs-module-legacyui/omod/src/main/java/org/openmrs/web/attribute/handler/ProviderFieldGenDatatypeHandler.java:[15,42] error: cannot find symbol
[ERROR]
[ERROR] could not parse error message: symbol: class ProviderDatatype
[ERROR] location: package org.openmrs.customdatatype.datatype
[ERROR] /home/chamara/Desktop/Master/gsoc/openmrs/openmrs-module-legacyui/omod/src/main/java/org/openmrs/web/attribute/handler/ProviderFieldGenDatatypeHandler.java:22: error: cannot find symbol
[ERROR] public class ProviderFieldGenDatatypeHandler extends BaseMetadataFieldGenDatatypeHandler<ProviderDatatype, Provider> {
[ERROR] ^
[ERROR]
[ERROR] could not parse error message: symbol: class ProviderDatatype
@Tharakamora
Tharakamora / Tomcat startup warnings
Last active January 27, 2016 10:43
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: modifyD
@Tharakamora
Tharakamora / Backend error log when installing modules serialization.xstream, calculation, htmlwidgets
Created January 16, 2016 08:52
Backend error log when installing modules serialization.xstream, calculation, htmlwidgets
Exception in thread "Thread-18" java.lang.NoClassDefFoundError: org/openmrs/module/Activator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/openmrs/module/Activator
type Exception report
message Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/openmrs/module/Activator
description The server encountered an internal error that prevented it from fulfilling this request.
exception