Red Hat Configuration of Tomcat 8 - ${JAVA_OPTS} keyword not recognizedLinux + how to verify mirror...

What makes Ada the language of choice for the ISS's safety-critical systems?

What setting controls moving the cursor on the command line?

Did Milano or Benatar approve or comment on their namesake MCU ships?

How can I get an unreasonable manager to approve time off?

Mathematically, why does mass matrix / load vector lumping work?

Tabular make widths equal

Is using haveibeenpwned to validate password strength rational?

Is it possible to have a wealthy country without a middle class?

How do governments keep track of their issued currency?

What is the purpose of the goat for Azazel, as opposed to conventional offerings?

Which languages would be most useful in Europe at the end of the 19th century?

Active low-pass filters --- good to what frequencies?

How to handle self harm scars on the arm in work environment?

Union with anonymous struct with flexible array member

Winning Strategy for the Magician and his Apprentice

Implement Own Vector Class in C++

How do I prevent employees from either switching to competitors or opening their own business?

You have (3^2 + 2^3 + 2^2) Guesses Left. Figure out the Last one

Meaning of 'lose their grip on the groins of their followers'

How to produce a more sophisticated pie chart?

What is the actual quality of machine translations?

Longest bridge/tunnel that can be cycled over/through?

How to use memset in c++?

Is it expected that a reader will skip parts of what you write?



Red Hat Configuration of Tomcat 8 - ${JAVA_OPTS} keyword not recognized


Linux + how to verify mirror configuration on linux red-hatWhat version of Red Hat is used for the Red Hat Certified System Administrator Exam?Connecting remotely to Red HatCompiling for Red Hat 5.9If a buggy application underperforms, it it possible server tuning could have no affect?Red Hat internal specificationsRed Hat 7 KickStarterRed Hat restart not show correct login page?RHEL 8 Deprecated Network Scriptssu command not working Red Hat






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm trying to configure tomcat8 on Red Hat Enterprise Linux 7. I get the configuration file from a Debian version (that I have set up), which is:




[...]

JAVA_OPTS='-Djava.awt.headless=true'
JAVA_OPTS='${JAVA_OPTS} -Dfile.encoding=UTF-8'
JAVA_OPTS='${JAVA_OPTS} -XX:+UseConcMarkSweepGC'

# memory
JAVA_OPTS='${JAVA_OPTS} -Xmx1024m -Xm1024m'

# logging
JAVA_OPTS='${JAVA_OPTS} -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'

[...]



With Red Hat this configuration doesn't work; I get this error:



Error: Could not find or load main class ${JAVA_OPTS}
Caused by: java.lang.ClassNotFoundException: ${JAVA_OPTS}


But when I erase the ${JAVA_OPTS} and concatenates the JAVA_OPTS on a single line:



JAVA_OPTS='-Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xmx1024m -Xm1024m' -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'


It works.



I've also tried to replace ${JAVA_OPTS} with $JAVA_OPTS, %JAVA_OPTS%. Do you have any idea why tomcat8 is not recognizing the ${JAVA_OPTS}?



Thanks!










share|improve this question























  • Is this configuration file supposed to be a shell script?

    – muru
    20 mins ago











  • Mmmh... good question. Maybe that the thing; in Debian it can be written as a shell script while in rhel not. Could it be possible?

    – Bastian Nanchen
    3 mins ago


















0















I'm trying to configure tomcat8 on Red Hat Enterprise Linux 7. I get the configuration file from a Debian version (that I have set up), which is:




[...]

JAVA_OPTS='-Djava.awt.headless=true'
JAVA_OPTS='${JAVA_OPTS} -Dfile.encoding=UTF-8'
JAVA_OPTS='${JAVA_OPTS} -XX:+UseConcMarkSweepGC'

# memory
JAVA_OPTS='${JAVA_OPTS} -Xmx1024m -Xm1024m'

# logging
JAVA_OPTS='${JAVA_OPTS} -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'

[...]



With Red Hat this configuration doesn't work; I get this error:



Error: Could not find or load main class ${JAVA_OPTS}
Caused by: java.lang.ClassNotFoundException: ${JAVA_OPTS}


But when I erase the ${JAVA_OPTS} and concatenates the JAVA_OPTS on a single line:



