Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

org.apache.jasper.JasperException: The absolute uri: cannot be resolved

Open 1 Answers 130 Views Programming
1 1
I am trying to tag in my JSP file as below.

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

But I am getting error as given below:

org.apache.jasper.JasperException: The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this application
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError( ~[tomcat-embed-jasper-8.0.32.jar:8.0.32]

.. ... ...

    at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_91]
    at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_91]
    at org.apache.tomcat.util.threads.TaskThread$ [tomcat-embed-core-8.0.32.jar:8.0.32]
    at [?:1.8.0_91]


How do I resolve that?

1 Answer

  1. Download the binary distribution of Granule Tag Library by following this URL: ( and unpack the compressed file.

  2. Copy granuleNNN.jar in the distribution’s ‘lib’ directory to your web applications WEB-NF\lib directory.

  3. To use the granule compress tag, you must include taglib directive <%@ taglib uri="" prefix="g" %> at the top of each JSP that uses this library.

  4. Copy the and declarations from web.xml (look below) from compressed file into your /WEB-INF/web.xml

  5. Put tags around the lists of script decorations (JS or CSS). For example -

      <link rel="stylesheet" type="text/css" href="css/dp.css"/>
      <link rel="stylesheet" type="text/css" href="css/demo.css"/>  
    <div id="datepicker"></div>
        <script type="text/javascript" src="common.js"/>
        <script type="text/javascript" src="closure/goog/base.js"/>
      <script type="text/javascript">
        var dp = new goog.ui.DatePicker();
  6. Done.

answered by (151 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.