You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Trish <po...@tsgrp.com> on 2001/02/12 17:21:44 UTC

tomcat only executes certain beans

i have installed tomcat 3.1.1 on SPARC/Solaris 7 platform. everything is
working fine except that the application i am trying to run/test gives an
error:

org.apache.jasper.JasperException: Cannot find any information on property
'UserId' in a bean of type 'com.ppd.beans.CrfUser'

CrfUser is a bean which is in a .jar file in my webapps/myapp/WEB-INF/lib
folder. The app is using other beans however in that .jar file fine so the
location or .jar file is not the problem.

Also the same app works on NT/Windows 2000 with JRUN 3.0 so i know the .jsp
pages and beans are working fine which leads me to this this is a tomcat
issue. The heading of the .jsp page which calls the CrfUser bean and errors
out is:

<%@ page language="java"%>
<%@ page import="java.sql.*" %>
<jsp:useBean id="oDctm" class="com.ppd.beans.DocumentumUtility"/>
<jsp:useBean id="oUser" scope="page" class="com.ppd.beans.CrfUser"/>
<%@ include file = "../lib/i_common.jsp" %>
<%@ include file = "../lib/i_constants.jsp" %>
<%@ page errorPage="errorpage.jsp" %>
.
.
request for sUserId
.
.
.
<jsp:setProperty name="oUser" property="UserId" value="<%=sUserId%>"/>


the DocumentumUtility bean is working fine. also i was wondering if there
are any tomcat issues with the way the import and includes are done. i
presently have a war directory structure set up if anyone has any insight i
would appreciate the help.

									thanks, Trish


Re: tomcat only executes certain beans

Posted by William Brogden <wb...@bga.com>.

Trish wrote:
> 
> i have installed tomcat 3.1.1 on SPARC/Solaris 7 platform. everything is
> working fine except that the application i am trying to run/test gives an
> error:
> 
> org.apache.jasper.JasperException: Cannot find any information on property
> 'UserId' in a bean of type 'com.ppd.beans.CrfUser'

I suspect you are encountering the convention that expects the property
name
to start with a lower case letter. Try renaming it userId.

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2