Would the servlet.jar be in the $CATALINA_HOME directory stucture, or
does the installer put it elsewhere on the system?  I ask because I
can't find the servlet.jar in the $CATALINA_HOME directories.(jre/...)
and I didn't realize it shipped with tomcat, that is probably my
problem.

thanks,
matt


-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 4:12 PM
To: Tomcat Users List
Subject: RE: tag library compile



Hi,
Did you put the same version of servlet.jar on the classpath as the
version that ships with tomcat?  However, you should not put this
servlet.jar in the extensions (jre/lib/ext) directory: that can break
other applications, such as tomcat's examples.  Instead, put this in
another directory that's on your classpath but not on any other
application's classpath.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Zollinhofer, Matt [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 18, 2004 4:02 PM
>To: Tomcat Users List
>Subject: tag library compile
>
>I get the following error when compiling HelloTag.java (below as well).
It
>has an associated taglib.tld in the lib directory.
>
>I thought I found a solution after googling the error that suggested I
put
>servlet.jar in the java classpath.  So, I put it in the extentions
>directory.  I could compile HelloTag.java, but it broke other parts of
>tomcat (the examples that come with the standard installation of Tomcat
>stopped working).
>
>-----------Error-------
>
>HelloTag.java:3: package javax.servlet.jsp does not exist
>import javax.servlet.jsp.JspException;
>
>HelloTag.java:4: package javax.servlet.jsp does not exist
>import javax.servlet.jsp.JspTagException;
>
>HelloTag.java:7: cannot resolve symbol
>symbol  : class TagSupport
>location: class com.onjava.HelloTag
>public class HelloTag extends TagSupport
>
>
>-----------Code----------
>
>HelloTag.java code:
>package com.onjava;
>
>import javax.servlet.jsp.JspException;
>import javax.servlet.jsp.JspTagException;
>import javax.servlet.jsp.tagext.TagSupport;
>
>public class HelloTag extends TagSupport
>{
> public void HelloTag() {
>
> }
> public int doEndTag() throws JspException {
>
>  try {
>
>   pageContext.getOut().print("Hello");
>  }
>  catch (Exception e) {
>
>   throw new JspTagException(e.getMessage());
>  }
>  return SKIP_BODY;
> }
>
> public void release() {
>
>  super.release();
> }
>}
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to