Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running applets from servlets using TomCat

 
Chaitanya Reddy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone..........
I am trying to generate applets from Tomcat.I have JRE in my system........All the class files are store in "C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes" directory.Even my applet class files are stored here.
When I called applet from servlet, "java.lang.ClassNotFound Exception" occured.
Please help me as soon as possible.........
This is very urgent.
thanks
chaitu
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possible workaround is to specify the applet "codebase" which is not based on the Servlet Path. In other words put the Applet class file in a directory (say myApplets) inside your web application folder. Now specify the relative path for this folder in the applet codebase something like the following:
[ August 13, 2003: Message edited by: Debashish Chakrabarty ]
 
Chaitanya Reddy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr.Chakrabarty..
I tried calling applets by creating the folder MyApplets.But my problem remains the same.Could u suggest another method to do this??
thanks
chaitu
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to place you Applet classes (and HTML) outside WEB_INF.
HTH,
- Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic