|
Re: Scout build-in diagnostics - how to call? [message #1822862 is a reply to message #1822786] |
Mon, 16 March 2020 07:18 |
|
Hi Krzysztof,
Since the DiagnosticServlet shows details about database connections or webservice status, is only available in the rt.server module. Thus, it cannot be added to the UI server (rt.ui.html). Either you have to register it with the backend server's web.xml (and call it on localhost:8080) or you can try to copy the code to your own ui.html project and remove any server-specific code.
Regards,
Beat
|
|
|
|
Re: Scout build-in diagnostics - how to call? [message #1822889 is a reply to message #1822887] |
Mon, 16 March 2020 12:16 |
|
Make sure that you have configured the authentication correctly.
web.xml:
<servlet>
<servlet-name>diagnostics</servlet-name>
<servlet-class>org.eclipse.scout.rt.server.admin.diagnostic.DiagnosticServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>diagnostics</servlet-name>
<url-pattern>/diagnostics</url-pattern>
</servlet-mapping>
<filter>
<filter-name>AuthFilter</filter-name>
<filter-class>com.example.foo.server.ServerServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AuthFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Also make sure your user has the ReadDiagnosticServletPermission assigned.
If you still can't access the servlet, try debugging your ServerServletFilter. By adding a breakpoint and stepping through the code you should be able to find the reason why your request is rejected.
Regards,
Beat
|
|
|
Powered by
FUDForum. Page generated in 0.03100 seconds