Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 41839 invoked from network); 22 Jul 2003 13:14:05 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 22 Jul 2003 13:14:05 -0000 Received: (qmail 25621 invoked by uid 97); 22 Jul 2003 13:16:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 25614 invoked from network); 22 Jul 2003 13:16:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 22 Jul 2003 13:16:38 -0000 Received: (qmail 40342 invoked by uid 500); 22 Jul 2003 13:13:49 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 40327 invoked from network); 22 Jul 2003 13:13:49 -0000 Received: from tomts17.bellnexxia.net (HELO tomts17-srv.bellnexxia.net) (209.226.175.71) by daedalus.apache.org with SMTP; 22 Jul 2003 13:13:49 -0000 Received: from athlon ([65.93.3.79]) by tomts17-srv.bellnexxia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with SMTP id <20030722131348.UHID8847.tomts17-srv.bellnexxia.net@athlon> for ; Tue, 22 Jul 2003 09:13:48 -0400 Message-ID: <000901c35053$164e3e40$0d02a8c0@athlon> From: "Rhino" To: "tomcat-user" Subject: Weird Problems installing servlets in Tomcat Date: Tue, 22 Jul 2003 09:13:47 -0400 MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_000_0005_01C35031.8F0D50E0"; type="multipart/alternative" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0005_01C35031.8F0D50E0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0006_01C35031.8F0D50E0" ------=_NextPart_001_0006_01C35031.8F0D50E0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Tomcat has suddenly started behaving rather strangely on our Linux = server. I was hoping someone here could give me some insight into the = reasons and some suggestions for resolving the problem. We are running = Tomcat 4.1.24 on a Linux Mandrake 9.1 box. I wrote a servlet on the weekend which worked on my Windows XP machine = but misbehaved slightly on the Linux server when installed there. = Yesterday, I figured out what the problem was and revised the servlet. = The revised version worked in Windows so I tried to install it in Linux. = That's when the weirdness started: I can't install the WAR file in = Tomcat. It always fails on the same error:=20 java.lang.NoSuchMethodError: = org.apache.commons.fileupload.FileUpload.setSizeMax(I)V I checked the Javadocs and found that the setSizeMax() method is part of = the class FileUploadBase, not FileUpload, so I immediately suspected = that the Linux box had an older version of the commons fileupload jar, = which only went to version 1.0 at the end of June. I searched the Linux = box and found commons-fileupload.jar, which is NOT the current version, = and also found commons-fileupload-1.0.jar which IS the current version. = I deleted the old one and now the only version of the jar on the server = is commons-fileupload-1.0.jar.=20 I tried installing the WAR file again but get the same error. I even = tried installing a newer version of a different WAR file that doesn't do = file uploads and IT failed on the same error. What is going on here?=20 I took a peek inside the commons-fileupload-1.0.jar and got this, which = looks just fine to me: jar tvf commons-fileupload-1.0.jar | more 0 Wed Jun 25 23:12:04 EDT 2003 META-INF/ 420 Wed Jun 25 23:12:04 EDT 2003 META-INF/MANIFEST.MF 0 Wed Jun 25 23:11:58 EDT 2003 org/ 0 Wed Jun 25 23:11:58 EDT 2003 org/apache/ 0 Wed Jun 25 23:11:58 EDT 2003 org/apache/commons/ 0 Wed Jun 25 23:11:58 EDT 2003 org/apache/commons/fileupload/ 6020 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/DefaultFileItem.class 1541 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/DefaultFileItemFactory.class 1547 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/DeferredFileOutputStream.class 2159 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/DiskFileUpload.class 792 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileItem.class 262 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileItemFactory.class 811 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileUpload.class 672 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileUploadBase$InvalidContentTypeException.= class 669 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException.c= lass 651 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileUploadBase$UnknownSizeException.class 7449 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileUploadBase.class 486 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/FileUploadException.class 894 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/MultipartStream$IllegalBoundaryException.cl= ass 894 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/MultipartStream$MalformedStreamException.cl= ass 6245 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/MultipartStream.class 1789 Wed Jun 25 23:11:58 EDT 2003 = org/apache/commons/fileupload/ThresholdingOutputStream.class 2873 Mon Feb 10 22:05:50 EST 2003 META-INF/LICENSE.txt 121 Wed Jun 25 23:12:04 EDT 2003 META-INF/INDEX.LIST I can't think of anything else to try at this point. Any ideas anyone? Rhino --- rhino1 AT sympatico DOT ca "If you want the best seat in the house, you'll have to move the cat." ------=_NextPart_001_0006_01C35031.8F0D50E0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Tomcat has suddenly started behaving rather strangely on our Linux = server.=20 I was hoping someone here could give me some insight into the reasons = and some=20 suggestions for resolving the problem. We are running Tomcat 4.1.24 on a = Linux=20 Mandrake 9.1 box.
 
