Please help. A simple custom tag (bodyless) fails because
Tomcat 4.0.2 standlone can't load the class file (details below).
The class file is in WEB-INF/class and the tld file
is in WEB-INF/tld.
Is there a way to turn on class loading log
to figure out why a class is not loaded
by Tomcat.
Thank You.
From: "K Br"
Subject: Problem with custom tag: can't load class file
Date: 4 Mar 2002 06:20:27 -0000
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:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>