Intellij 15 - cannot resolve taglib for jsp


We upgrate intellij from 14.1 to 15.0.2 on windows, I have issue in java application which use embedded tomcat, it used to work in the 14.1. The application can start within intellij  without problem, but when I try to access my login jsp page, I got the following error:

org.apache.jasper.JasperException: /WEB-INF/jsp/login/login.jsp (line: 1, column: 1) The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this application

                at org.apache.jasper.compiler.DefaultErrorHandler.jspError( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.ErrorDispatcher.dispatch( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.ErrorDispatcher.jspError( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.Parser.processIncludeDirective( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.Parser.parseIncludeDirective( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.Parser.parseDirective( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.Parser.parseElements( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.Parser.parse( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.ParserController.doParse( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.ParserController.parse( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]

                at org.apache.jasper.compiler.Compiler.generateJava( ~[tomcat-embed-jasper-7.0.59.jar:7.0.59]


I noticed in runtime IDEA 15 on windows uses classpath.jar which references classpath via Class-Path attribute of the manifest, this is different from Intellij 14.  I wonder if embedded tomcat doesn’t support this so that it cannot resolve the required spring-security-taglibs.jar in the runtime?   We use apache tomcat-ebmeded-xx.7.0.59 and also I don't have any issue if I run my app as gradle task from command line.

Any idea about this issue? Many thanks.

Please sign in to leave a comment.