Archive for December, 2014

How to solve Tag libs not found error on Webshpere.

December 31, 2014

Webshpere throws tag lib not found error like the one given below, when you use shared lib.

com.ibm.ws.jsp.JspCoreException: JSPG0047E: Unable to locate tag library for uri http://www.springframework.org/tags/form

However solution to the problem is very simple. two ways you could apply here for the solution.

  1. Include the .jar file containing the .tld taglib in the lib directory (you may leave it placed on shared lib as well). In my case I included spring-webmvc-4.1.1.RELEASE to lib folder.
  2. Extract the jar file containing the taglib and put the .tld files in a folder and put entries in web.xml. here is an example. <taglib>
    <taglib-uri>http://www.springframework.org/tags/form</taglib-uri&gt;
    <taglib-location>/WEB-INF/tld/spring-form.tld</taglib-location>
    </taglib>