This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
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