{"id":1889,"date":"2012-10-03T15:17:35","date_gmt":"2012-10-03T21:17:35","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/techblog\/?p=1889"},"modified":"2023-10-06T12:51:09","modified_gmt":"2023-10-06T18:51:09","slug":"tomcat-special-server-config","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=tomcat-special-server-config","title":{"rendered":"Tomcat Special Server Config"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A security feature of Tomcat is that prior to an application being eligible to be hosted by Tomcat, it first must be enrolled into the web.xml file located in \\m-power\\mrcjava\\WEB-INF. Before the change can be recognized by Tomcat, the run-time context must be restarted. For the majority of our clients, this is not a problem as m-Power handles the above steps without issue. m-Power simply issues a reload command directly on the m-Power server utilizing the localhost address and whatever port the developer used to access m-Power.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, if your server setup is unique (For instance you are running SSL or are utilizing a reverse proxy setup), there is a chance that Tomcat will not automatically reload. In cases of SSL users, it is likely that your SSL certificate was not authorized to the &#8220;localhost&#8221; address and our automatic reload command will be denied. For users who utilize a reverse proxy, it is likely that the port the user has entered via m-Power, is not the true m-Power port.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you find that you compile a new application, but receive a 404 error when you try to run the application in development and can only rectify this issue by restarting Tomcat, it is likely this document pertains to you. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To resolve this problem, please do the following: Edit the mrctool.properties file in \\m-power\\proddata\\conf. Add the following line to the end of the document:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mpower_server=https:\/\/servername:serverport<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Be sure to use a valid servername that is accessible to your m-Power server. This should be the server name that this machine would call itself. A great way to test this is to try to PING the machine from itself using the servername you plan on specifying.<br>Be sure to use a valid serverport. You should use the serverport that Tomcat is listening on, found in \\m-power\\tomcat\\server.xml<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are still having issues, contact our support department, and we will be happy to assist.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A security feature of Tomcat is that prior to an application being eligible to be hosted by Tomcat, it first must be enrolled into the web.xml file located in \\m-power\\mrcjava\\WEB-INF. Before the change can be recognized by Tomcat, the run-time context must be restarted. For the majority of our clients,&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-1889","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1889"}],"version-history":[{"count":9,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1889\/revisions"}],"predecessor-version":[{"id":12192,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/1889\/revisions\/12192"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1889"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=1889"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=1889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}