Expression Language skip identifier check in tomcat 7

后端 未结 5 1861
一向
一向 2020-12-28 10:53

I got following error :

SEVERE: Servlet.service() for servlet jsp threw exception
javax.el.ELException: The identifier [case] is not a valid Java identifier          


        
5条回答
  •  春和景丽
    2020-12-28 11:36

    I had the same problem while migrating my present application to Tomcat 7 it is(jsf 1.2 with ice faces 1.8.2). I have solved it by including a bat file with name setenv.bat with the below content in it. 'SET CATALINA_OPTS=%CATALINA_OPTS% -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true'

    i have included it in TomcatInstallationDirectory/bin.

    it is read by catalina.bat file. in the below line 'call "%CATALINA_BASE%\bin\setenv.bat"'.

    Hence my jspx pages are rendered appropriately

    I had went through the following documentation by tomcat:

    https://tomcat.apache.org/tomcat-7.0-doc/RUNNING.txt

    please do post all the solution you made

提交回复
热议问题