Hello,
  I have a question about tomcat, jsp java bean. I have jsp code:

<!-- Developed and Documented by Krishna Veeramachaneni -->
<html>

<head>
<title>IMEDGE Content Management Services Administrator</title>
<link href="/JSP/com/imedge/admin/style.css" rel="stylesheet"
type="text/css" >
</head>

<body  link="#990000" vlink="#009999" alink="#009999"  
ID="Bdy" leftmargin="0" rightmargin="0" topmargin="0" bgcolor="beige" >

<%@ page import="javax.servlet.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.Vector" %>

<jsp:useBean id="dbbean" class="com.imedge.admin.Employee" >
</jsp:useBean>

</body>

</html>

The error I got:

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


An error occurred at line: 31 in the jsp file:
/JSP/com/imedge/admin/testbean.jsp

Generated servlet error:
C:\Tomcat
4.0\work\Standalone\localhost\_\JSP\com\imedge\admin\testbean$jsp.java:103:
Class com.imedge.admin.Employee not found.
                com.imedge.admin.Employee dbbean = null;
                                ^


An error occurred at line: 31 in the jsp file:
/JSP/com/imedge/admin/testbean.jsp

Generated servlet error:
C:\Tomcat
4.0\work\Standalone\localhost\_\JSP\com\imedge\admin\testbean$jsp.java:106:
Class com.imedge.admin.Employee not found.
                    dbbean= (com.imedge.admin.Employee)
                                             ^


An error occurred at line: 31 in the jsp file:
/JSP/com/imedge/admin/testbean.jsp

Generated servlet error:
C:\Tomcat
4.0\work\Standalone\localhost\_\JSP\com\imedge\admin\testbean$jsp.java:111:
Class com.imedge.admin.Employee not found.
                            dbbean = (com.imedge.admin.Employee)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"com.imedge.admin.Employee");
                                                      ^
3 errors, 1 warning

        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)


Does anyone know what is wrong in my code? The Employee.class is existed in
the right path. I don't know why tomcat say " Class
com.imedge.admin.Employee not found."


Thank you



Eddie Liang
Database Architect
Phone: 630-810-9669 x253




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to