I am trying to debug portlets (mainly Java beans code) in a remote webMethods server. I develop and deploy portlet applications using Software AG Designer. I am able to develop and publish portlets to remote webMethods server. I use the SysAdmin account to do so.
I am unable to connect to the webMethods server in debug mode from Software AG Designer. Restarting server in debug mode from Software AG Designer as described in the CAF developer guide does not work. Following text is logged in the remote server when I try to do the restart in debug mode:
2017-03-02 15:16:13 CET (Framework:DEBUG) - NTLM Filter auth = null
2017-03-02 15:16:13 CET (Framework:DEBUG) - authInfo = null
2017-03-02 15:16:13 CET (Framework:DEBUG) - httpServletRequest.getSession().getId() = r85wa52zknr4vtfjxd9nrvdc
2017-03-02 15:16:13 CET (Framework:INFO) [RID:713] - Request [r85wa52zknr4vtfjxd9nrvdc:null] http://anonymisedByPoster:8585/ (GET)
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: ntlm
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: ntlmv2
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - auth in NTLMv2 handler = null
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: httpHeader
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: saml
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: forms
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: basic
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - invoking authHandler: ticket
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - using guest session
2017-03-02 15:16:13 CET (Framework:WARN) [RID:713] - Failed to retrieve role member information, error=com.webMethods.portal.bizPolicy.BizException: [POP.003.0025] guest cannot view the content of getrolemembership.
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Delegating to renderer: webPageRenderer
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_sysconfig___connectivity/0000005718
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_shell___swisscomheaderlinks/0000005934
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_localswitcher___switchlocal/0000005935
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_shell___standardheaderlinks/0000005936
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/wm_fabric_nav___mainnav/0000005937
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_sysconfig___connectivity/0000005718
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_info___publiclinks/0000005920
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_customerdashboard___newslistbox/0000005921
2017-03-02 15:16:13 CET (wsclient:DEBUG) [RID:713] - wsclient: Creating session pool: auth method=1
2017-03-02 15:16:13 CET (wsclient:DEBUG) [RID:713] - wsclient: Creating WsClientSession: session auth method=1
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_shell___imageviewer/0000008728
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_sysconfig___connectivity/0000005718
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_info___welcomeimage/0000008221
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_info___welcome/0000008222
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_info___customerstories/0000008224
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_advertisement___advertisementviewer/0000008225
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_sysconfig___connectivity/0000005718
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_shell___separator/0000005916
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_shell___swisscomcopyright/0000005917
2017-03-02 15:16:13 CET (Framework:DEBUG) [RID:713] - Rendering portlet: /meta/default/namespace_shell___swisscomfooterlinks/0000005918
2017-03-02 15:16:13 CET (AXSRFT:DEBUG) [RID:713] - generateToken(), user = Guest, result = 7boWTRbEP4TD6xRSf8Gt9wyAWYgIUDjkh0mnGZgBD1Y=
2017-03-02 15:16:13 CET (com.webMethods.portal.framework.impl.PortalServlet:DEBUG) [RID:713] - Completed request. Response time=168ms
I started the server in debug mode using “mws.bat -d start” and then tried some ways to debug webMethods portlet applications from Designer, but I did not succeed. MWS server always logs the message about guest user not being able to do something.
The version of Software AG Designer is 9.7. I installed all updates available via Update Manager. Everything else works ok, except the remote debugging.
I do not understand the error, but I am guessing that Designer is failing to authenticate to webMethods server and the guest account is not able to perform the actions necessary for debug mode?
Kind Regards
Marcel
Hi,
Does your definition of the MwMS in the Designer includes the credentials?
Best Regards,
Hi Gerardo,
I am not sure. When I publish or republish a portlet application (i.e. when I click “publish” in the “Servers view” of the “UI development perspective” of Software AG Designer), the Software AG Designer asks me for credentials. I give SysAdmin/manage. I do not know whether they get stored and whether they are reused for debug calls. Is there a place (in Designer or some config file) where I can configure them?
When going through the New server wizard I did not find a place to enter a credentials for a server. Neither when I open the server.
Regards,
Marcel