I got following error :
SEVERE: Servlet.service() for servlet jsp threw exception
javax.el.ELException: The identifier [case] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true.
It is due to in tomcat 7 by default SKIP IDENTIFIER CHECK feature is false(which was true in tomcat 6 and below) and I use "case" in regular expression and case is identifier so it throws error.
I found following solution: javax.el.ELException: The identifier [return] is not a valid Java identifier
But it would not work for me because I don't want to make changes in my code. So I want solution to configure tomcat 7 to SKIP IDENTIFIER CHECK to true.
Even after lots of googling I didn't find way to do this. I am using eclipse juno and tomcat 7, please help me regard this.
Finally got solution for eclipse. Add below line to the location I specify
-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
Please look for below step by step images
STEP 1 :
STEP 2 :
STEP 3 :
Cheers. :)
Create a setenv.[bat|sh] file in CATALINA_HOME/bin (i.e. alongside all your other scripts) and set the system property in that file. On Windows you'd create setenv.bat with the following contents:
SET CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
On Linux you'd create setenv.sh with the following contents:
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true"
You can repeat those lines (changing the system property name) to set multiple system properties in the same setenv.[bat|sh] file.
We can also add following command to catalina.sh file under the tomcat_home dir/bin
CATALINA_OPTS="-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With