PharmEasyEngg/lampo

Error in running master.war

Opened this issue · 5 comments

Hi, Getting this error while running the master.war file. @sarathpharmeasy Please help us resolving this issue

no main manifest attribute, in build/libs/master.war

./gradlew clean build bootJar -x test try running this command and then java -jar build/libs/master.war @Sivasankaramalan

I've done the same but still the issue exists. Please find the logs below

❯ ./gradlew clean build bootJar -x test


> Task :compileJava
Note: /Users/**/Desktop/lampo/master/src/main/java/com/lampo/device_lab/master/utils/CommonUtilities.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 13s
8 actionable tasks: 8 executed
❯ java -jar build/libs/master.war
no main manifest attribute, in build/libs/master.war

~/Desktop/lampo/master master* ❯                                                                                                                                                                                                            13:34:54

Can we connect over a call to resolve this? @sarathpharmeasy

Able to resolve this by running the jar file java -jar build/libs/master-1.0.0-RELEASE.jar. Both the Master and slave applications are running fine, but there is an issue in downloading the chromedriver, it's always trying to download from this URL, which does not have any files. https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_mac32.zip

In Master seeing the below stackoverflow issue:

15:05:45.085 [http-nio-80-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.StackOverflowError] with root cause
 at com.lampo.device_lab.master.service.PhoneImageService.getPhotoByName(PhoneImageService.java:101)

@Sivasankaramalan can you please pull from master branch and try now?