Discussion:
Getting error during the compilation of JSP tag library using Jasper compliler of Tomcat.
Paramjeet Singh Bawa
2011-06-22 10:09:14 UTC
Permalink
Hi List,

I am trying to shift my project from Resin to Tomcat 7. Everything goes fine during deployment. But when I try to access JSP page it is giving me SEVERE Error as follows.

Error details:
[jasper] Jun 22, 2011 2:32:19 AM org.apache.jasper.xmlparser.MyEntityResolver resolveEntity
[jasper] SEVERE: Invalid PUBLIC ID: -//Sun Microsystems, Inc.//DTD JSP Tag Library

JSP Detail : (inside my application)
<%@ taglib uri="http://www.myCompany.com/tld/paf/rswitch" prefix="rs" %>
...

TLD file paf-rswitch.tld (can't change, Code freeze belongs to other project)
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
...

This tld is present inside a jar META-INF/tlds folder.

Here is some more detail about my environment :
Tag lib version : 1.0
JSP version 1.2
Tomcat : 7.0.14
JDK : 1.6_14

This will be great help if someone could help me in this issue.

I saw the jasper implementation of MyEntityResolver, it try to match the Cached Public id with supplied once. These are defined in Constants.java of Apache Jasper project. Is there any other way to solve without changing the public id inside the tld file ?


Thanks,
Param

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
Loading...