Bookmarks portlet -- invalid tld file - jsp 2.2 spec

367 views
Skip to first unread message

Jan-Ling Ho

unread,
Feb 27, 2017, 4:56:38 PM2/27/17
to uporta...@apereo.org

Hi everyone,

 

Our Bookmarks portlet is broken after we upgraded our Tomcat from 7.0.64 to 7.0.75

 

We got the following errors: 

SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /WEB-INF/jsp/viewBookmarks.jsp (line: 21, column: 0) /WEB-INF/jsp/include.jsp (line: 23, column: 0)  Invalid tld file: "/WEB-INF/tags/portlet.tld", see JSP 2.2 specification section 7.3.1 for more details

 

After researching, i found the following link  http://stackoverflow.com/questions/38593625/java-error-message-invalid-tld-file-see-jsp-2-2-specification-section-7-3-1-fo

    In the jsp-2_2  JSP.7.3.1 Identifying Tag Library Descriptors Tag library descriptor files have names that use the extension .tld, and the extension indicates a tag library descriptor file.

    When deployed inside a JAR file, the tag library descriptor files must be in the META-INF directory, or a subdirectory of it.

    When deployed directly into a web application, the tag library descriptor files must always be in the WEB-INF directory, or some subdirectory of it.

    TLD files should not be placed in /WEB-INF/classes or /WEB-INF/lib, and must not be placed inside /WEB-INF/tags or a subdirectory of it,

    unless named implicit.tld and intended to configure an implicit tag library with its JSP version and tlib-version.

 

Currently the portlet.tld in the Bookmarks portlet is in /WEB-INF/tags.   

 

Has anyone seen this error before?  Do you know how I can fix this?

 

Thank you,

jan

Aaron Grant

unread,
Feb 27, 2017, 8:48:17 PM2/27/17
to Jan-Ling Ho, uporta...@apereo.org
Hi Jan-Ling,

You should probably upgrade your Bookmarks portlet to a newer version. This was removed a while ago: https://github.com/Jasig/BookmarksPortlet/commit/af2f75a81987dd2989148bee6181aac2549b3cee

Try version 1.1.0 or better.

Aaron

--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user+unsubscribe@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-user/.



--
Aaron Grant
Senior Applications Architect
Oakland University - UTS

Jan-Ling

unread,
Feb 28, 2017, 10:23:45 AM2/28/17
to uPortal Community, janl...@uci.edu
Hi Aaron,

Do you think upgrading to a newer version will solve this issue?  I will check it out....  

Thank you so much for the info!!!

-jan
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.

Lovepreet Singh

unread,
Nov 15, 2018, 7:03:12 AM11/15/18
to uPortal Community
As quick solution, you can just copy below two libraries from the lib folder of tomcat 7.0.64 and place it in your project root or if you are using maven then add these two as dependency in your pom.xml file:

jasper.jar
jasper-el.jar

This will resolve your issue.
Reply all
Reply to author
Forward
0 new messages