<div dir="ltr">Hi, I can run the preconfigured Customer-portal demo successfully on the single keycloak-demo-2.0.0.Final distribution by importing the testrealm.json file to create the realm. Everything works fine. <div><br></div><div>And also I can run this simple login/logout demo by following this instruction to install and setup KeyCloak and Wildfly servers separately: </div><div><br></div><div><a href="https://keycloak.gitbooks.io/getting-started-tutorials/content/v/2.0/topics/overview.html">https://keycloak.gitbooks.io/getting-started-tutorials/content/v/2.0/topics/overview.html</a><div><br></div><div><br></div><div>However, I failed to run the Customer-Portal demo by trying to set up the KeyClaok server and Wildfly server separately. It always gives me this message as I clicked the &quot;<a href="http://localhost:8080/customer-portal/customers/view.jsp" style="font-family:&#39;times new roman&#39;;font-size:medium;background-color:rgb(227,246,206)">Customer Listing</a>&quot; link:</div></div><div><br></div><div><a href="http://localhost:8080/auth/realms/demo/protocol/openid-connect/auth?response_type=code&amp;client_id=customer-portal&amp;redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fcustomer-portal%2Fcustomers%2Fview.jsp&amp;state=2%2Fe8f347bf-dd8c-4c48-a060-0b01d33476db&amp;login=true">http://localhost:8080/auth/realms/demo/protocol/openid-connect/auth?response_type=code&amp;client_id=customer-portal&amp;redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fcustomer-portal%2Fcustomers%2Fview.jsp&amp;state=2%2Fe8f347bf-dd8c-4c48-a060-0b01d33476db&amp;login=true</a><br></div><div><br></div><div>I did exactly the same thing as I tested in the KeyCloak-demo distribution by importing the testrealm.json.</div><div><br></div><div>I didn&#39;t configure the subsystem section in the Wildfly 10&#39;s standalone.xml, since I believe the &quot;keycloak.json&quot; and &quot;web.xml&quot; in the application&#39;s WEB-INF directory will do the same thing.  I only had this configured in Wildfly standalone.xml:</div><div><br></div><div><div>&lt;security-domain name=&quot;keycloak&quot;&gt;</div><div>                    &lt;authentication&gt;</div><div>                        &lt;login-module code=&quot;org.keycloak.adapters.jboss.KeycloakLoginModule&quot; flag=&quot;required&quot;/&gt;</div><div>                    &lt;/authentication&gt;</div><div>                &lt;/security-domain&gt;</div></div><div><br></div><div><br></div><div>What am I missing? Thank you for your help to this working. By the way, it would be really great to have a full tutorial on how to set up the customer-portal demo  on two separate KeyCloak and Wildfly servers by configuring both Json and subsystem file. </div><div><br></div><div>Thank you for help.</div><div><br></div><div><br></div><div><br></div><div><br></div></div>