Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

taglib "Unable to load class null"

Posted on 2002-07-12
3
Medium Priority
?
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 800 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

688 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