From users-return-233635-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Wed Apr 18 17:03:33 2012 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 DC00B9337 for ; Wed, 18 Apr 2012 17:03:32 +0000 (UTC) Received: (qmail 89408 invoked by uid 500); 18 Apr 2012 17:03:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 89202 invoked by uid 500); 18 Apr 2012 17:03:29 -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 89192 invoked by uid 99); 18 Apr 2012 17:03:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 17:03:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tomcat@vittox.com designates 72.9.228.36 as permitted sender) Received: from [72.9.228.36] (HELO vps75.vittox.com) (72.9.228.36) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 17:03:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=vittox.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=JuhHQyufoP51CqmKXSAStgBG3DGApumr4UWsyA6hjNY=; b=QX4H09pfKki03Hi1O6h7KcI8T3kSd5h/kdSYT65m2P/H7lnWrt/pm7bkhBECk40dgc+nMlqwMbKLDyedIq22eYC8Kmim32MX25lb5BEqQ4v3hLyEv175TQ9lTSyGS+Yb; Received: from [190.187.22.189] (port=44687 helo=[192.168.1.10]) by vps75.vittox.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1SKYHU-0004l0-EX for users@tomcat.apache.org; Wed, 18 Apr 2012 12:03:00 -0500 Message-ID: <4F8EF3C1.4010801@vittox.com> Date: Wed, 18 Apr 2012 12:02:57 -0500 From: Chris Patterson User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JasperException: The value for the useBean class ___ attribute is invalid References: <4F8D9A5B.3020302@vittox.com> In-Reply-To: <4F8D9A5B.3020302@vittox.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps75.vittox.com X-AntiAbuse: Original Domain - tomcat.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - vittox.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org More on this, now I think it is some configuration issue for the tomcat server: I am using eclipse to check both JSP files, and they work without any problems in my PC. When deploying to Tomcat 5.5.35 to a sub-directory like de project name they also work fine. For example at www.domain.com/Test1/prg1.jsp and www.domain.com/Test1/subdir/prg2.jsp. If I copy them to the main directory with a shell command: cp -pr * .. from the Test1 directory and undeploy the Test1 application then only www.domain.com/prg1.jsp works and but the second one, www.domain.com/subdir/prg2.jsp gives me the same (500) error: /prg2.jsp(26,0) The value for the useBean class attribute jdbcbean.Stringbean is invalid. Is this like a BUG ? Or perhaps something about the Java version ? I have the following version running on a CentOS release 5.8: java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode) Hope this info help a little more to find a solution. El 17/04/2012 11:29 a.m., Chris Patterson escribió: > Hello, pls help with the following issue: > > My JSP calls a Java Bean > and works OK for both versions, Tomcat 5.5 and Tomcat 7.1 > > My problem is when I move that same JSP to a sub-directory, > then I get the 500 error: > > org.apache.jasper.JasperException: /StrBean.jsp(26,0) The value for > the useBean class attribute > jdbcbean.StringBean is invalid. > > I think it could be solved changing the server.xml configuration > described below (?) > > > www.domain.com > docBase="/home/serverhome/public_html" debug="1"/> > > > Any ideas about where to fix the problem ? > > Wilhelm Colln > www.Vittox.com > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org