tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "K Br" <k...@ny.com>
Subject Problem with custom tag: can't load class file
Date Mon, 04 Mar 2002 06:20:27 GMT
With TC4.0.2 standalone I am unable to load a 
simple (bodyless) custom tag. It fails to
load the class file.

This is the basic Hello World tag 
of Jakarta. The attempt to load the
jsp file containing the tag <jlib:Hello/>
throws the exception:

org.apache.jasper.compiler.CompileException: /U.jsp(14,2) Unable to load class basic.Hello
	at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)

The class file (it extends TagSupport class)
is located in WEB-INF/class/basic/Hello.class.

Why does it fail to load the class? I thouhg all classes
under WEB-INF/class are automtically loaded by
the container.

The tld file is:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"

"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>
        <tlibversion>1.0</tlibversion>
        <jspversion>1.1</jspversion>
        <shortname>test</shortname>
    <tag>
      <name>Hello</name>
      <tagclass>basic.Hello</tagclass>
      <bodycontent>empty</bodycontent>
      <info>
        Print Hello World
      </info>
    </tag>
</taglib>

/K



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message