Dear all,
please help,
after installing OpenMRS through jAVA JDK the web browser took me to openmrs-standalone/initialsetup.
Through that page after login it gives me a white page with a message
The following database updates are being executed:
Description of Update Actions Author
Adding ‘encounter_id’ column to ‘conditions’ table addColumn tableName=conditions; addForeignKeyConstraint baseTableName=conditions, constraintName=conditions_encounter_id_fk, referencedTableName=encounter samuel34
Adding index to order_number column in Orders table createIndex indexName=orders_order_number, tableName=orders miirochristopher
Adding index to accession_number column in Orders table createIndex indexName=orders_accession_number, tableName=orders
It took lots of time (hours) and up to now i did refresh for the page, sign out and in to the page nothing new.
what should i do to overcome this issue please?
Error creating bean with name ‘serviceContext’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘serializationService’ while setting bean property ‘serializationService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serializationService’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘serializationServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serializationServiceTarget’ defined in class path resource [applicationContext-service.xml]: Cannot create inner bean ‘org.openmrs.serialization.SimpleXStreamSerializer#3b1ec220’ of type [org.openmrs.serialization.SimpleXStreamSerializer] while setting bean property ‘serializers’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.serialization.SimpleXStreamSerializer#3b1ec220’ defined in class path resource [applicationContext-service.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.serialization.SimpleXStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.thoughtworks.xstream.converters.collections.TreeMapConverter
could you please walk me through your setup coz i dont know if you installed sdk or your using the referance standalone app plus if you could replicate this error in pastebin and share the link it would be super helpful
there various reason why your facing trouble shooting, could be the jdk version, openmrs runs on version 8 so check your installation plus let me know exactly what your using or intenting do; whether sdk or standalone app
Oh sorry for the error @atta ! The error message you provided indicates that there is an issue with the Spring application context configuration related to the serializationService bean and its dependencies. My assumption is you are missing or improperly configured class com.thoughtworks.xstream.converters.collections.TreeMapConverter , which is needed for the SimpleXStreamSerializer .
Make sure that you have all the required dependencies in your project, including the com.thoughtworks.xstream library and any other dependencies required by the OpenMRS framework. Ensure that these dependencies are correctly included in your project’s classpath.
Ensure that the version of the com.thoughtworks.xstream library you are using is compatible with the version of OpenMRS you are working with. Sometimes, version mismatches can lead to class loading issues.
Also consider reviewing your Spring configuration files applicationContext-service.xml and any related files to ensure that the bean definitions and property configurations are accurate and properly referenced.
The error message indicates that the class com.thoughtworks.xstream.converters.collections.TreeMapConverter could not be initialized. This could be due to various reasons, such as incorrect classpath, missing dependencies, or conflicts. Make sure that the required classes are available and properly initialized.
check on the guide you are following to ensure you are using outdated libraries.