Installing webservices.rest module

Has anyone have had any problems deploying webservices.rest omod in tomcat? We are using Tomcat 6.0.36 with Sun Java 1.6.0_45 on Ubuntu 14.04. This is an openmrs-core 1.9.2 instance and when I deploy the webservices.rest module I get the following error below. The same omods work fine with Jetty.

The following error occurred at startup: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/tmp/tomcat6-tmp/1434976070426.openmrs-lib-cache/reportingobjectgroup/lib/reportingobjectgroup-api-1.0.4.4-SNAPSHOT.jar!/org/openmrs/module/reportingobjectgroup/serializer/ObjectGroupDefinitionConverter.class]; nested exception is java.io.FileNotFoundException: class path resource [org/openmrs/module/serialization/xstream/converter/BaseShortConverter.class] cannot be opened because it does not exist org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/tmp/tomcat6-tmp/1434976070426.openmrs-lib-cache/reportingobjectgroup/lib/reportingobjectgroup-api-1.0.4.4-SNAPSHOT.jar!/org/openmrs/module/reportingobjectgroup/serializer/ObjectGroupDefinitionConverter.class]; nested exception is java.io.FileNotFoundException: class path resource [org/openmrs/module/serialization/xstream/converter/BaseShortConverter.class] cannot be opened because it does not exist

What exact version of the module is it? Does it happen consistently? Or randomly? Or have you tried it only once? Giving a link to the entire log would also be very helpful, just in case this is caused by something else.

It happens consistently. I have tried many versions of web services.rest mood (2.9, 2.10, latest 2.12). Always get errors like the ones included in this log. If I delete web services.rest omod from the modules folder, openmrs starts with no problems. Thanks!

Could this be that the most recent platform releases bundle a webservices.rest module already? Perhaps there is a bug in the code where you try to override this with a newer version.

The log looks incomplete. Or did i miss something?

1 Like

@cioan did you ever resolve this?

@samprogramiz, Not sure whether or not we had an answer to the question above. It is obsolete now, we no longer use that type of environment. Thanks.

1 Like

@cioan I am experiencing this while running tests for a module that depends on reporting-api 1.16, I thought I could try your ‘solution’