Solved

taglib "Unable to load class null"

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A solution for Fortify Path Manipulation.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…
Suggested Courses

615 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