Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52402 invoked from network); 16 Dec 2005 18:20:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Dec 2005 18:20:41 -0000 Received: (qmail 89097 invoked by uid 500); 16 Dec 2005 18:20:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89080 invoked by uid 500); 16 Dec 2005 18:20:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 89068 invoked by uid 99); 16 Dec 2005 18:20:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 10:20:25 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [152.2.1.139] (HELO smtp.unc.edu) (152.2.1.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 10:20:23 -0800 Received: from [152.2.190.32] (batmanuel.its.unc.edu [152.2.190.32]) (authenticated bits=0) by smtp.unc.edu (8.13.4/8.13.4) with ESMTP id jBGIJFTR015035 for ; Fri, 16 Dec 2005 13:19:15 -0500 (EST) Message-ID: <43A30524.9000101@unc.edu> Date: Fri, 16 Dec 2005 13:19:16 -0500 From: Adam Constabaris User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: MultipartRequest problem References: <20051216084943.ZFKA27766.ibm58aec.bellsouth.net@mail.bellsouth.net> <43A2FFAE.3060700@mindspring.com> In-Reply-To: <43A2FFAE.3060700@mindspring.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: ITS Messaging Systems (outgoing) on 152.2.1.139 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Franklin Phan wrote: >>>> I have an old servlet that I need to recompile but cannot because >>>>> it >>>> references MultipartRequest class. The servlet imports the >>>> following packages: >>>> >>>> import java.io.*; >>>> import java.sql.*; >>>> import java.util.*; >>>> import javax.servlet.*; >>>> import javax.xml.parsers.*; >>>> import org.xml.sax.*; >>>> import org.w3c.dom.*; > The servlet is part of a package in the webapp. I use NetBeans 4.1, and > I've linked all lib and class folders under Tomcat and under the webapp > into the compile classpath and still fail. No class named MultipartRequest has ever, to my knowledge, been part of the servlet spec proper (see, e.g. http://java.sun.com/products/servlet/2.2/javadoc/index.html), although I suppose some implementation might have tried to make such a thing available as a convenience (if they did it under the javax.servlet package, that would have been a very bad idea). I don't know how your code got the way it is, but I don't think that list of imports is going to find a class named MultipartRequest with any set of jars I know of; if you can't find that class in any of the jars you have available to you and the existing application is running without falling over, then presumably the servlet referencing the missing class is never getting called anyway. Googling and a previous reply to you suggests the most likely candidate for the original source of the MultipartRequest is the com.oreilly.servlet package, which is usually packaged up as cos.jar and is available at http://www.servlets.com/cos/ HTH --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org