• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class not found

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
can anybody help me when i am using any bean in my jsp script i am getting an error of class not found.
caLocation: /netrishi/wordpro.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fnetrishi\_0002fwordpro_0002ejspwordpro_jsp_0.java:58: Class SpellCheck not found.
SpellCheck help = null;
^
C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fnetrishi\_0002fwordpro_0002ejspwordpro_jsp_0.java:61: Class SpellCheck not found.
help= (SpellCheck)
^
C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fnetrishi\_0002fwordpro_0002ejspwordpro_jsp_0.java:66: Class SpellCheck not found.
help = (SpellCheck) Beans.instantiate(this.getClass().getClassLoader(), "SpellCheck");
^
please help me.
rishi
 
Mahesh Eshwarappa
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The Jsp is not able to locate the class file.
Check the class path in the properties file.
Copy the class file to the appropriate directory.
It should work.
Regards,
Mahesh

Originally posted by rishi anand:
hi
can anybody help me when i am using any bean in my jsp script i am getting an error of class not found.
caLocation: /netrishi/wordpro.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fnetrishi\_0002fwordpro_0002ejspwordpro_jsp_0.java:58: Class SpellCheck not found.
SpellCheck help = null;
^
C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fnetrishi\_0002fwordpro_0002ejspwordpro_jsp_0.java:61: Class SpellCheck not found.
help= (SpellCheck)
^
C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fnetrishi\_0002fwordpro_0002ejspwordpro_jsp_0.java:66: Class SpellCheck not found.
help = (SpellCheck) Beans.instantiate(this.getClass().getClassLoader(), "SpellCheck");
^
please help me.
rishi

 
Jason Allen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having the same issue, you say,
"Check the class path in the properties file."
Where is the properties file??
Thanks,
Jason.
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually we setup the classpath in c:\autoexec.bat file by editing it in a text editor like notepad/textpad. I am not sure what Mahesh means by .properties file.
regds
maha anna
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
save your beans in the classes folder of jakarta-tomcat.
make a folder by the name of your package and save your beans in that folder.
save the jsp in the examples/jsp folder.
use this tag in your jsp page at the top. :---
<jsp:useBean id="foo" class="tryitp.tryit" />
<jsp:setProperty name="foo" property="*" />

tryitp is the package name and tryit is the class name .
if still not working mail me at rax_india@yahoo.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic