Worklight控制台未打开



我使用Java 7,当我尝试从Eclipse启动工作灯控制台时,我会收到服务器错误。在浏览器中,我在IBM MobileFirst平台操作控制台中收到消息"服务器错误。请联系服务器管理员。"。应用程序的预览也不可访问。

这是我从控制台的日志:

[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader. [WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader. [WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader. [WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader. [WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader. [WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader. [AUDIT ] CWWKZ0001I: Application WorklightConsole started in 9.391 seconds. [AUDIT ] CWWKZ0001I: Application WorklightAnalytics started in 9.917 seconds. [ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.ExceptionInInitializerError at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44) at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2227) at [internal classes] Caused by: java.lang.IllegalStateException: Could not load 'ContextLoader.properties': class path resource [ContextLoader.properties] cannot be opened because it does not exist ... 6 more [ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.NullPointerException at com.ibm.worklight.admin.common.util.Messages.getResourceString(Messages.java:208) at com.ibm.worklight.admin.common.util.Messages.get(Messages.java:230) at com.ibm.worklight.admin.common.util.Messages.getString(Messages.java:254) at com.ibm.worklight.admin.common.util.GeneralUtil.getProductBuildVersion(GeneralUtil.java:50) at com.ibm.worklight.admin.listeners.WorklightManagementServletContextListener.contextInitialized(WorklightManagementServletContextListener.java:41) at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2227) at [internal classes] [ERROR ] M:IBMFrom_SergeyMobilefirst%20eclipseMobileFirstServerConfigserversworklightworkareaorg.eclipse.osgibundles73datacachecom.ibm.ws.app.manager_94.cacheWEB-INFlibibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified) M:IBMFrom_SergeyMobilefirst%20eclipseMobileFirstServerConfigserversworklightworkareaorg.eclipse.osgibundles73datacachecom.ibm.ws.app.manager_94.cacheWEB-INFlibibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified) [ERROR ] M:IBMFrom_SergeyMobilefirst%20eclipseMobileFirstServerConfigserversworklightworkareaorg.eclipse.osgibundles73datacachecom.ibm.ws.app.manager_94.cacheWEB-INFlibibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified) M:IBMFrom_SergeyMobilefirst%20eclipseMobileFirstServerConfigserversworklightworkareaorg.eclipse.osgibundles73datacachecom.ibm.ws.app.manager_94.cacheWEB-INFlibibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified) [ERROR ] Uncaught.init.exception.thrown.by.servlet ManagementServlet WorklightServices java.lang.ExceptionInInitializerError at org.apache.wink.server.internal.DeploymentConfiguration.initAlternateShortcutMap(DeploymentConfiguration.java:386) at org.apache.wink.server.internal.DeploymentConfiguration.init(DeploymentConfiguration.java:167) at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentConfiguration(RestServlet.java:202) at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:138) at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:103) at javax.servlet.GenericServlet.init(GenericServlet.java:161) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325) at [internal classes] Caused by: java.util.MissingResourceException: Can't find bundle for base name org.apache.wink.common.internal.i18n.resource, locale en_US ... 14 more [ERROR ] SRVE0266E: Error occured while initializing servlets: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:395) at [internal classes] Caused by: java.lang.ExceptionInInitializerError at org.apache.wink.server.internal.DeploymentConfiguration.initAlternateShortcutMap(DeploymentConfiguration.java:386) at org.apache.wink.server.internal.DeploymentConfiguration.init(DeploymentConfiguration.java:167) at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentConfiguration(RestServlet.java:202) at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:138) at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:103) at javax.servlet.GenericServlet.init(GenericServlet.java:161) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325) ... 1 more Caused by: java.util.MissingResourceException: Can't find bundle for base name org.apache.wink.common.internal.i18n.resource, locale en_US ... 14 more

我认为您使用的是Java 8。
Worklight/MobileFirst平台目前不支持Java 8。

请降级到Java 6或7,然后重试。

最新更新