File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 13025
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.
I agree. Here's the link:
subject: Applet running in Tomcat
It's not a secret anymore!