aspose file tools*
The moose likes Servlets and the fly likes Running applets from servlets using TomCat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running applets from servlets using TomCat" Watch "Running applets from servlets using TomCat" New topic
Author

Running applets from servlets using TomCat

Chaitanya Reddy
Greenhorn

Joined: Jun 06, 2002
Posts: 18
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

Joined: May 14, 2002
Posts: 230

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 ]

Debashish
SCJP2, SCWCD 1.4, PMP, ITIL Foundation
Chaitanya Reddy
Greenhorn

Joined: Jun 06, 2002
Posts: 18
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

Joined: Sep 22, 2001
Posts: 2578

You'll have to place you Applet classes (and HTML) outside WEB_INF.
HTH,
- Manish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running applets from servlets using TomCat