• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Class not found

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You didn't tell me he was so big. Unlike this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic