Ibm mobilefirst Worklight 6.0.0.2 javax.servlet.ServletException:无法在生产模式下访问开发servlet

Ibm mobilefirst Worklight 6.0.0.2 javax.servlet.ServletException:无法在生产模式下访问开发servlet,ibm-mobilefirst,Ibm Mobilefirst,有时,我在Worklight的websphere proile日志中看到一条错误消息: [Servlet Error]-[DevRootServlet]: javax.servlet.ServletException: Can not access development servlets in production mode 我不知道错误消息来自哪里?但我的WL应用程序仍然运行良好。 有人能帮我解决这个问题吗? 我正在使用WL版本6.0.0.2 谢谢检查我对另一个类似问题的回答是否有助于您:

有时,我在Worklight的websphere proile日志中看到一条错误消息:

[Servlet Error]-[DevRootServlet]: javax.servlet.ServletException: Can not access development servlets in production mode
我不知道错误消息来自哪里?但我的WL应用程序仍然运行良好。 有人能帮我解决这个问题吗? 我正在使用WL版本6.0.0.2


谢谢

检查我对另一个类似问题的回答是否有助于您:


请从错误消息中查看此部分:

原因:javax.servlet.ServletException:无法访问开发 处于生产模式的servlet com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)

现在查看您正在使用的URL:

http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification&parameters=[%27user%27,%27text
message%27]
/dev/
基本上表示一个“开发servlet”,正如错误所说,它不能在生产中使用。“生产中”基本上是指“不在Worklight Studio内部的任何服务器”,Worklight Studio是开发环境


尝试从URL中删除
/dev/
,看看这是否有帮助,或者可能会出现不同的错误。

是否使用URL路径中的/dev调用适配器?提供完整的异常日志。在使用http://{Host}:{Port}/{Context}/apps/services/api/{AppName}/{environment}/query(源:)调用适配器过程时,是否有方法指定环境(生产)?