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:[EMAIL PROTECTED] >Sent: Tuesday, September 09, 2003 3:36 AM >To: [EMAIL PROTECTED] >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
