Phil,

Ok - you're using the %TOMCAT_HOME%\webapps\examples\jsp\dates\dates.jsp?  
The line you're interested in is

<jsp:useBean id='clock' scope='page' class='dates.JspCalendar' 
type="dates.JspCalendar" />

This is more of a general java question rather than tomcat (assuming I'm 
understanding you correctly, so forgive me if I appear patronizing (o:  ).  

What the jsp:useBean does is try to create an object of type 
"dates.JspCalendar".  This object is said to exist in a package "dates" and 
be called "JspCalendar".  As such, tomcat will assume it exists in the 
directory webapps\phil\WEB-INF\classes\dates\ - now if I read correectly 
you've put it in the classes dir.  When you compile, you shouldn't move files 
around yourself... do something like

javac -d %TOMCAT_HOME%\webapps\phil\WEB-INF\classes JspCalendar.java and 
you'll see that javac puts it in the correct place.  This it basically the 
way CLASSPATH operates in java... 

this should do the trick.

cheesr
dim


On Tue, 10 Jul 2001 15:39, Phillip Gillis wrote:
> Thank you for your reply . .
> In my directory "Phil" I created a WEB-INF subdirectory, in it I created a
> sub directory named "classes" . inside the classes directory, I placed the
> JSPCalendar class which from my error is what won't load, I also placed the
> associated .java file in the clsses directory. Using JPad, I recompiled
> this with no errors replacing the previously copied class file.
> In my Server.xml file, I now just have a Host name entry which has the
> correct paths. I removed the  Context path entry. In the browser, I see
> everything fine, but running the JSP . I still get my error.
> My error is "java.lang.ClassNotFoundException: Unable to load class
> dates.JspCalendar "
>
> THANK YOU!!!
>
> Phil
>
>
>
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Phillip Gillis"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, July 10, 2001 12:36 AM
> Subject: Re: Newbie - 500 Error
>
> > I'm not sure if this is the your problem or not, but I would suggest at
>
> least
>
> > having a WEB-INF with a plain web.xml in it so that you conform to
> > spec...
> >
> > what is the error you get?
> >
> > On Tue, 10 Jul 2001 15:19, you wrote:
> > > Hello,
> > >
> > > I have just installed the JDK and Tomcat 3.2.1 on Win Server 2000 . . .
>
> all
>
> > > of my example jsp files work fine. My problem is that I am trying to
>
> create
>
> > > a directory to put my own jsp files. I  copied the included date.jsp
>
> file
>
> > > and put it in a directory named "phil", under webapps. I then made an
>
> entry
>
> > > into the server.xml file context path . .when I browse to the
> > > directory,
>
> I
>
> > > see the jsp file . but when I try to run it, it won't load the class
>
> file.
>
> > > I come from an ASP, IIS background so I am unsure what to do. I really
>
> want
>
> > > to create a "virtual directory" and do my jsp files in it . . but I am
>
> not
>
> > > having any luck doing anything outside the examples directory. I did
>
> look
>
> > > in the docs and in the archives, and I didn't see anything that helped
>
> me.
>
> > > Please keep in mind this is my start for doing jsp . with the intention
>
> of
>
> > > migrating my asp application over. Any help?
> > >
> > > Thanks in advance.
> > >
> > > Phil
> >
> > ----------------------------------------
> > Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> > Content-Transfer-Encoding: quoted-printable
> > Content-Description:
> > ----------------------------------------

Reply via email to