typhon-project / typhon-polystore-api

Typhon Polystore API
Eclipse Public License 2.0
2 stars 0 forks source link

typhon-polystore-service_1 | Error: Could not find or load main class com.clms.typhonapi.Application #18

Closed G10rg0s closed 3 years ago

G10rg0s commented 3 years ago

To overcome the issues that we encountered in https://github.com/typhon-project/typhon-polystore-api/issues/17 we tried to remove the wait-for-it which waits for the mongo database to come up and move directly to executing the java command. At that point the image generates the following error

ote-docker-compose_typhon-polystore-service_1 exited with code 1
ote-docker-compose_typhon-polystore-service_1 exited with code 1
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application
typhon-polystore-service_1  | Error: Could not find or load main class com.clms.typhonapi.Application
typhon-polystore-service_1  | Caused by: java.lang.ClassNotFoundException: com.clms.typhonapi.Application

This sort of indicates that the image is not finding expected libs in the CLASSPATH or the CLASSPATH might be misconfigured in our environment?

We are not sure whether this is a Deployment or CI issue so we decided to open both issues in the service that generated them. Please advise!