Intellij 15 - cannot resolve taglib for jsp

Answered

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: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application

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

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

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

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

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

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

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

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

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

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

                at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199) ~[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.