tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Problem Loading Jar File
Date Tue, 09 Sep 2003 12:49:33 GMT

Howdy,
It appears you're creating the jar inappropriately.  What happens if you
just do jar cvf Hello.jar *.class ?  Or use ant...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Rara [mailto:rara_levis@yahoo.com]
>Sent: Tuesday, September 09, 2003 3:36 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Problem Loading Jar File
>
>Hi
>I have placed my jar file in Myappl/WEB-INF/lib.
>
>It picks up class files that are in the root of the
>jar file but any class files accessed from within in
>directory structure are not picked up.
>
>Say, I have created a Helo.jar with command line:-
>
>jar -cvf Helo.jar HelloWorld.class ./tm/Helo2.class
>
>and have the following enteries in the web.xml :-
>
><?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE
>web-app    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
>Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd">
>
><web-app>
><servlet>
>	<servlet-name>
>	HelloWorld
>	</servlet-name>
>
>	<servlet-class>
>	HelloWorld
>	</servlet-class>
>
></servlet>
>
>
><servlet>
><servlet-name>
>	Hello2
>	</servlet-name>
>
>	<servlet-class>
>	tm.Hello2.class
>	</servlet-class>
>
>
></servlet>
>
><servlet-mapping>
>
>	<servlet-name>
>	HelloWorld
>	</servlet-name>
>	<url-pattern> /Hello </url-pattern>
></servlet-mapping>
>
><servlet-mapping>
><servlet-name>
>	Hello2
>	</servlet-name>
>	<url-pattern> /Hello2 </url-pattern>
>
></servlet-mapping>
>
>
></web-app>
>
>The application picks up /Hello but for /Hello2 gives
>an error message that the wrapper could not find the
>class.
>
>Please Suggest.
>
>Thanx
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


Mime
View raw message