You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by levk <le...@jimmy.harvard.edu> on 2011/10/27 22:35:38 UTC

Error in the "web" example

Hi I'm new; I've got the examples, built the "web" example with maven just
fine then deployed it into tomcat just fine as well, when I go to the
browser I get this:

rg.apache.jasper.JasperException: /home.jsp(19,0) 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:40)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
	org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:296)
	org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:329)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:437)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1392)
	org.apache.jasper.compiler.Parser.parse(Parser.java:130)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
	org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)

org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)

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:344)

org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)

org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)

I've tried googling about this, it seems like I need to get (something
called) JSTL jars and put them somewhere for my web container to find, but I
can't find neither these jars nor where I should put them exactly. Ideally
I'd like to use maven if it's that kind of dependency, not just raw import
the jar.

--
View this message in context: http://shiro-user.582556.n2.nabble.com/Error-in-the-web-example-tp6937971p6937971.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: Error in the "web" example

Posted by sh...@xoxy.net.
The JSTL dependency has scope "provided," which is appropriate because the
JAR really should belong to the container and not the application (though
the latter will generally work as long as the container doesn't provide its
own copy). The same idea applies to the taglibs-standard artifact.


On Fri, Oct 28, 2011 at 2:41 PM, Manoj Khangaonkar - khangaonkar@gmail.com
 wrote:

> The shiro web sample has the appropriate dependencies in the POM
>
>        <dependency>
>            <groupId>javax.servlet</groupId>
>            <artifactId>jstl</artifactId>
>        </dependency>
>
>        <dependency>
>            <groupId>taglibs</groupId>
>            <artifactId>standard</artifactId>
>        </dependency>
>
> Once downloaded they need to be either packaged in the war
> (WEB-INF/lib -- the shiro web sample pom.xml does not do it ??) or
> placed
> in your tomcat_install\lib directory
>
> Manoj
>
>
>
> On Fri, Oct 28, 2011 at 9:41 AM, levk <le...@jimmy.harvard.edu> wrote:
> > I guess my question is more on a way to do that. First of all none of the
> > mirrors at
> > http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgiseem
> > to have the binaries anymore and that's where I thought I would need to
> > download it from. Once I do find them, where should I put them? And is
> there
> > absolutely no way to have maven do this for me?
> >
> > --
> > View this message in context:
> http://shiro-user.582556.n2.nabble.com/Error-in-the-web-example-tp6937971p6940849.html
> > Sent from the Shiro User mailing list archive at Nabble.com.
> >
>
>
>
> --
> http://khangaonkar.blogspot.com/
>
>

Re: Error in the "web" example

Posted by Manoj Khangaonkar <kh...@gmail.com>.
The shiro web sample has the appropriate dependencies in the POM

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>

        <dependency>
            <groupId>taglibs</groupId>
            <artifactId>standard</artifactId>
        </dependency>

Once downloaded they need to be either packaged in the war
(WEB-INF/lib -- the shiro web sample pom.xml does not do it ??) or
placed
in your tomcat_install\lib directory

Manoj



On Fri, Oct 28, 2011 at 9:41 AM, levk <le...@jimmy.harvard.edu> wrote:
> I guess my question is more on a way to do that. First of all none of the
> mirrors at
> http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi seem
> to have the binaries anymore and that's where I thought I would need to
> download it from. Once I do find them, where should I put them? And is there
> absolutely no way to have maven do this for me?
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/Error-in-the-web-example-tp6937971p6940849.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>



-- 
http://khangaonkar.blogspot.com/

Re: Error in the "web" example

Posted by sh...@xoxy.net.
JSTL is more of a platform technology as opposed to a application-level
library and should probably live at the container level rather than be
bundled with the application. You can download the Sun/Oracle implementation
off the JSTL project site: http://jstl.java.net/download.html


On Fri, Oct 28, 2011 at 12:41 PM, levk - levk@jimmy.harvard.edu wrote:

> I guess my question is more on a way to do that. First of all none of the
> mirrors at
> http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgiseem
> to have the binaries anymore and that's where I thought I would need to
> download it from. Once I do find them, where should I put them? And is
> there
> absolutely no way to have maven do this for me?
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/Error-in-the-web-example-tp6937971p6940849.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>
>

Re: Error in the "web" example

Posted by levk <le...@jimmy.harvard.edu>.
I guess my question is more on a way to do that. First of all none of the
mirrors at
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi seem
to have the binaries anymore and that's where I thought I would need to
download it from. Once I do find them, where should I put them? And is there
absolutely no way to have maven do this for me?

--
View this message in context: http://shiro-user.582556.n2.nabble.com/Error-in-the-web-example-tp6937971p6940849.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: Error in the "web" example

Posted by Manoj Khangaonkar <kh...@gmail.com>.
Hi ,

You are missing the jstl libraries.

jstl.jar and standard.jar ( apache taglibs)

Manoj


On Thu, Oct 27, 2011 at 1:35 PM, levk <le...@jimmy.harvard.edu> wrote:
> Hi I'm new; I've got the examples, built the "web" example with maven just
> fine then deployed it into tomcat just fine as well, when I go to the
> browser I get this:
>
> rg.apache.jasper.JasperException: /home.jsp(19,0) 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:40)
>
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
>        org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:296)
>        org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:329)
>        org.apache.jasper.compiler.Parser.parseDirective(Parser.java:437)
>        org.apache.jasper.compiler.Parser.parseElements(Parser.java:1392)
>        org.apache.jasper.compiler.Parser.parse(Parser.java:130)
>
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
>
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
>        org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
>        org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
>        org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
>        org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
>
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
>        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
>        org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
>        org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
>        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
>        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359)
>
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275)
>
> 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:344)
>
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272)
>
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81)
>
> I've tried googling about this, it seems like I need to get (something
> called) JSTL jars and put them somewhere for my web container to find, but I
> can't find neither these jars nor where I should put them exactly. Ideally
> I'd like to use maven if it's that kind of dependency, not just raw import
> the jar.
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/Error-in-the-web-example-tp6937971p6937971.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>



-- 
http://khangaonkar.blogspot.com/