Home  >  Forum  >  JSP, Servlet
Post New Query

HTTP Status 500 - The absolute uri: cannot be resolved in either web.xml


joined on
February 03,2015
Asked on March 06,2015
Hi Friends, I leaning JSP and excuting my code on Tomcat server got the below error, please help..

HTTP Status 500 - The absolute uri: http://www.google.com/ cannot be resolved in either web.xml or the jar files deployed with this application


type: Exception report

message: The absolute uri: http://www.google.com/ 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://www.google.com/ 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:278)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:76)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath

(TagLibraryInfoImpl.java:242)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>

(TagLibraryInfoImpl.java:124)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:411)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:469)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1428)
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:564)
org.apache.jasper.servlet.JspServletWrapper.service

(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:335)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
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/8.0.12 logs.

And the JSP code is 

<html>  
<body>  
  
<%@ taglib uri="http://www.google.com/" prefix="mytag" %>  
  
<mytag:currentDate/>  
  
</body>  
</html>  
joined on
October 10,2013
Replied on April 17,2015

http://www.google.com/ is not a tag library URI, that is why you are getting error.

<%@ taglib uri="" prefix="mytag" %>

The uri should be
1. any absolute uri or it
2. or Keep tag library in WEB-INF and configure in web.xml and refer the URL in taglib in your JSP.

Write Answer



Sitewide-Feb4of4234x60





Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us