That shouldn't be necessary. If you have mapped a directory (ex.
c:\dev\project) to a
specific URL in your servlet engine (ex. /project), it shouldn't need to
directly add the file to the class path. Just create the directory WEB-INF
in the
directory you mapped and then create another directory called 'lib' in
WEB-INF
(correction from last mail, it's 'lib', not 'libs'). Every .jar-file you put
in this
dir will be available to your servlets.

Your servlets should be put in WEB-INF/classes.

[ Matthias Carlsson ]
[ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
[ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]

> -----Ursprungligt meddelande-----
> Från: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]För Rosh Nair
> Skickat: den 21 december 2000 19:45
> Till: [EMAIL PROTECTED]
> Ämne: Re: com.oreilly.servlet problem
>
>
> and add the classpath setting in tomcat.bat
>
> eg:- set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cos.jar
>
> -----Original Message-----
> From: Matthias Carlsson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 21, 2000 10:04 AM
> To: [EMAIL PROTECTED]
> Subject: SV: com.oreilly.servlet problem
>
>
> Put cos.jar in /WEB-INF/libs
>
> [ Matthias Carlsson ]
> [ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
> [ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]
>
> > -----Ursprungligt meddelande-----
> > Från: A mailing list for discussion about Sun Microsystem's Java Servlet
> > API Technology. [mailto:[EMAIL PROTECTED]]För fau k
> > Skickat: den 21 december 2000 18:17
> > Till: [EMAIL PROTECTED]
> > Ämne: com.oreilly.servlet problem
> >
> >
> > Hi,
> >
> >
> > I am  com.oreilly.servlet package  for upload a document.  When
> I unzip it
> > unziping into local drive with classes directory..
> >
> >
> > I am setting the classpath to c:\classes\com\oreilly\servlet  but
> > it is not
> > working .. I am trying in different ways.. but there is no luck..
> >
> >
> > I put the jar file cos.jar file in the C:\jdk1.3\jre\lib\ext
> this is also
> > not working..
> >
> >
> > so  I move all classes files to c:\com\oreilly\servlet and I put this in
> > classpath also it is not working .. it is giving same bellow error..
> >
> > where I am doing mistake..  Please any one worked in oreilly
> > package please
> > help, I will appricate u..
> >
> > Please help me..
> >
> > java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequest
> >         at java.lang.Class.newInstance0(Native Method)
> >         at java.lang.Class.newInstance(Unknown Source)
> >         at
> > com.sun.web.core.ServletWrapper.loadServlet(ServletWrapper.java:100)
> >         at
> > com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:119)
> >         at
> > com.sun.web.core.InvokerServlet.service(InvokerServlet.java:168)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> >         at
> > com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
> >         at com.sun.web.core.Context.handleRequest(Context.java:414)
> >         at
> > com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139
> >
> >
> > Thanks & Regards,
> > Malla Reddy Choodi
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > __________________________________________________________________
> > _________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to