Hi Anthony, The Glassfish jsp engine that we are using with jetty-8 insists on find the jstl tags on the container's classpath. Looking at the build for the jetty-runner it looks like we excluded the jstl tags on purpose, so they aren't inside of the runner jar. Which makes me think we tested putting them inside and it didn't work, meaning your workaround is the correct usage. That said, I can't specifically remember testing that, so I'll test again and get back to you/the list with the results.
Also FYI we will be moving the jetty-runner into the org.eclipse.jetty namespace for jetty-9 onwards. regards Jan On 1 December 2012 03:04, Anthony Dahanne <[email protected]> wrote: > 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 > > -- Jan Bartel <[email protected]> www.webtide.com – Developer advice, services and support from the Jetty & CometD experts.
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
