You can leave the jar in the tomcat/lib directory.  You just need to make sure that it is included in your classpath when tomcat is started.
check your tomcat.bat file and make sure that it appends the jars in the tomcat/lib directory to your class path on startup.
Or, you can add it manually if you prefer that.
I wouldn't put it in the WEB-INF/classes directory because it is a common jar that all web apps will need.

Display your classpath in your tomcat window and see if it is included.

Pete
 

Chuck Amadi wrote:

Hi there again Peter i found them in jarkarta-tomcat-3.2.2\lib there was also parser,ant,jasper,webserver,jaxp and servlet.jar thus i have c&p to my C:\jt-3.2.2\webapps/bbnpa/WEB-INF/lib.  I assume that is the correct .

Cheers Chuck

Peter Alfors wrote:

Do you have the servlet.jar in your classpath?

Pete

Chuck Amadi wrote:

> On attempting to creat the joinstruts project recieved the following
> error.
> Cheers Chuck
> compile:
> Created dir: C:\jakarta-tomcat-3.2.2\webapps\joinStruts\build\classes
> Copying 1 file to
> C:\jakarta-tomcat-3.2.2\webapps\joinStruts\build\classes
> Compiling 2 source files to
> C:\jakarta-tomcat-3.2.2\webapps\joinStruts\build\classes
> joinStruts/src/main/web/mailinglist/JoinAction.java [9] cannot resolve
> symbol
> symbol  : class ServletException
> location: package servlet
> import javax.servlet.ServletException;
>                      ^
> joinStruts/src/main/web/mailinglist/JoinAction.java [10] cannot resolve
> symbol
> symbol  : class HttpServletRequest
> location: package http
> import javax.servlet.http.HttpServletRequest;
>                           ^
> joinStruts/src/main/web/mailinglist/JoinAction.java [11] cannot resolve
> symbol
> symbol  : class HttpServletResponse
> location: package http
> import javax.servlet.http.HttpServletResponse;
>                           ^
> joinStruts/src/main/web/mailinglist/JoinAction.java [41] cannot resolve
> symbol
> symbol  : class HttpServletRequest
> location: class web.mailinglist.JoinAction
>                                  HttpServletRequest request,
>                                  ^
> joinStruts/src/main/web/mailinglist/JoinAction.java [42] cannot resolve
> symbol
> symbol  : class HttpServletResponse
> location: class web.mailinglist.JoinAction
>                                  HttpServletResponse response)
>                                  ^
> joinStruts/src/main/web/mailinglist/JoinAction.java [43] cannot resolve
> symbol
> symbol  : class ServletException
> location: class web.mailinglist.JoinAction
>                                  throws IOException, ServletException {
>                                                      ^
> joinStruts/src/main/web/mailinglist/JoinForm.java [8] cannot resolve
> symbol
> symbol  : class HttpServletRequest
> location: package http
> import javax.servlet.http.HttpServletRequest;
>                           ^
> joinStruts/src/main/web/mailinglist/JoinForm.java [44] cannot resolve
> symbol
> symbol  : class HttpServletRequest
> location: class web.mailinglist.JoinForm
>     public void reset(ActionMapping mapping, HttpServletRequest request)
> {
>                                              ^
> joinStruts/src/main/web/mailinglist/JoinForm.java [59] cannot resolve
> symbol
> symbol  : class HttpServletRequest
> location: class web.mailinglist.JoinForm
>                                  HttpServletRequest request) {
>                                  ^
> 9 errors
> joinStruts/build.xml [21] Compile failed, messages should have been
> provided.
> suhas wrote:
>
> >    Part 1.1    Type: Plain Text (text/plain)
> >            Encoding: quoted-printable
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal  rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.

  ------------------------------------------------------------------------
                          Name: peter.alfors.vcf
   peter.alfors.vcf       Type: VCard (text/x-vcard)
                      Encoding: 7bit
                   Description: Card for Peter Alfors

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
 
begin:vcard 
n:;
x-mozilla-html:FALSE
org:<BR><IMG SRC="http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;;;;;
version:2.1
end:vcard

Reply via email to