gradle bootdebug:应用程序无法启动并且构建失败

时间:2017-07-24 06:43:08

标签: java gradle guice

我正在尝试运行我的后端项目来调用API以在我们的HOMOL环境中获取患者的数据

不幸的是,在尝试运行命令“gradle bootrun / bootdebug / runapp”时,我的gradle会抛出以下错误。 这对我来说已经过了一个星期了,而且我仍然无能为力,因为我在这里缺少了什么。

有任何帮助可以解决这个问题吗?

"Exception:
C:\Java\Projects\process tasy\tasy-tws\tasy-tws-backend\tws-backend\philips-ms-exam>gradle runapp
:philips-ms-commons:compileJava UP-TO-DATE
:philips-ms-commons:processResources UP-TO-DATE
:philips-ms-commons:classes UP-TO-DATE
:philips-ms-commons:jar
:philips-ms-app-boot:compileJava
:philips-ms-app-boot:processResources UP-TO-DATE`enter code here`
:philips-ms-app-boot:classes
:philips-ms-app-boot:jar
:philips-ms-exam:compileBootJava UP-TO-DATE
:philips-ms-exam:processBootResources UP-TO-DATE
:philips-ms-exam:bootClasses UP-TO-DATE
:philips-ms-exam:compileJava
:philips-ms-exam:processResources UP-TO-DATE
:philips-ms-exam:classes
:philips-ms-exam:pathingJar
:philips-ms-exam:bootRun
Exception in thread "main" com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error instantiating application

1 error
        at com.philips.app.boot.PhilipsBoot.main(PhilipsBoot.java:33)
Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error instantiating main module

1 error
        at com.philips.app.boot.PhilipsInjector.loadMainModule(PhilipsInjector.java:174)
        at com.philips.app.boot.PhilipsInjector.<init>(PhilipsInjector.java:35)
        at com.philips.app.boot.PhilipsInjector.fromParams(PhilipsInjector.java:45)
        at com.philips.app.boot.PhilipsBoot.main(PhilipsBoot.java:29)
Caused by: java.lang.ClassNotFoundException: com.philips.tws.boot.GuiceModule
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.philips.app.boot.PhilipsInjector.loadMainModule(PhilipsInjector.java:170)
        ... 3 more
:philips-ms-exam:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':philips-ms-exam:bootRun'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 45.38 secs"

0 个答案:

没有答案