You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paridhi Bansal <pa...@mail.com> on 2003/06/16 12:03:45 UTC

placing jar file

Hi!!

Mine is a normal servlet applet based web-based application where servlet is ionvoked from an html page link.The servlet throws a jar file containing the main applet class and the other files. As per the tomcat docs, i hve kept the servlet in WEB-INF/classes directory and the jar file inWEB-INF/lib directory. On accessing the servlet, this applet never opens up saying AppletNot Found..

Butr when i keep the applet main class file and the jar file directly in the webapps folder, the applet opens at the client side.

Below is the html page code that servlet sends to the client dynamically:
		out.println("<html><head><title> Test Applet </title></head>");
		out.println("&nbsp;&nbsp;<H1>Test Applet &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </H1>");
		out.println("<APPLET CODE=mainapplet.class ARCHIVE = test1.jar  CODEBASE=/test" + " WIDTH=760 HEIGHT=350>");
 		

The server.xml file has following context defined:
  <Context path="" docBase="" debug="0" privileged="true"/>
        
   <!-- Tomcat  Context -->
        <Context path="/test" docBase="test" 
         debug="0" privileged="true"/>

What can be the problem??

Paridhi
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: placing jar file

Posted by Jason Bainbridge <ja...@jblinux.org>.
On Mon, 16 Jun 2003 18:03, Paridhi Bansal wrote:
> Mine is a normal servlet applet based web-based application where servlet
> is ionvoked from an html page link.The servlet throws a jar file containing
> the main applet class and the other files. As per the tomcat docs, i hve
> kept the servlet in WEB-INF/classes directory and the jar file
> inWEB-INF/lib directory. On accessing the servlet, this applet never opens
> up saying AppletNot Found..
G'day,

The WEB-INF/lib directory is a protected directory so the client can't load 
the jar file for the applet, it has to go somewhere it is visible by the 
client side ie. in the webapp directory or a subdirectory off of it.

The jar files that go in WEB-INF/lib are met for use by Tomcat itself not an 
applet served on the client side.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org