aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Applet running in Tomcat" Watch "Applet running in Tomcat" New topic
Author

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

Angus
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet running in Tomcat