I wrote a servlet on the weekend which worked on my Windows XP = machine but=20 misbehaved slightly on the Linux server when installed there. Yesterday, = I=20 figured out what the problem was and revised the servlet. The revised = version=20 worked in Windows so I tried to install it in Linux. That's when the = weirdness=20 started: I can't install the WAR file in Tomcat. It always fails on the = same=20 error:
 
java.lang.NoSuchMethodError:=20 org.apache.commons.fileupload.FileUpload.setSizeMax(I)V
I checked the Javadocs and found that the setSizeMax() method is = part of=20 the class FileUploadBase, not FileUpload, so I immediately suspected = that the=20 Linux box had an older version of the commons fileupload jar, which only = went to=20 version 1.0 at the end of June. I searched the Linux box and found=20 commons-fileupload.jar, which is NOT the current version, and also found = commons-fileupload-1.0.jar which IS the current version. I deleted the = old one=20 and now the only version of the jar on the server is = commons-fileupload-1.0.jar.=20
 
I tried installing the WAR file again but get the same error. I = even tried=20 installing a newer version of a different WAR file that doesn't do file = uploads=20 and IT failed on the same error. What is going on here?
 
I took a peek inside the commons-fileupload-1.0.jar and got this, = which=20 looks just fine to me:
jar tvf commons-fileupload-1.0.jar | = more
     0 Wed=20 Jun 25 23:12:04 EDT 2003 META-INF/
   420 Wed Jun 25 = 23:12:04 EDT=20 2003 META-INF/MANIFEST.MF
     0 Wed Jun 25 = 23:11:58 EDT=20 2003 org/
     0 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/
     0 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/commons/
     0 Wed Jun 25 23:11:58 = EDT 2003=20 org/apache/commons/fileupload/
  6020 Wed Jun 25 23:11:58 EDT = 2003=20 org/apache/commons/fileupload/DefaultFileItem.class
  1541 Wed = Jun 25=20 23:11:58 EDT 2003=20 org/apache/commons/fileupload/DefaultFileItemFactory.class
  = 1547 Wed=20 Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/DeferredFileOutputStream.class
  = 2159 Wed=20 Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/DiskFileUpload.class
   792 = Wed Jun=20 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileItem.class
   262 Wed Jun = 25=20 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileItemFactory.class
   811 = Wed Jun=20 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileUpload.class
   672 Wed = Jun 25=20 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileUploadBase$InvalidContentTypeException.= class
  =20 669 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException.c= lass
  =20 651 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileUploadBase$UnknownSizeException.class =20 7449 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileUploadBase.class
   486 = Wed Jun=20 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/FileUploadException.class
   = 894 Wed=20 Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/MultipartStream$IllegalBoundaryException.cl= ass
  =20 894 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/MultipartStream$MalformedStreamException.cl= ass
 =20 6245 Wed Jun 25 23:11:58 EDT 2003=20 org/apache/commons/fileupload/MultipartStream.class
  1789 Wed = Jun 25=20 23:11:58 EDT 2003=20 org/apache/commons/fileupload/ThresholdingOutputStream.class
  = 2873 Mon=20 Feb 10 22:05:50 EST 2003 META-INF/LICENSE.txt
   121 Wed = Jun 25=20 23:12:04 EDT 2003 META-INF/INDEX.LIST
I can't think of anything else to try at this point.
 
Any ideas anyone?
 
Rhino
---
rhino1 AT sympatico DOT ca
"If you want the best = seat in=20 the house, you'll have to move the cat."
------=_NextPart_001_0006_01C35031.8F0D50E0-- ------=_NextPart_000_0005_01C35031.8F0D50E0--