Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sam E
Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 4, 2010 7:36 AM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

Hi,

With liferay 5.2.3 and its plugins sdk, eclipse,
after I deployed the plugin portlet to liferay portal, adding it via "Add Application" causes the following exception:

1
2
314:23:55,735 ERROR [PortletRequestDispatcherImpl:316] org.apache.jasper.JasperException: /jsp/wizPartnerInfo.jsp(31,0) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
4org.apache.jasper.JasperException: /jsp/wizPartnerInfo.jsp(31,0) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV


Here is my web.xml file:

 1
 2
 3<?xml version="1.0" encoding="UTF-8"?>
 4<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
 5
 6<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
 7         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 8         version="2.4"
 9         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd">
10
11   
12    <!-- Resources bundle base class -->
13     <context-param>
14        <param-name>contextConfigLocation</param-name>
15        <param-value>
16            /WEB-INF/context/applicationContext.xml
17        </param-value>
18    </context-param>
19
20    <listener>
21        <listener-class>
22            org.springframework.web.context.ContextLoaderListener
23        </listener-class>
24    </listener>
25
26    <servlet>
27        <servlet-name>ViewRendererServlet</servlet-name>
28        <servlet-class>
29            org.springframework.web.servlet.ViewRendererServlet
30        </servlet-class>
31        <load-on-startup>1</load-on-startup>
32    </servlet>
33
34    <servlet-mapping>
35        <servlet-name>ViewRendererServlet</servlet-name>
36        <url-pattern>/WEB-INF/servlet/view</url-pattern>
37    </servlet-mapping>
38    <jsp-config>
39         <taglib>
40            <taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
41            <taglib-location>/WEB-INF/tld/c-rt.tld</taglib-location>
42        </taglib>
43        <taglib>
44            <taglib-uri>
45                http://www.springframework.org/tags/form
46            </taglib-uri>
47            <taglib-location>
48                /WEB-INF/tld/spring-form.tld
49            </taglib-location>
50        </taglib>
51        <taglib>
52            <taglib-uri>
53                http://www.springframework.org/tags/spring
54            </taglib-uri>
55            <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
56        </taglib>
57        <taglib>
58            <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
59            <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
60        </taglib>
61        <taglib>
62            <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
63            <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
64        </taglib>
65    </jsp-config>
66</web-app>


What have I missed?

Very appreciate for any suggestion and help.

Thanks
Sam
Tanweer .
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 4, 2010 1:00 PM
Answer

Tanweer .

Rank: Expert

Posts: 319

Join Date: March 11, 2010

Recent Posts

Hello Sam,
Have you put all the jstl related jars and tlds in your lib and tld folders.
Sam E
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 4, 2010 9:18 PM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

Tanweer Ahmed Ansari:
Hello Sam,
Have you put all the jstl related jars and tlds in your lib and tld folders.


Hi,

Thank you for your reply.
I found there are few tld files missing from the this spring portlet that created by PortletGenerator.

It seems that each time when I create a new Spring protlet with PortletGenerator, I need to manually create the tld files and copy spring/jtsl jars into the portlet's tld and lib folders. Is there configuration step I 've overlooked?

Thanks
Sam.
Sam E
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 6, 2010 12:47 AM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

Tanweer Ahmed Ansari:
Hello Sam,
Have you put all the jstl related jars and tlds in your lib and tld folders.


Hi,

Here is what I got for the product-list-portlet:

 1
 2bash-3.2$ pwd
 3/cygdrive/c/liferay/bundles/liferay-portal-5.2.3/tomcat-6.0.18/webapps/product-list-portlet/WEB-INF/lib
 4bash-3.2$ ls -l
 5total 20084
 6-rwx------+ 1 swun Domain Users   331716 2010-07-06 17:39 backport-concurrent.jar
 7-rwx------+ 1 swun Domain Users   188671 2010-07-06 17:39 commons-beanutils.jar
 8-rwx------+ 1 swun Domain Users    46725 2010-07-06 17:39 commons-codec.jar
 9-rwx------+ 1 swun Domain Users   575389 2010-07-06 17:39 commons-collections.jar
