Solved

taglib "Unable to load class null"

Posted on 2002-07-12
3
359 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What browser will run Java? 7 183
Java array 21 150
Bitwise and to sum elements 2 54
Retrieve multiple results between delimiters in a String in Java 13 26
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
In this post we will learn different types of Android Layout and some basics of an Android App.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

752 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