>  Hello there. I have written a jsp file that calls a bean (the bean opens
>a
>connection with the databse on the network) but everytime the class is to
>be
>loaded Tomcat returns an eror message which is: "Class <class name> not
>found in type declaration". I am using Apache v1.3.14 and Tomcat v3.2 and
>the classpath is configured to look for the appropriate classes in the
>correct directory. The line that causes the problem is: <jsp:useBean
>id="data" scope="application" class="com.myClasses.ReadData"/>.  Can
>anybody
>help? I am stuck two days now. Thanks in advanced.

>   Panos

hi guy

i think it should not if you have installed your project in the standard way
by jakarta-ant deploy tool.
and you'd better pay more attention to the following points
1. check is the bean class file really created in
   {your project root dir}/WEB-INF/classes
2.check if your bean class file was defined in one package.
  in this case your bean class file should be created in
  {your project root dir}/WEB-INF/classes/packagename
3.if your bean file was defined in package
  you should definitely write bean name like the following
  packagename.beanname in you jsp files

hope it can help you

zk200


_____________________________________________________________________________________
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

Reply via email to