10-rwx------+ 1 swun Domain Users   271849 2010-07-06 17:39 commons-configuration.jar
11-rwx------+ 1 swun Domain Users   121757 2010-07-06 17:39 commons-dbcp.jar
12-rwx------+ 1 swun Domain Users   143602 2010-07-06 17:39 commons-digester.jar
13-rwx------+ 1 swun Domain Users    76685 2010-07-06 17:39 commons-discovery.jar
14-rwx------+ 1 swun Domain Users    87776 2010-07-06 17:39 commons-io.jar
15-rwx------+ 1 swun Domain Users   245274 2010-07-06 17:39 commons-lang.jar
16-rwx------+ 1 swun Domain Users    60841 2010-07-06 17:39 commons-logging.jar
17-rwx------+ 1 swun Domain Users   138956 2010-07-06 17:39 commons-validator.jar
18-rwx------+ 1 swun Domain Users    53917 2010-07-06 17:39 easyconf.jar
19-rwx------+ 1 swun Domain Users    21128 2010-07-06 17:39 jstl.jar
20-rwx------+ 1 swun Domain Users   391834 2010-07-06 17:39 log4j.jar
21-rwx------+ 1 swun Domain Users 13275858 2010-07-06 17:39 portal-impl.jar
22-rwx------+ 1 swun Domain Users    73700 2010-07-06 17:39 portals-bridges.jar
23-rwx------+ 1 swun Domain Users    21151 2010-07-07 02:01 product-list-portlet-service.jar
24-rwx------+ 1 swun Domain Users   149222 2009-03-14 04:17 spring-webmvc-portlet.jar
25-rwx------+ 1 swun Domain Users   402396 2010-07-06 17:39 spring-webmvc.jar
26-rwx------+ 1 swun Domain Users  2949500 2010-07-06 17:39 spring.jar
27-rwx------+ 1 swun Domain Users    46229 2010-07-06 17:39 util-bridges.jar
28-rwx------+ 1 swun Domain Users   181909 2010-07-06 17:39 util-java.jar
29-rwx------+ 1 swun Domain Users   243090 2010-07-06 17:39 util-taglib.jar
30-rwx------+ 1 swun Domain Users   411090 2010-07-06 17:39 xstream.jar


 1
 2
 3bash-3.2$ pwd
 4/cygdrive/c/liferay/bundles/liferay-portal-5.2.3/tomcat-6.0.18/webapps/product-list-portlet/WEB-INF/tld
 5bash-3.2$ ls -l
 6total 244
 7-rwx------+ 1 swun Domain Users 10763 2010-07-06 17:39 c-rt.tld
 8-rwx------+ 1 swun Domain Users 11310 2010-07-06 17:39 c.tld
 9-rwx------+ 1 swun Domain Users  2860 2010-07-05 19:23 easyconf.tld
10-rwx------+ 1 swun Domain Users 12580 2010-07-06 17:39 fmt.tld
11-rwx------+ 1 swun Domain Users 14241 2010-07-06 17:39 liferay-portlet-ext.tld
12-rwx------+ 1 swun Domain Users  4185 2010-07-06 17:39 liferay-portlet.tld
13-rwx------+ 1 swun Domain Users  2450 2010-07-06 21:31 liferay-security.tld
14-rwx------+ 1 swun Domain Users  2371 2010-07-06 17:39 liferay-theme.tld
15-rwx------+ 1 swun Domain Users 68599 2010-07-06 21:31 liferay-ui.tld
16-rwx------+ 1 swun Domain Users  2163 2010-07-06 17:39 liferay-util.tld
17-rwx------+ 1 swun Domain Users 72258 2007-11-14 17:39 spring-form.tld
18-rwx------+ 1 swun Domain Users 13507 2010-07-05 19:23 spring.tld
19-rwx------+ 1 swun Domain Users  7673 2010-07-06 17:39 x.tld


What have I still missed?

Very appreciate for your help.

Thanks
Sam
Tanweer .
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 6, 2010 11:28 AM
Answer

Tanweer .

Rank: Expert

Posts: 319

Join Date: March 11, 2010

Recent Posts

Hello Sam,
You can create ant script in your xml files and run the target which will automatically place the jar files at the specified path.Hope this helps
Sam E
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 6, 2010 3:30 PM
Answer

Sam E

Rank: Liferay Master

Posts: 660

Join Date: March 2, 2009

Recent Posts

Tanweer Ahmed Ansari:
Hello Sam,
You can create ant script in your xml files and run the target which will automatically place the jar files at the specified path.Hope this helps


Hello Tanweer

Thanks for your response.
Do you mind share this script with me?

Thanks
Sam.
zohreh namazi
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 14, 2012 11:42 PM
Answer

zohreh namazi

Rank: New Member

Posts: 1

Join Date: July 14, 2012

Recent Posts

Hi All
I have A Problem While Deploying My Portlet In Eclipse Erorr Is
failed to load or instantiate taglibraryvalidator class org.apache.taglibs.standard.tlv.jstlcoretlv
.
.
.
.
.
Please Help Me
Jitendra Rajput
RE: Failed to load or instantiate TagLibraryValidator class - JstlCoreTLV .
July 23, 2012 2:04 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

add jstl-api.jar and jstl-impl.jar inside your portlet lib or you can directly specify dependency in liferay-plugin-package.properties file