JAVA_OPTS='-Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xmx1024m -Xm1024m' -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'


It works.



I've also tried to replace ${JAVA_OPTS} with $JAVA_OPTS, %JAVA_OPTS%. Do you have any idea why tomcat8 is not recognizing the ${JAVA_OPTS}?



Thanks!










share|improve this question























  • Is this configuration file supposed to be a shell script?

    – muru
    20 mins ago











  • Mmmh... good question. Maybe that the thing; in Debian it can be written as a shell script while in rhel not. Could it be possible?

    – Bastian Nanchen
    3 mins ago














0












0








0








I'm trying to configure tomcat8 on Red Hat Enterprise Linux 7. I get the configuration file from a Debian version (that I have set up), which is:




[...]

JAVA_OPTS='-Djava.awt.headless=true'
JAVA_OPTS='${JAVA_OPTS} -Dfile.encoding=UTF-8'
JAVA_OPTS='${JAVA_OPTS} -XX:+UseConcMarkSweepGC'

# memory
JAVA_OPTS='${JAVA_OPTS} -Xmx1024m -Xm1024m'

# logging
JAVA_OPTS='${JAVA_OPTS} -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'

[...]



With Red Hat this configuration doesn't work; I get this error:



Error: Could not find or load main class ${JAVA_OPTS}
Caused by: java.lang.ClassNotFoundException: ${JAVA_OPTS}


But when I erase the ${JAVA_OPTS} and concatenates the JAVA_OPTS on a single line:



JAVA_OPTS='-Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xmx1024m -Xm1024m' -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'


It works.



I've also tried to replace ${JAVA_OPTS} with $JAVA_OPTS, %JAVA_OPTS%. Do you have any idea why tomcat8 is not recognizing the ${JAVA_OPTS}?



Thanks!










share|improve this question














I'm trying to configure tomcat8 on Red Hat Enterprise Linux 7. I get the configuration file from a Debian version (that I have set up), which is:




[...]

JAVA_OPTS='-Djava.awt.headless=true'
JAVA_OPTS='${JAVA_OPTS} -Dfile.encoding=UTF-8'
JAVA_OPTS='${JAVA_OPTS} -XX:+UseConcMarkSweepGC'

# memory
JAVA_OPTS='${JAVA_OPTS} -Xmx1024m -Xm1024m'

# logging
JAVA_OPTS='${JAVA_OPTS} -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'

[...]



With Red Hat this configuration doesn't work; I get this error:



Error: Could not find or load main class ${JAVA_OPTS}
Caused by: java.lang.ClassNotFoundException: ${JAVA_OPTS}


But when I erase the ${JAVA_OPTS} and concatenates the JAVA_OPTS on a single line:



JAVA_OPTS='-Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xmx1024m -Xm1024m' -Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml'


It works.



I've also tried to replace ${JAVA_OPTS} with $JAVA_OPTS, %JAVA_OPTS%. Do you have any idea why tomcat8 is not recognizing the ${JAVA_OPTS}?



Thanks!







rhel configuration tomcat






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 23 mins ago









Bastian NanchenBastian Nanchen

83




83













  • Is this configuration file supposed to be a shell script?

    – muru
    20 mins ago











  • Mmmh... good question. Maybe that the thing; in Debian it can be written as a shell script while in rhel not. Could it be possible?

    – Bastian Nanchen
    3 mins ago



















  • Is this configuration file supposed to be a shell script?

    – muru
    20 mins ago











  • Mmmh... good question. Maybe that the thing; in Debian it can be written as a shell script while in rhel not. Could it be possible?

    – Bastian Nanchen
    3 mins ago

















Is this configuration file supposed to be a shell script?

– muru
20 mins ago





Is this configuration file supposed to be a shell script?

– muru
20 mins ago













Mmmh... good question. Maybe that the thing; in Debian it can be written as a shell script while in rhel not. Could it be possible?

– Bastian Nanchen
3 mins ago





Mmmh... good question. Maybe that the thing; in Debian it can be written as a shell script while in rhel not. Could it be possible?

– Bastian Nanchen
3 mins ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523205%2fred-hat-configuration-of-tomcat-8-java-opts-keyword-not-recognized%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523205%2fred-hat-configuration-of-tomcat-8-java-opts-keyword-not-recognized%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...