Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Package javax.servlet.jsp does not exist ?? 1

Status
Not open for further replies.

aas1611

Programmer
Dec 14, 2001
184
DE
Hi all,

I tried to compile my java code that has the following codes:

Code:
package tags;

import java.util.Date;
import java.utils.DateFormater;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class jspDate extends Object implements Tag {
...
}

The error message I received after compiling are:

the package javax.servlet.jsp does not exist
the package javax.servlet.jsp.tagext does not exist


I have Java SDK Version 1.3. Does it have anything to do with it? How can I install the javax package, then?


Andre
 
You need to include :

TOMCAT_HOME/common/lib/jsp-api.jar

to your CLASSPATH

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Hi,

But I don't have jsp-api.jar under my common dir (by the way, the directory is lib/common, not common/lib).

There are only:
connector_util.jar
core_util.jar
etomcat.jar
jasper-runtime.jar
README
servlet.jar
tomcat_core.jar

I've tried to include servlet.jar (I've read from somewhere else) in my CLASSPATH:
C:\Jakarta\jakarta-tomcat-3.3\lib\common\servlet.jar;

But it still does not work. Is there any way to get the right jar?
 
Tomcat 3 is so old its untrue .... I would suggest upgrading to 5.0.* at least (not 5.5.* because that requires JDK 1.5)

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
If I installed Tomcat 5, would my Tomcat 3 still be there or would it erase all my work and settings in Tomcat 3?
 
Tomcat 3 should still be there - just make sure you download the zip or tar.gz rather than the installer.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
I will give it a try, then.

And there are two kinds of distributions, binary and source code. Which one should I take? What is the difference between these two actually?

Thanks!

Andre

 
One has the source code (which you must compile), the other has compiled code.

Unless you have an overriding desire to look at the source code for Tomcat, I would take the binary distro.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
I have installed Tomcat 5 from the binary distribution, core code (there are deployer and embedded, too. What are they, by the way?).

Anyway, Tomcat 5 looks different from Tomcat 3. In Tomcat 3, there is an admin function (a form) so that I can add context automatically. I can't find the same function in Tomcat 5, yet. How to add a context in Tomcat 5?

I have to get familiar with it.

Thanks for your hints!

Andre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top