cannot resolve taglib with uri in jsp
Hi folks,
I am getting the message 'cannot resolve taglib with uri' for declarations such as
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
in the jsp files, and the tag symbolss are displayed in red with 'cannot resolve symbol'.
I am using IntelliJ 10.0.3 and Maven 2.2.1. When executing compile in the Maven lifecycle the dependencies are resolved as well as running the web application in Tomcat 6 but these messages only appear in IntelliJ so I'm thinking it is an IDE configuration that is causing the issue.
Any help or suggestions as to what the problem might be will be greatly appreciated.
Please sign in to leave a comment.
Hi,
I had experienced very same issue on one of our projects, in the end, a coworker of mine found out that Intellij didn't resolve the tags when dependencies were set to runtime, setting those to provided scope fixed things for that project
(I am talking abot jstl/taglibs dependencies).
However, I am looking at a different project right now, which also uses runtime dependencies, and everything works. go figure..
This is a known problem: http://youtrack.jetbrains.net/issue/IDEA-67546
The fix will appear in upcoming 10.5 version.
"Sylvia Ryan" <no_reply@jetbrains.com> сообщил(а) в новостях
следующее:2841219.57701305000343395.JavaMail.devnet@confluence.jetbrains.net...
>
>
>
>
Thanks very much for your responses. A colleague did notice that when the dependency scopes were changed to provided or compile then the error messages disappeared but we want to avoid having to keep changing these setttings. I deinstalled IntelliJ 10.0.3 and installed 10.0.1 and the problem is no longer evident so this is our workaround.
Cheers,
Sylvia