This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Applet running in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Applet running in Tomcat" Watch "Applet running in Tomcat" New topic

Applet running in Tomcat

Angus Rose
Ranch Hand

Joined: Jun 21, 2002
Posts: 56
Hi All,
I'm developing an applet that when finished will call a servlet on Tomcat version 5. The servlet in turn will return an XML file. The problem I have at the moment is that after the call, the applet fails with the following message:

java.lang.NoClassDefFoundError: Lorg/jdom/Document

plus several other lines.

Basically, I guess that the applet cannot find the jdom.jar which I have placed in the %CATALINA_HOME%\commons\lib directory.

Any suggestions?

Thanks in advance

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Well of course the applet can't find the jar file - the applet lives on a browser somewhere, not on your server!
You will have to put a copy of jdom.jar where the browser can request it.
jQuery in Action, 2nd edition
subject: Applet running in Tomcat
Similar Threads
Need to debug applet on IIS / Tomcat
from a applet how can i call a servlet??
Running an Applet in Tomcat 4.0
Applet - Servlet Communication
invoking servlet from applet