Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 82320 invoked from network); 14 Jan 2003 22:31:11 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 14 Jan 2003 22:31:11 -0000 Received: (qmail 26931 invoked by uid 97); 14 Jan 2003 22:32:13 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 26901 invoked by uid 97); 14 Jan 2003 22:32:13 -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 26887 invoked by uid 98); 14 Jan 2003 22:32:12 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <002501c2bc1c$92243db0$f600a8c0@hometwo> From: "Wilson Snook" To: "Tomcat Users List" Subject: You used to make your servlet work, but what about a JSP page with a bean? Date: Tue, 14 Jan 2003 22:30:41 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am a newbie experiencing a very frustrating problem. I have a web application that uses a packaged javabean. When I create a web application with the correct directory structure under the 'webapps' directory (see below), having created a context in 'server.xml', going to the localhost page produces the following error: HTTP Status 500: ...JasperException: Cannot find any information on property 'uName' in a bean of type 'coreBeans.FormBean'... BUT...if I move this application's components in the appropriate directories under the 'examples' folder, it works (therefore the JSP page and the bean are not broken in any way). BUT...if I leave the webapp where it is and disable the bean, the JSP page works (although that's not a lot of use ) even if I use JSP statements in it. I do have Apache HTTP server on this machine, but I mention it without knowing how this would be relevant in any way. AND...I tested another web application that uses a servlet and this would not work either. HOWEVER...I fixed that by using a suitable tag in 'web.xml'. Unfortunately, I don't think I can do this with a bean (or can I?). Does anyone out there know: 1) why my webapp can't find the bean class? 2) why mapping a servlet solves a similar problem for a JSP page using it? 3) how I can get my webapp to find the bean class? I won't at this stage post the webapp JSP page, bean code or xml since I know they work if placed under the 'examples' directory. This problem has been driving me nuts for nearly a week and if anybody could shed some light upon it I think I would be close to ecstatic. TIA, Wilson ::Tomcat 4.1.18 ::Apache 2.043 ::Win2K ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ My directory structure is: %TOMCAT_HOME%/webapps/core/ -->index.jsp -->WEB-INF/classes/coreBeans/FormBean.class My context in 'server.xml' is: The (unmodified) virtual host is -- To unsubscribe, e-mail: For additional commands, e-mail: