Solved

taglib "Unable to load class null"

Posted on 2002-07-12
3
342 Views
Last Modified: 2013-11-24
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
Comment
Question by:bobbit31
  • 2
3 Comments
 
LVL 18

Author Comment

by:bobbit31
ID: 7150019
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
 
LVL 6

Accepted Solution

by:
Mindphaser earned 200 total points
ID: 7150203
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0
 
LVL 18

Author Comment

by:bobbit31
ID: 7150231
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now