Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

taglib "Unable to load class null"

here's a weird problem...

i have a custom tag
<%@     taglib prefix="display"     uri="/WEB-INF/tlds/display.tld"     %>

the tld (part of it)
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE taglib
        PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
        "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>
  <tlib-version>1.0</tlib-version>
  <jsp-version>1.2</jsp-version>
  <short-name>display</short-name>

my jsp file is throwing the exception:
org.apache.jasper.compiler.CompileException: /home/rtsai/html/WEB-INF/jsp/Home.jsp(23,0) Unable to load class null

jasper.log shows this:
2002-07-12 11:48:29 - Warning: Unknown element tlib-version in TLD
2002-07-12 11:48:29 - Warning: Unknown element jsp-version in TLD
2002-07-12 11:48:29 - Warning: Unknown element short-name in TLD
2002-07-12 11:48:29 - Warning: Unknown element tag-class in tag
2002-07-12 11:48:29 - Warning: Unknown element description in tag
2002-07-12 11:48:29 - Warning: Unknown element tag-class in tag
2002-07-12 11:48:29 - Warning: Unknown element description in tag
2002-07-12 11:48:29 - Warning: Unknown element tag-class in tag
2002-07-12 11:48:29 - Warning: Unknown element description in tag
2002-07-12 11:48:29 - Warning: Unknown element tag-class in tag
2002-07-12 11:48:29 - Warning: Unknown element description in tag
2002-07-12 11:48:29 - Warning: Unknown element tag-class in tag
2002-07-12 11:48:29 - Warning: Unknown element description in tag

I know the tag is set up correctly as this was working before when i had tomcat running as a standalone...

any ideas? (and yes, i've restarted tomcat and apache ;))
0
bobbit31
Asked:
bobbit31
  • 2
1 Solution
 
bobbit31Author Commented:
ok: i've narrowed it down...

for some reason, sun moved web-jsptaglibrary_1_2.dtd

from:
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd

to:
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd

i figured the dtds would be the same, but it seems not... the first one worked before, but now that i changed the url it is no longer working... interesting.
0
 
MindphaserCommented:
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0
 
bobbit31Author Commented:
actually, the answer is that i went down to tomcat 3.2.4 which uses the JSP1.1 specification NOT 1.2.  oops ;)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now