简体   繁体   中英

How to set 'org.apache.jasper.compiler.Parser.STRICT_WHITESPACE' in wildfly 17 as system property?

Getting this error : org.apache.jasper.JasperException: /ViewMsisdnAnswersDetailsPerMNOPerDayMaster.jsp (JBWEB004251: An error occurred at line: 161 column: 98) jsp.error.attribute.nowhitespace

So I tried searching it on google, and found that I need to set 'org.apache.jasper.compiler.Parser.STRICT_WHITESPACE'. I have added this property to standalone.xml and standalone-full.xml but didn't work.

Thanks in Advance.

Solution 1 : in Wildfly config file (ie standalone.xml)

<server xmlns="urn:jboss:domain:4.2">
    ...
    <system-properties>
        <property name="org.apache.jasper.compiler.Parser.STRICT_WHITESPACE" value="false"/>
    <system-properties>

Solution 2: in the start command line

$WF_HOME/bin/standalone.sh --server-config=standalone.xml -Dorg.apache.jasper.compiler.Parser.STRICT_WHITESPACE=false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM