访问部署在tomcat上的worklight服务器时出错

时间:2013-04-09 04:55:07

标签: deployment unique ibm-mobilefirst

我将war文件和适配器文件部署到tomcat,一切都很好,但是当我尝试访问worklight服务器时,请求是

  

[http://10.30.3.11:8080/nantian/apps/services/api/attendance/android/query]

并且logcat出现此错误

  

[http://10.30.3.11:8080/nantian/apps/services/api/attendance/android/query]失败。州:500,回复:    服务器无法处理来自应用程序的请求。请稍后再试。[http://10.30.3.11:8080/nantian/apps/services/api/attendance/android/query]无法读取未定义的属性“错误”

并且tomcat出现以下错误:

  

java.lang.RuntimeException:唯一约束:找到2个bean实现接口com.worklight.server.report.api.GadgetReportsService(在4个春季应用程序上下文中)。       在com.worklight.server.bundle.api.ServiceManager.getServiceConsumer(ServiceManager.java:133)       在com.worklight.core.bundle.CoreServiceManager.getGadgetsReportService(CoreServiceManager.java:47)       在com.worklight.core.auth.impl.AuthenticationContext.logLoginActivity(AuthenticationContext.java:337)       在com.worklight.core.auth.impl.AuthenticationContext.checkAuthentication(AuthenticationContext.java:495)       在com.worklight.core.auth.impl.AuthenticationContext.processRealms(AuthenticationContext.java:396)       在com.worklight.core.auth.impl.AuthenticationContext.pushCurrentResource(AuthenticationContext.java:373)       在com.worklight.core.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:63)       在com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:162)       在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)       在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)       在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)       在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)       在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)       在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)       在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)       在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)       在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)       在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)       at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:589)       在org.apache.tomcat.util.net.AprEndpoint $ SocketProcessor.run(AprEndpoint.java:1852)       at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(ThreadPoolExecutor.java:886)       at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:908)       在java.lang.Thread.run(Thread.java:619)

我确信我只是将一个war文件部署到tomcat,但我已经尝试一次又一次地部署war文件来测试应用程序,当然,在部署之前取消部署文件。而worklight服务器是5.0 .5,mysql 5.1.47,tomcat 7.0.37.Any help?提前谢谢。

1 个答案:

答案 0 :(得分:1)

这是使用IBM Installation Mananger的安装吗? 如果您已经使用它在Tomcat上安装Worklight,那么它在安装过程中也部署了一个worklight.war文件。

确保通过Tomcat Manager视图(通常为http://localhost:8080/manager)取消部署此.war文件。我也会去文件系统并确保没有其他文件(.war文件,worklight.home,...)。

接下来,部署您自己的.war文件(可能是nantian.war或类似的)。