You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Glinn Cortez <gl...@cypress.com> on 2002/10/03 09:04:43 UTC
Class org.apache.jsp.InventoryData not found.
Hello!
I have this code:
-----------------------------------------------------------------------------------------------
<%@ page language="Java" import="java.sql.*" %>
<jsp:useBean id="user" class="InventoryData" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<HTML>
<BODY>
<A HREF="NextPage.jsp">Continue</A>
</BODY>
</HTML>
-----------------------------------------------------------------------------------------------
and when i run this code in the browser, it produces this kind of error
below:
Apache Tomcat/4.0.5 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.
An error occurred at line: 3 in the jsp file: /SaveInventory.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:61: Class
org.apache.jsp.InventoryData not found.
InventoryData user = null;
^
An error occurred at line: 3 in the jsp file: /SaveInventory.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:64: Class
org.apache.jsp.InventoryData not found.
user= (InventoryData)
^
An error occurred at line: 3 in the jsp file: /SaveInventory.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:69: Class
org.apache.jsp.InventoryData not found.
user = (InventoryData)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"InventoryData");
^
3 errors, 1 warning
The location of "InventoryData.class" is:
C:\Program Files\Apache Tomcat 4.0\webapps\IMS\WEB-INF\classes
I need some help on this. thank you.
r/glinn
RE: Class org.apache.jsp.InventoryData not found.
Posted by Miguel Angel Mulero Martinez <mi...@mad.tecsidel.es>.
Hi!
The only thing that I see that can be wrong, is if you have a "package" line
at the top of InventoryData.java.
Can you verify this?
-----Mensaje original-----
De: Glinn Cortez [mailto:gli@cypress.com]
Enviado el: jueves, 03 de octubre de 2002 9:05
Para: tomcat-user@jakarta.apache.org
Asunto: Class org.apache.jsp.InventoryData not found.
Hello!
I have this code:
----------------------------------------------------------------------------
-------------------
<%@ page language="Java" import="java.sql.*" %>
<jsp:useBean id="user" class="InventoryData" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<HTML>
<BODY>
<A HREF="NextPage.jsp">Continue</A>
</BODY>
</HTML>
----------------------------------------------------------------------------
-------------------
and when i run this code in the browser, it produces this kind of error
below:
Apache Tomcat/4.0.5 - HTTP Status 500 - Internal Server Error
----------------------------------------------------------------------------
----
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.
An error occurred at line: 3 in the jsp file: /SaveInventory.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:61: Class
org.apache.jsp.InventoryData not found.
InventoryData user = null;
^
An error occurred at line: 3 in the jsp file: /SaveInventory.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:64: Class
org.apache.jsp.InventoryData not found.
user= (InventoryData)
^
An error occurred at line: 3 in the jsp file: /SaveInventory.jsp
Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:69: Class
org.apache.jsp.InventoryData not found.
user = (InventoryData)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"InventoryData");
^
3 errors, 1 warning
The location of "InventoryData.class" is:
C:\Program Files\Apache Tomcat 4.0\webapps\IMS\WEB-INF\classes
I need some help on this. thank you.
r/glinn
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>