我在IBM Cloud(Bluemix)上部署了两个应用程序,预冷(Node.js,SDK for Node.js™)和 graybox (Jersey,Liberty for Java™)。 )。 预冷会在灰色框中调用API来检索数据。以前它们效果很好,但是灰色框今天不起作用。我几次遇到这个问题,并且尝试了不同的方法,终于解决了:
但是,这一次它们都不起作用。我还调查了几种解决方案,但没有一个解决了我的问题。这些是我尝试过的:
这是Graybox应用程序中的日志跟踪。
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] OUT [INFO ] Scanning for root resource and provider classes in the Web app resource paths:
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] OUT /WEB-INF/lib
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] OUT /WEB-INF/classes
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR [ERROR ] SRVE0271E: Uncaught init() exception created by servlet [Jersey Web Application] in application [myapp]: java.lang.IllegalAccessError: Class com/sun/jersey/spi/scanning/AnnotationScannerListener illegally accessing "private" member of class com/sun/jersey/core/reflection/ReflectionHelper
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.scanning.AnnotationScannerListener.<init>(AnnotationScannerListener.java:89)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.scanning.PathProviderScannerListener.<init>(PathProviderScannerListener.java:59)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:79)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.api.core.WebAppResourceConfig.init(WebAppResourceConfig.java:100)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.api.core.WebAppResourceConfig.<init>(WebAppResourceConfig.java:87)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.api.core.WebAppResourceConfig.<init>(WebAppResourceConfig.java:72)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.WebComponent.getWebAppResourceConfig(WebComponent.java:672)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:414)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.ServletContainer.getDefaultResourceConfig(ServletContainer.java:581)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.WebServletConfig.getDefaultResourceConfig(WebServletConfig.java:87)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:703)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:678)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:203)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at javax.servlet.GenericServlet.init(GenericServlet.java:244)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:332)
2018-07-05T11:08:19.06+1000 [APP/PROC/WEB/0] ERR at [internal classes]