jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

Ads
 

jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

In this video I will teach you how to solve the jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in Eclipse

In this video I will teach you how to solve the jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in Eclipse

I was trying on a project and I tried to run the project on the Tomcat server from the Eclipse IDE. Due to some un-availability of the library the project deployed but while executing a jsp page it was giving the exception the jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application.

On investigating the issue I found that the error was due to un-availability of the jst library in the project.

Then I added the jstl library in the maven pom.xml and the problem was resolved.

Following entry was added to the pom.xml file:

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

Following video tutorial explains you the steps performed:

Here is the video tutorial of "jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application":

Here is the full log of the error that was coming earlier:

type Exception report

message 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

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:56)
            org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:445)
            org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117)
            org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:325)
            org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:154)
            org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:410)
            org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
            org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
            org.apache.jasper.compiler.Parser.parse(Parser.java:138)
            org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
            org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
            org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
            org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
            org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
            org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
            org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
            org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
            org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
            org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
            org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
            org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)
            org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:267)
            org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1217)
            org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005)
            org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952)
            org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
            org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
            org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
            org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
            org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.62 logs.

After adding the dependency in the pom.xml file error was resolved.

Next: Check more tutorials of Eclipse Integrated development IDE.

 

Ads

Ads