{"id":5407,"date":"2023-03-27T10:57:07","date_gmt":"2023-03-27T08:57:07","guid":{"rendered":"https:\/\/gpmfactory.com\/?p=5407"},"modified":"2023-03-27T10:57:07","modified_gmt":"2023-03-27T08:57:07","slug":"setting-ords-config-path-when-deploying-on-tomcat","status":"publish","type":"post","link":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/","title":{"rendered":"Setting ORDS config path when deploying on Tomcat"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">From the 22.x version of ORDS, ords.war file must be generated in order to include the configuration directory path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The command is:<br><code>ords war &lt;NEW_ORDS.WAR_NAME> (ie: ords war ords_new.war)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before, I set the ORDS_CONFIG environement variable. In my case:<br><code>export ORDS_CONFIG=\/opt\/ords\/conf<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When deploying on Tomcat, it should retrieve the path but in my case, it doesn&rsquo;t. I get a 404.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I mean, the behaviour is the same with the original ords.war file or the new one after rebuilding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, a possible way is to pass the path url to Java runtime when starting Tomcat.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add a new file named exactly : <code>setenv.sh<\/code> in tomcat_home \/bin<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this file, add:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>export ORDS_CONFIG=\/opt\/ords\/conf<br>export JAVA_OPTS=\"-Dconfig.url=${ORDS_CONFIG} -Xms1024M -Xmx1024M\"<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, shutdown Tomcat and restart it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For <a href=\"https:\/\/www.javasavvy.com\/start-tomcat-boot-linux\/\" data-type=\"URL\" data-id=\"https:\/\/www.javasavvy.com\/start-tomcat-boot-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">automatic starting follow this link<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From the 22.x version of ORDS, ords.war file must be generated in order to include the configuration directory path. The command is:ords war &lt;NEW_ORDS.WAR_NAME>&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"ppma_author":[150],"class_list":["post-5407","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setting ORDS config path when deploying on Tomcat - GPM Factory<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting ORDS config path when deploying on Tomcat - GPM Factory\" \/>\n<meta property=\"og:description\" content=\"From the 22.x version of ORDS, ords.war file must be generated in order to include the configuration directory path. The command is:ords war &lt;NEW_ORDS.WAR_NAME&gt;...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/\" \/>\n<meta property=\"og:site_name\" content=\"GPM Factory\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-27T08:57:07+00:00\" \/>\n<meta name=\"author\" content=\"Patrick\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Patrick\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/\"},\"author\":{\"name\":\"Patrick\",\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/#\\\/schema\\\/person\\\/62bf8227cd77e5f8ba9b74a9650737a8\"},\"headline\":\"Setting ORDS config path when deploying on Tomcat\",\"datePublished\":\"2023-03-27T08:57:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/\"},\"wordCount\":122,\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/\",\"url\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/\",\"name\":\"Setting ORDS config path when deploying on Tomcat - GPM Factory\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/#website\"},\"datePublished\":\"2023-03-27T08:57:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/#\\\/schema\\\/person\\\/62bf8227cd77e5f8ba9b74a9650737a8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/2023\\\/03\\\/27\\\/setting-ords-config-path-when-deploying-on-tomcat\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gpmfactory.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting ORDS config path when deploying on Tomcat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/#website\",\"url\":\"https:\\\/\\\/gpmfactory.com\\\/\",\"name\":\"GPM Factory\",\"description\":\"Etudes et R\u00e9alisation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gpmfactory.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gpmfactory.com\\\/#\\\/schema\\\/person\\\/62bf8227cd77e5f8ba9b74a9650737a8\",\"name\":\"Patrick\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g65b6f4034b177fc609f1688803c37431\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g\",\"caption\":\"Patrick\"},\"description\":\"GPM Factory\",\"url\":\"https:\\\/\\\/gpmfactory.com\\\/index.php\\\/author\\\/admin8700\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting ORDS config path when deploying on Tomcat - GPM Factory","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/","og_locale":"fr_FR","og_type":"article","og_title":"Setting ORDS config path when deploying on Tomcat - GPM Factory","og_description":"From the 22.x version of ORDS, ords.war file must be generated in order to include the configuration directory path. The command is:ords war &lt;NEW_ORDS.WAR_NAME>...","og_url":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/","og_site_name":"GPM Factory","article_published_time":"2023-03-27T08:57:07+00:00","author":"Patrick","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Patrick","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/#article","isPartOf":{"@id":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/"},"author":{"name":"Patrick","@id":"https:\/\/gpmfactory.com\/#\/schema\/person\/62bf8227cd77e5f8ba9b74a9650737a8"},"headline":"Setting ORDS config path when deploying on Tomcat","datePublished":"2023-03-27T08:57:07+00:00","mainEntityOfPage":{"@id":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/"},"wordCount":122,"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/","url":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/","name":"Setting ORDS config path when deploying on Tomcat - GPM Factory","isPartOf":{"@id":"https:\/\/gpmfactory.com\/#website"},"datePublished":"2023-03-27T08:57:07+00:00","author":{"@id":"https:\/\/gpmfactory.com\/#\/schema\/person\/62bf8227cd77e5f8ba9b74a9650737a8"},"breadcrumb":{"@id":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gpmfactory.com\/index.php\/2023\/03\/27\/setting-ords-config-path-when-deploying-on-tomcat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gpmfactory.com\/"},{"@type":"ListItem","position":2,"name":"Setting ORDS config path when deploying on Tomcat"}]},{"@type":"WebSite","@id":"https:\/\/gpmfactory.com\/#website","url":"https:\/\/gpmfactory.com\/","name":"GPM Factory","description":"Etudes et R\u00e9alisation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gpmfactory.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/gpmfactory.com\/#\/schema\/person\/62bf8227cd77e5f8ba9b74a9650737a8","name":"Patrick","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g65b6f4034b177fc609f1688803c37431","url":"https:\/\/secure.gravatar.com\/avatar\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g","caption":"Patrick"},"description":"GPM Factory","url":"https:\/\/gpmfactory.com\/index.php\/author\/admin8700\/"}]}},"authors":[{"term_id":150,"user_id":1,"is_guest":0,"slug":"admin8700","display_name":"Patrick","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/41853cbf3fae9c0c46c0ba5e68839a78c20aabbcd1db74702bbda2c9d3980676?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/5407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/comments?post=5407"}],"version-history":[{"count":3,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/5407\/revisions"}],"predecessor-version":[{"id":5410,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/5407\/revisions\/5410"}],"wp:attachment":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/media?parent=5407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/categories?post=5407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/tags?post=5407"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/ppma_author?post=5407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}