Hello all,
I came across the unfamous error:

/login.jsp(1,63) PWC6188: The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
or the jar files deployed with this application

when deploying my webapp (a war file) using jetty-runner. (8.1.7.v20120910)
and trying to access a JSP with :

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>

And yes, everything works fine using the jetty:run goal of the jetty maven
plugin.

To make my webapp work with the jetty-runner, instead of launching it with :
java -jar jetty-runner-8.1.7.v20120910.jar  deps.war --> fail JSTL tag
loading in JSPs
I used :
java -jar jetty-runner-8.1.7.v20120910.jar  --jar
~/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar   deps.war --> works
great

Then, I started digging a bit and noticed that jetty-runner does contain
the jstl classes !
z:jetty-runner anthony$ ls javax/servlet/jsp/jstl/core/
ConditionalTagSupport.class   IndexedValueExpression.class
IteratedExpression.class      LoopTag.class
LoopTagSupport$1Status.class
Config.class                  IteratedExpression$1.class
IteratedValueExpression.class LoopTagStatus.class
LoopTagSupport.class

So why did Jetty not load them when I was just using jetty-runner ?
Could it be because the *.tld files are not bundled in META-INF ? or is
there something special to tell org.apache.jasper.runtime.TldScanner to
load the bundled jstl classes ?

Thanks a lot for your help, I'm under the impression I do not need to use
--jar  ~/.m2/repository/javax/servlet/jstl/1.2/jstl-1.2.jar  but I don't
know how to load the jstl otherwise...

Anthony
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to