Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Issues in login the business central workbench using wildfly server in linux machine

200 views
Skip to first unread message

BALAJI M K

unread,
Jun 18, 2024, 3:31:11 AM6/18/24
to Drools Setup
I have the business central workbench 7.74.1 and kie server deployed in wildfly server in the linux server , when i access the login page of workbench (http://server-ip:8080/business-central/kie-wb.jsp) the login makes success but i redirects to a null page (http:// server-ip  :8080/business-central/j_security_check?locale=null) , how can i make it redirect it to the workbench space ??

Ajay Chowdary Kandula

unread,
Jun 18, 2024, 5:19:45 PM6/18/24
to drools...@googlegroups.com
To resolve the issue of being redirected to a null page after logging into the Business Central Workbench, you need to configure the WS-Federation settings correctly.[4] ## Steps to Configure WS-Federation 1. **Set the Credential Type**: In the Business Central Server Administration tool, go to the General tab and set the Credential Type to AccessControlService. 2. **Configure Microsoft Entra ID settings**: - Set the WS-Federation Login Endpoint parameter with the correct URL format: `https://login.microsoftonline.com/<AAD_TENANT_ID>/wsfed?wa=wsignin1.0%26wtrealm=<APP_ID_URI>%26wreply=<REDIRECT_URL>` Replace `<AAD_TENANT_ID>` with your Microsoft Entra tenant ID, `<APP_ID_URI>` with the Business Central application ID URI, and `<REDIRECT_URL>` with the redirect URL assigned to the application. - Set the WS-Federation Metadata Location parameter: `https://login.microsoftonline.com/<AAD_TENANT_ID>/FederationMetadata/2007-06/FederationMetadata.xml` Replace `<AAD_TENANT_ID>` with your Microsoft Entra tenant ID. 3. **Leave other parameters empty**: The Application Client Certificate Thumbprint, Application Client ID, and Application Client Secret parameters should be left empty or blank. By correctly configuring the WS-Federation settings, the Business Central Workbench should redirect to the appropriate space after successful login instead of the null page.[4] Sources [1] Workbench automatic logout Issue &Automtically redirecting to login ... https://salesforce.stackexchange.com/questions/406065/workbench-automatic-logout-issue-automtically-redirecting-to-login-page [2] OptaPlanner Workbench and Execution Server User Guide https://docs.optaplanner.org/7.23.0.Final/optaplanner-wb-es-docs/html_single/ [3] Unable to log-in to workbench - Salesforce Stack Exchange https://salesforce.stackexchange.com/questions/71287/unable-to-log-in-to-workbench [4] Configure Microsoft Entra authentication with WS-Federation https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/authenticating-users-with-azure-active-directory [5] Redirect to Login page always after logout in Dynamics 365 Portal https://community.dynamics.com/blogs/post/?postid=93b5823e-4445-4424-8fc4-5faf5b2685c4


Thanks and Regards!!!
Ajay C. Kandula


On Tue, Jun 18, 2024 at 03:31 'BALAJI M K' via Drools Setup <drools...@googlegroups.com> wrote:
I have the business central workbench 7.74.1 and kie server deployed in wildfly server in the linux server , when i access the login page of workbench (http://server-ip:8080/business-central/kie-wb.jsp) the login makes success but i redirects to a null page (http:// server-ip  :8080/business-central/j_security_check?locale=null) , how can i make it redirect it to the workbench space ??

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/e0151481-2b60-4e2a-a0e4-bee67173a0a9n%40googlegroups.com.

BALAJI M K

unread,
Jun 24, 2024, 2:20:38 AM6/24/24
to Drools Setup
Thank you Ajay C. Kandula !

Is it possible to deploy & run the drools business central workbench in a ip based server ??
i have done it by changing all the localhost to respective ip in the all config files , after making changes i ran the application , the business central workbench login page gets displayed , but after entering credentials it leads to a null or blank page . usually it leads to such page when wrong credentials are entered , but i am entering only correct one's. how can this problem be solved .
or what is the config file in the application that validates the credentials??


Ajay Chowdary Kandula

unread,
Jun 24, 2024, 7:42:44 AM6/24/24
to drools...@googlegroups.com
Based on your description, it seems you've successfully deployed the Business Central Workbench on an IP-based server, but you're encountering an issue with authentication after login. Here are some steps to troubleshoot and potentially resolve this problem: 1. Check the server logs: Look for any authentication-related errors or warnings in the WildFly server logs. This might provide clues about what's going wrong during the login process. 2. Verify user configuration: Ensure that the users and roles are correctly defined in the `application-users.properties` and `application-roles.properties` files located in the `standalone/configuration` directory of your WildFly server[1]. 3. Review security settings: Check the `standalone-full.xml` configuration file for any security-related settings that might be causing issues. Make sure all necessary security domains are properly configured[1]. 4. Validate system properties: Ensure that all system properties related to authentication are correctly set, especially if you've changed them from localhost to your server's IP. This includes properties like: ``` -Dorg.kie.server.user=<username> -Dorg.kie.server.pwd=<password> -Dorg.kie.server.controller.user=<username> -Dorg.kie.server.controller.pwd=<password> ``` 5. Check network configuration: Verify that all necessary ports are open and that there are no firewall issues preventing communication between components. 6. Clear browser cache: Sometimes, clearing your browser's cache and cookies can resolve authentication issues. 7. Use correct server URL: Ensure you're using the correct URL to access the Business Central Workbench, including the correct port number (usually 8080 for WildFly)[2]. If these steps don't resolve the issue, you may need to review the specific configuration files that handle authentication in your Business Central Workbench deployment. The exact location can vary depending on your setup, but generally, you should look for files related to security and authentication in the WildFly configuration directory. Sources [1] Issues in login the business central workbench using wildfly server ... https://groups.google.com/g/drools-setup/c/pFYFKUtNM58 [2] Drools Workbench docker container: Can't access the deployed server https://stackoverflow.com/questions/65750901/drools-workbench-docker-container-cant-access-the-deployed-server [3] Drools – Workbench and KIE Server - Learn. Write. Repeat. https://sergiuoltean.com/2021/02/15/drools-workbench-and-kie-server/ [4] OptaPlanner Workbench and Execution Server User Guide https://docs.optaplanner.org/7.23.0.Final/optaplanner-wb-es-docs/html_single/ [5] Cannot Register Kie Server (No Remote Servers) in Workbench ... https://groups.google.com/g/drools-setup/c/dKOySBezWSQ


Thanks and Regards!!!
Ajay C. Kandula

BALAJI M K

unread,
Jun 28, 2024, 8:50:36 AM6/28/24
to Drools Setup
Even after doing all necessary changes , the same issue persist . is there any other ways to resolve it.

http://server-ip:8080/business-central-changed/j_security_check?locale=null ---> this is the url i get redirected , everytime after login with right credentials.
Reply all
Reply to author
Forward
0 new messages