You must have your files under your classes subdirectory in WEB-INF. For
example if you have a directory (lets say myDirectory) where you have all
your .jsp .html etc files then all the class files must be inside the
myDirectory/WEB-INF/classes. In your case it must be something like:
myDirectory/WEB-INF/classes/dates/JspCalendar. As you can see the packet
also goes into the classes subdirectory.
Also make sure that all the classpaths are configured properly.
Hope this helps.
Panos
>From: "YI,LI (HP-USA,ex1)" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Need help on Tomcat 4.0 example
>Date: Tue, 5 Dec 2000 09:12:12 -0700
>
>Just download and installed Apache 1.3.14 and Tomcat 4.0, startup seems
>fine, but failed when run examples under Servlet and JSP:
>
>when run any Servlet example:
>
>HTTP 404 - File not found
>
>when run JSP example:
>
>A Servlet Exception Has Occurred
>...
>Root Cause:
>java.lang.NoClassDefFoundError: num/NumberGuessBean
>or
>java.lang.ClassNotFoundException: Unable to load class dates.JspCalendar
>
>What am I missing?
>
>Thanks,
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_____________________________________________________________________________________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets