Thanks Brian.

The project is the shiro tutorial at
https://github.com/lhazlewood/apache-shiro-tutorial-webapp

When I run "mvn package" I can see that jstl is not included in the war's
lib folder. Based on your suggestion I manually downloaded jstl 1.2 and
copied it to the lib folder and it works now

Should the jstl dependency be added to the tutorial's pom.xml in GitHub?

Sincerely
Bernie



On Fri, Apr 15, 2016 at 11:46 AM, Brian Demers <[email protected]>
wrote:

> It is probably the version of jstl on your classpath.
>
> Can you share you project?
>
> On Thu, Apr 14, 2016 at 6:48 PM, Bernhard Lenz <[email protected]> wrote:
>
>> I started going through the webapp tutorial at
>> http://shiro.apache.org/webapp-tutorial.html
>>
>> Instead of deplying the tutorial to mvn jetty:run, I'm deploying it to
>> tomcat by running the mvn package command and then copying the war
>> files from target to tomcat's webapp directory.
>>
>> When I hit the url in the browser I get below error. Has anybody
>> experienced this same problem?
>>
>> HTTP Status 500 - 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
>>
>> *type* Exception report
>>
>> *message* *The absolute uri: http://java.sun.com/jsp/jstl/core
>> <http://java.sun.com/jsp/jstl/core> cannot be resolved in either web.xml or
>> the jar files deployed with this application*
>>
>> *description* *The server encountered an internal error that prevented
>> it from fulfilling this request.*
>>
>> *exception*
>>
>> org.apache.jasper.JasperException: 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
>>      
>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55)
>>      
>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:277)
>>      
>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:75)
>>      
>> org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:243)
>>      
>> org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:124)
>>      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:421)
>>      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:479)
>>      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1435)
>>      org.apache.jasper.compiler.Parser.parse(Parser.java:139)
>>      
>> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
>>      
>> org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
>>      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
>>      org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
>>      org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
>>      org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
>>      
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
>>      
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
>>      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
>>      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>      
>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
>>      
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:935)
>>      org.apache.jsp.home_jsp._jspService(home_jsp.java:111)
>>      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>      
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
>>      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
>>      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>      
>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
>>      
>> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:742)
>>      
>> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:712)
>>      org.apache.jsp.index_jsp._jspService(index_jsp.java:114)
>>      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>      
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
>>      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
>>      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>      
>> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
>>      
>> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
>>      
>> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
>>      
>> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
>>      
>> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
>>      
>> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
>>      
>> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
>>
>> *note* *The full stack trace of the root cause is available in the
>> Apache Tomcat/8.0.33 logs.*
>> ------------------------------
>> Apache Tomcat/8.0.33
>>
>
>

Reply via email to