You said "I have deployed my riddles package in the WEB-INF/classes
directory for this program."
Does that mean you made a directory named "riddles" in WEB-INF/classes and
you put your class files in it?  That is where the need to be to be seen by
Tomcat.

-----Original Message-----
From: MacCormac Rinehart [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 8:07 AM
To: Tomcat-users (E-mail)
Subject: cannot create bean of class...


Hi,

I'm trying again to get some feedback on this issue of instantiating a bean
with Tomcat 3.2.1. I have deployed my riddles package in the WEB-INF/classes
directory for this program.  


There is an empty constructor in the bean.  I
have already ruled out a ClassNotFound exception.  At this point I think I
am down to a configuration issue.  I am using Tomcat 3.2.1.  If someone
knows the resolution to this issue, please let me know.  Thanks,

Mac

PS for further information see below:


This is the useBean tag copied directly from my JSP:

<jsp:useBean id="riddler" class="riddles.Riddler" scope="request"/>

Below is the code in my web.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

<web-app>
</web-app>


Below is the context entry from my server.xml file:

                <Context path="/riddler"
                                docBase="webapps/riddler"
                                defaultSessionTimeOut="30"
                                crossContext="false"
                                debug="0"
                                reloadable="true">
                </Context> 

Reply via email to