Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73337 invoked from network); 10 Jul 2008 14:45:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 14:45:33 -0000 Received: (qmail 33061 invoked by uid 500); 10 Jul 2008 14:45:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32894 invoked by uid 500); 10 Jul 2008 14:45:00 -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 32883 invoked by uid 99); 10 Jul 2008 14:45:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 07:45:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 64.233.170.190 as permitted sender) Received: from [64.233.170.190] (HELO rn-out-0910.google.com) (64.233.170.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 14:44:08 +0000 Received: by rn-out-0910.google.com with SMTP id k40so1024514rnd.17 for ; Thu, 10 Jul 2008 07:44:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=gP8+BNP3LHd/n/YcDhr4DfnMmStYXEtOuwDSM8+3D6s=; b=jw3iKxOQfvXXvDCQASZRe1UNzMLNd/UL1zgCjRwVHdnemkpWKorBF27F6kiY1WRJ2a XV7ANEa50Cp+J3gNcRy5A4LnmXh/2YJMMtMQ05zT4AYigA8DN5/65Uft+UP9v/tOMbzw B8Po6RSR/hGDa/PHeqYKx+m8OEu2jiEgkqJCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ojjrdcQC2QIYQD13QM8bQx9xNyXkFqaNzrRFPWMEYLn4bYG9N+996hpROf2QX7xBEi s7Aeh6F/qtM8qJA2CZuRkhldjv5+Ed934NrEy4ISI6leP21+mns+Nlo25wqFbO2kTuVa MmL31T7mGCVDqyezqaLqA99NCWcuz2GR9COYQ= Received: by 10.142.48.14 with SMTP id v14mr2775223wfv.14.1215701067674; Thu, 10 Jul 2008 07:44:27 -0700 (PDT) Received: by 10.143.162.2 with HTTP; Thu, 10 Jul 2008 07:44:27 -0700 (PDT) Message-ID: <427155180807100744v6131cb5ei8f156ef13415934e@mail.gmail.com> Date: Thu, 10 Jul 2008 18:44:27 +0400 From: "Konstantin Kolinko" To: "Tomcat Users List" Subject: Re: Problem publishing application to debian with tomcat 5.5.17 In-Reply-To: <4876018C.80003@strategos.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4874C43C.5000909@strategos.com.br> <0AAE5AB84B013E45A7B61CB66943C17213B816A0A1@USEA-EXCH7.na.uis.unisys.com> <48751874.5060108@strategos.com.br> <0AAE5AB84B013E45A7B61CB66943C17213B81BA614@USEA-EXCH7.na.uis.unisys.com> <48752845.9070801@strategos.com.br> <0AAE5AB84B013E45A7B61CB66943C17213B81BA805@USEA-EXCH7.na.uis.unisys.com> <4876018C.80003@strategos.com.br> X-Virus-Checked: Checked by ClamAV on apache.org Well, looking at the sources... http://myfaces.apache.org/shared11/myfaces-shared-core/xref/org/apache/myfa= ces/shared/renderkit/RendererUtils.html#531 http://myfaces.apache.org/shared11/myfaces-shared-core/xref/org/apache/myfa= ces/shared/renderkit/RendererUtils.html#504 The RendererUtils.getConvertedStringValue( , Object) method does not accept values of selectItem.getValue() that are not instance of java.lang.String, and generates that message that you are seeing. In your code: value=3D"#{basewebAcessoLogin.unidade.seqUnidade.value}" Is the value of seqUnidade.value a java.lang.String, or a java.lang.Integer= ? If it is Integer, it may be the cause. 2008/7/10 S=E9rgio Vieira Rolanski : > I converted my jsp file to UTF-8 and set the file.enconding on JAVA_OPTS, > but still have the problem. Also another person here tried this on a > different computer not using Integer object but String objects instead an= d > it gives the same error. What I find more weird is that it says the value= is > equal to 1 ("value=3D1") on the exception's message, but nothing is being= set > to 1 anywhere on the code. > > java.lang.IllegalArgumentException: Value is no String > (class=3Djava.lang.Integer, value=3D1) and ....... > > or that has nothing to do with the value I'm setting? > > Caldarale, Charles R wrote: >>> >>> From: S=E9rgio Vieira Rolanski [mailto:sergio@strategos.com.br] >>> Subject: Re: Problem publishing application to debian with >>> tomcat 5.5.17 >>> >>> I believe you mean the System.GetProperty("file.encoding") >>> >> >> >> >> >>> >>> on my windows computer I get "Cp1252" and on my >>> debian server I get "UTF-8". >>> >> >> It's System.getProperty(), but yes. >> That might account for the difference in behavior that you see, but migh= t >> be a red herring. >> >> >>> >>> How do I change it to be same on both computers? >>> >> >> You can set the property on the command line when you start any JVM with >> -Dfile.encoding=3DUTF-8; for Tomcat set the JAVA_OPTS environment variab= le to >> that, in addition to any other options you might need. >> >> >>> >>> Should I use UTF-8, right? >>> >> >> Probably, but that really depends on the character set your files >> (including JSPs) are coded in. If you make sure everything is stored in >> UTF-8, that's what you should use. >> >> - Chuck >> > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org