Setting up a domain to use for KlarosSetting up a domain to use for Klaroshttps://www.klaros-testmanagement.com/en/c/message_boards/find_thread?p_l_id=11703&threadId=4711102024-03-28T12:37:35Z2024-03-28T12:37:35ZRE: Setting up a domain to use for KlarosMusa Haidarihttps://www.klaros-testmanagement.com/en/c/message_boards/find_message?p_l_id=11703&messageId=4713012019-05-26T10:29:05Z2019-05-26T10:29:05ZThank you for the solution, I have been able to configure the domain by renaming klaros.war to ROOT.warMusa Haidari2019-05-26T10:29:05ZRE: Setting up a domain to use for KlarosTorsten Stolpmannhttps://www.klaros-testmanagement.com/en/c/message_boards/find_message?p_l_id=11703&messageId=4712052019-05-25T17:50:53Z2019-05-25T17:50:14ZHello Musa,<br /><br />thanks for supplying the logs files and the added information.<br /><br />From the log files I see that the application is not starting up properly as apparently the default Derby database is opened twice, which is not supported by Derby in general:<br /><br />Caused by: org.apache.derby.iapi.error.StandardException: Another instance of Derby may have already booted the database /root/.klaros/klarosDerby.<br /><br />The above may happen, if two war instances are loaded at the same time. Please check if there are still other tomcat instances running.<br /><br />But in this case I think this is due to the fact that two klaros web applications are active in the same container. Did you make any changes to the webapps folder?<br /><br />If you intend to access klaros under the URL qa.example.com:18080/klaros-web only a klaros-web.war file and optionally the exploded klaros-web folder should be present. If you intend to access klaros under the URL qa.example.com:18080/ the war file should be renamed to ROOT.war and the klaros-web folder must be removed.<br /><br />Hope this helps. You may also need to set a proper application base URL under Configure / System if you are using this setup.<br /><br />On a side note: Please be aware that changes to the tomcat configuration will get overwritten with any update of the application. Dont forget a backup ...<br /><br />We generally recommend a proxy web server (e.g. Apache with mod_proxy) for enabling HTTPS and changing hostname/port configurations.<br /><br />Please let me know if this works for you.<br /><br />Regards,<br /><br />TorstenTorsten Stolpmann2019-05-25T17:50:14ZRE: Setting up a domain to use for KlarosMusa Haidarihttps://www.klaros-testmanagement.com/en/c/message_boards/find_message?p_l_id=11703&messageId=4711762019-05-25T09:48:36Z2019-05-25T09:48:36ZDear team,<br />Thank you for the quick response and the time you have dedicated for this issue to work, and sorry for the late reply as I was not in the office for 3 days.<br /><br />For the first reply, I have attached the logs in the logs folder and made some request to the domain I was configuring, but this time, a log file for the domain was not created in the folder.<br /><br />For the 2nd reply, I am not requesting from the same machine, we are on two different machines and I have added the record to point qa.example.com to 192.168.1.19 to both hosts files, from the machine I am sending request to and the machine Klaros is hosted on. The ping on both machines resolves to the correct IP address.<br /><br />Please let me know if I can provide any more information.Musa Haidari2019-05-25T09:48:36ZRE: Setting up a domain to use for KlarosTorsten Stolpmannhttps://www.klaros-testmanagement.com/en/c/message_boards/find_message?p_l_id=11703&messageId=4711662019-05-22T19:02:08Z2019-05-22T19:02:08ZHello Musa,<br /><br />please make sure that the following is working:<br /><br />Any host running the web browser should resolve qa.example.com to 192.168.1.19 properly. You may check this by 'ping qa.example.com' and 'nslookup 192.168.1.19'.<br /><br />I think that you have started the browser on the same host that you are running Klaros and youre DNS settings do only resolve 192.168.1.19 to the local name of your host (<span style="color: #5f6368"><span style="font-family: "Segoe UI", Tahoma, sans-serif"><strong>qams.npadevops.local</strong></span></span>).<br /><br />Everything above is happening outside of scope of the application. You must fix your DNS settings.<br /><br />Hope this helps,<br /><br />TorstenTorsten Stolpmann2019-05-22T19:02:08ZRE: Setting up a domain to use for KlarosFabian Klaffkehttps://www.klaros-testmanagement.com/en/c/message_boards/find_message?p_l_id=11703&messageId=4711402019-05-22T12:30:22Z2019-05-22T12:30:03ZHi Musa,<br /><br />welcome to the Klaros-Testmanagement community and thanks for your detailed description!<br /><br />Could you send the log files from the /Klaros-Testmanagement/logs folder to support@verit.de? I would like to take a look at them, since a HTTP 404 error can have many different causes.<br /><br />Regards,<br />FabianFabian Klaffke2019-05-22T12:30:03ZSetting up a domain to use for KlarosMusa Haidarihttps://www.klaros-testmanagement.com/en/c/message_boards/find_message?p_l_id=11703&messageId=4711092019-05-25T09:29:53Z2019-05-22T12:17:00ZGood day.<br />I am using the community edition and trying to set up the tomcat installed with Klaros to use a domain instead of the default installation URL, which is something like http://192.168.1.19/klaros-web. The intend behind it is to access Klaros installation with through a public domain name, such as qa.example.com.<br /><br />I have added the following to the conf/server.xml file:<br /><br /><div class="lfr-code"><table><tbody><tr><td class="line-numbers" data-line-number="1"></td><td class="lines"><div class="line"><Host name="qa.example.com" debug="0" appBase="webapps/klaros-web"</div></td></tr><tr><td class="line-numbers" data-line-number="2"></td><td class="lines"><div class="line"> unpackWARs="false"</div></td></tr><tr><td class="line-numbers" data-line-number="3"></td><td class="lines"><div class="line"> xmlValidation="false" xmlNamespaceAware="false"></div></td></tr><tr><td class="line-numbers" data-line-number="4"></td><td class="lines"><div class="line"><br /></div></td></tr><tr><td class="line-numbers" data-line-number="5"></td><td class="lines"><div class="line"><Logger className="org.apache.catalina.logger.FileLogger"</div></td></tr><tr><td class="line-numbers" data-line-number="6"></td><td class="lines"><div class="line">directory="logs" prefix="qa.example.com\_log." suffix=".txt" timestamp="true"/></div></td></tr><tr><td class="line-numbers" data-line-number="7"></td><td class="lines"><div class="line"><br /></div></td></tr><tr><td class="line-numbers" data-line-number="8"></td><td class="lines"><div class="line"></Host></div></td></tr></tbody></table></div><br />Also added the following to conf/Catalina/qa.example.com/ROOT.xml:<br /><div class="lfr-code"><table><tbody><tr><td class="line-numbers" data-line-number="1"></td><td class="lines"><div class="line"><?xml version='1.0' encoding='utf-8'?></div></td></tr><tr><td class="line-numbers" data-line-number="2"></td><td class="lines"><div class="line"><Context displayName="qa.example.com" docBase="" path=""</div></td></tr><tr><td class="line-numbers" data-line-number="3"></td><td class="lines"><div class="line">workDir="work/Catalina/qa.example.com/_"></div></td></tr><tr><td class="line-numbers" data-line-number="4"></td><td class="lines"><div class="line"></Context></div></td></tr></tbody></table></div>After the restart, when I type in the URL <a href="http://qams.npadevops.local:18080/">http://qa.example.com:18080/</a> in the browser, I get:<br /><br /><span style="color: #5f6368"><span style="font-family: "Segoe UI", Tahoma, sans-serif"><span style="font-size: 18px;">This qa.example.com page can’t be found</span></span></span><span style="color: #5f6368"><span style="font-family: "Segoe UI", Tahoma, sans-serif">No webpage was found for the web address: <strong>http://qa.example.com:18080/</strong></span></span><span style="color: #5f6368"><span style="font-family: "Segoe UI", Tahoma, sans-serif"><span style="color: #646464"><span style="font-size: 12px;">HTTP ERROR 404</span></span><span style="color: #646464"><span style="font-size: 12px;">========================<span style="color: #646464"><span style="font-family: "Segoe UI", Tahoma, sans-serif"><span style="font-size: 12px;">ANY HELP IS MUCH APPRECIATED.<br /></span></span></span>Thank you.</span></span></span></span>Musa Haidari2019-05-22T12:17:00Z