Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 42633 invoked by uid 500); 26 Jun 2001 22:14:44 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: taglibs-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list taglibs-user@jakarta.apache.org Delivered-To: moderator for taglibs-user@jakarta.apache.org Received: (qmail 86313 invoked from network); 26 Jun 2001 21:23:18 -0000 Date: Tue, 26 Jun 2001 14:23:43 -0700 From: Jeff Marin Subject: Re: tag not working To: taglibs-user@jakarta.apache.org Message-id: <005d01c0fe86$4741a0d0$82e8ce3f@workgroup> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-Mailer: Microsoft Outlook Express 5.00.3018.1300 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <20010626194657.80444.qmail@web14504.mail.yahoo.com> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Are you sure that the following appears in your web.xml: /onjava /WEB-INF/lib/taglib.tld ----- Original Message ----- From: "alex chang" To: Sent: Tuesday, June 26, 2001 12:46 PM Subject: tag not working > I've been following a tutorial: > http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html > > My problem begins with the section "Adding Tag Libraries". > I'm using Tomcat 3.3m3 and Windows 2000. > > I have the taglib.tld in the /WEB-INF/lib directory and > the HelloTag.class in the /WEB-INF/lib/com/onjava directory. > > I've modified my welcome.jsp to include > <%@ taglib uri="/onjava" prefix="onjava" %> > at the top and use the tag > further down the page. When I try to bring up > this page, I get the following error: > > Error: 500 > Location: /onjava/welcome.jsp > Internal Servlet Error: > > org.apache.jasper.compiler.CompileException: > C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,11) Unable to load > class com.onjava.HelloTag > > These are only the first four lines of it. > I've done some testing and it seems I only > get this error when I have my > tag in there (in my welcome.jsp). That is, > if I simply have the > > <%@ taglib uri="/onjava" prefix="onjava" %> > > directive at the top, and leave out the > , The page comes up fine > (except that it doesn't print what would've > been printed by the tag of course). Once > I put the back in, I get > the error. > > Can anyone who has done this example or who > knows what I'm talking about help me? > > Thanks in advance! > -alex > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/