Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBD55BCEA for ; Thu, 12 Jan 2012 10:46:27 +0000 (UTC) Received: (qmail 29692 invoked by uid 500); 12 Jan 2012 10:46:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 28778 invoked by uid 500); 12 Jan 2012 10:46:11 -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 28718 invoked by uid 99); 12 Jan 2012 10:46:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 10:46:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pid@pidster.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-we0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 10:45:59 +0000 Received: by werb10 with SMTP id b10so1698373wer.18 for ; Thu, 12 Jan 2012 02:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:openpgp :content-type; bh=NVfVD/ZXuk251qYVbr7+py+R0sFpDptr6VnwkYxe/CQ=; b=npYhHINHN29tE8GMMD+JMX+3Gnq1AjVEt8ybQeTdN0q/7fAf8t7HhfcdHrmidFWPS7 jRqPe0/ioIlKT33K73suGSiWfxy31pHIlRG15RfRS02xSuq30WLTerkh6snGMBr4tI2Y lLt+629XcqDejcx0Ge4fcFvmKPLqhlTL23hWU= Received: by 10.180.75.7 with SMTP id y7mr5166189wiv.2.1326365137949; Thu, 12 Jan 2012 02:45:37 -0800 (PST) Received: from Asura.local (cpc10-lewi14-2-0-cust355.2-4.cable.virginmedia.com. [82.4.249.100]) by mx.google.com with ESMTPS id q5sm5250405wbo.8.2012.01.12.02.45.36 (version=SSLv3 cipher=OTHER); Thu, 12 Jan 2012 02:45:36 -0800 (PST) Message-ID: <4F0EB9C9.6060302@pidster.com> Date: Thu, 12 Jan 2012 10:45:29 +0000 From: Pid Organization: Pidster Inc User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Error: Unable to compile class for JSP References: <4F0DB6A8.7080901@pidster.com> <2959325d-2b97-4bb7-97cb-cfa695a2ad41@email.android.com> In-Reply-To: X-Enigmail-Version: 1.3.4 OpenPGP: id=62590808 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigB06A9F5DDD860F8C19A5D120" --------------enigB06A9F5DDD860F8C19A5D120 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/01/2012 20:44, Justin Larose wrote: > markt@apache.org wrote on 01/11/2012 01:19:17 PM: >=20 >> From: markt@apache.org >> To: Tomcat Users List >> Date: 01/11/2012 01:20 PM >> Subject: Re: Error: Unable to compile class for JSP >> >> Justin Larose wrote: >=20 >>>>> An error occurred at line: 230 in the jsp file: /object_table.jsp >>>>> The type Part is ambiguous >>>>> 227: { >>>>> 228: //do nothing here - we don't want the filter to be >>> displayed >>>>> for lifecycles >>>>> 229: } >>>>> 230: else if (objType.equals(Part.class)) >>>>> 231: { >>> >>>> Have you imported more than one Part.class by accident, via a >>> wildcard >>>> import perhaps? >>> >>> I did not import any classes. >=20 >> You must have at least one import to resolve the class Part. Since=20 >> I'm pretty sure a class with that name was added in servlet 3,=20 >> wildcard imports are very likely the problem. >=20 > I downgraded the Tomcat to Version 6.0.35 and looks to be working=20 > correctly now. > Maybe Serena Dimensions cannot work with that higher version of Tomcat = > (version 7.0.23)?=20 >=20 > The only files I copied over from the 6.0 version to the 6.0.35 version= =20 > were the "webapps" directory the web.xml file and the server.xml file. > The only difference in the server.xml file between the 2 versions is th= is: >=20 > /> > SSLEngine=3D"on" /> So what Mark & are both saying is this: in the JSP there is some code which imports, via a wildcard, two packages that both contains a Part cla= ss. We are not talking about importing things on the file system. We are talking about a specific Java command which is part of the code. E.g. If both of the packages below contain a class called "Part", then the compiler can't tell which one you are trying to use. import com.examples.stuff.* import com.examples.other.* You can use an editor to look in the the JSP file in question for the word "import" somewhere near the top of the file and the '*' character. If there is more than one '*', you can report the error to Serena Dimensions or try to fix it yourself. p > - Thanks, Justin > ***********************************************************************= ******* > This email and any files transmitted with it are intended solely for=20 > the use of the individual or agency to whom they are addressed.=20 > If you have received this email in error please notify the Navy=20 > Exchange Service Command e-mail administrator. This footnote=20 > also confirms that this email message has been scanned for the > presence of computer viruses. >=20 > Thank You! =20 > ***********************************************************************= ******* >=20 >=20 --=20 [key:62590808] --------------enigB06A9F5DDD860F8C19A5D120 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJPDrnPAAoJEGoM2OGpOvr9FeMP/1stXMIRbTOG9YrQqhTteQmr EtszUMR5tx1B3x9dwubRl69ii7XvQsrwmg4Ucdp59SXY7sn+6iX3Te+Di+9WPC8n fSeziAtaishzA7kfsGnwIScvht4dAjzTCw+EefV8tkSwfWn3rgrdNK96Wo7Cam08 A1E4SElfLffBuPBOeTzBMWuYSAX6RaEdIFZ6FFJytqQmUVM54KYBjABB4nc+NxzF ruo86yVaue7YGlzO6kXojJO63oT79F4Uq7xaTIvzyxCdhf82ekHMXAFA2YJs/Wct ghgsHu1MpsZvK8PIK/ig410ozL7Swm5G3c6J9tp0AE9UJDrtgWNkvWUAiPX1b2EJ 5K7u5dkUFB1T9Ih9M3YB2D7vJZcHDys5N8OACQXi+ckLVXskfGEQDylzyjGbIY8i as+8UbtS1ZCKSVoTxL0QoA+c+G+Hyjl694+h9gy+7/ZdR3zmrH3HSku5eph+mYXJ ty//G11xkSpgokG9WjcmuPTG11QEemVuat84sWtXVQAMq1ci+a2ADUNqY3SNFr4Y DTJmtsFLZn6iPS7+DHMc9LoKBm1iyyCzY/9Aslb/ARiPR4CbKVB1KdDXri5JT81W 7nw2kkCH4EEoRey4BeCLJqKggP2JC8nsACd+3OfmpZefINBYQCfrP/MblBm31LGu nQ5WvlaYfy2Dp117yuNY =TMOt -----END PGP SIGNATURE----- --------------enigB06A9F5DDD860F8C19A5D120--