Worklight 6.0.0.2 javax.servlet.ServletException:无法在生产模式下访问开发 servlet
Worklight 6.0.0.2 javax.servlet.ServletException: Can not access development servlets in production mode
有时我在 Worklight 的 websphere 配置文件日志中看到一条错误消息:
[Servlet Error]-[DevRootServlet]: javax.servlet.ServletException: Can not access development servlets in production mode
我不知道错误消息来自哪里?但我的 WL 应用程序仍然运行良好。
有人可以帮我解决这个问题吗?
我正在使用 WL 版本 6.0.0.2
谢谢
检查我在另一个类似问题中的回答是否对您有帮助:Worklight 6.1 - error on sending notification to android device on real server
从报错信息看这部分:
Caused by: javax.servlet.ServletException: Can not access development
servlets in production mode at
com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)
现在查看您正在使用的URL:
http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification¶meters=[%27user%27,%27text
message%27]
/dev/
基本上表示 "development servlet",如错误所述 - 不能在生产中使用。 "In production" 基本上意味着 "any server that is not inside Worklight Studio",Worklight Studio 是开发环境。
尝试从 URL 中删除 /dev/
并查看是否有帮助,否则可能会出现不同的错误。
有时我在 Worklight 的 websphere 配置文件日志中看到一条错误消息:
[Servlet Error]-[DevRootServlet]: javax.servlet.ServletException: Can not access development servlets in production mode
我不知道错误消息来自哪里?但我的 WL 应用程序仍然运行良好。 有人可以帮我解决这个问题吗? 我正在使用 WL 版本 6.0.0.2
谢谢
检查我在另一个类似问题中的回答是否对您有帮助:Worklight 6.1 - error on sending notification to android device on real server
从报错信息看这部分:
Caused by: javax.servlet.ServletException: Can not access development servlets in production mode at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)
现在查看您正在使用的URL:
http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification¶meters=[%27user%27,%27text
message%27]
/dev/
基本上表示 "development servlet",如错误所述 - 不能在生产中使用。 "In production" 基本上意味着 "any server that is not inside Worklight Studio",Worklight Studio 是开发环境。
尝试从 URL 中删除 /dev/
并查看是否有帮助,否则可能会出现不同的错误。