How to solve Tag libs not found error on Webshpere.

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>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: