Dear David, yes, there is a target in the build.xml which is used to deploy an application: ant install.
I found the deployment directory as you suggested as follows: conpro/apache-tomcat-5.5.17 $ ls webapps/prolog/WEB-INF/lib/ activation.jar commons-logging-1.1.jar jstl.jar logging-log4j-1.3alpha-8 mail.jar commons-logging-1.1 commons-logging-1.1.tar log4j-1.3alpha-8.jar logging-log4j-1.3alpha-8.zip standard.jar ------------------ They are all jar files I need. But the problem remains that they can not be found? Is there anything I forgot? thanks. Gop ----- Originalnachricht ----- Von: David Delbecq <[EMAIL PROTECTED]> Datum: Donnerstag, 23. November 2006 11:16 am Betreff: Re: WEB-INF/lib/*.jar > [EMAIL PROTECTED] a écrit : > > thanks all for your reply. > > > > actually, I have this kind of directory hierarchy: > > myapp/build.properties > > myapp/build.xml > > myapp/web/*.jsp > > myapp/web/WEB-INF/web.xml > > myapp/web/WEB-INF/lib/requiredlibs.jar > > myapp/web/WEB-INF/classes > > myapp/src/../*.java > > > This is the source, you organize it whatever way you want it > organized,it has nothing to do with tomcat > > and after running ant install, I have this directory structure > and I > > foudn every neccesary jars in the lib directory. > > > > build/*.jsp > > build/WEB-INF/web.xml > > build/WEB-INF/lib/requiredlibs.jar > > build/WEB-INF/classes/../myclasses.class > > > Your ant script is building to build/ directory, nice, but again > nothingto do with tomcat > > According to your recommendation (also servet spec), my WEB-INF > should> be at the first level of the app deployment directory. It > is really at > > the correct place, isn't it? > > > It's in your "build" directory that has nothing to do with the > "deployment" directory. The build directory has to do with the way you > compile and organize your source. It's not related in any way to > tomcator any other webapp server. You are missing the step where > you need to > transfer your builded application to the server (this step is named > "thedeployment"). > > To do this either put the content of your build/ directory to <tomcat > dir>/webapps/<name of your webapp>/, either create a <name of you > webapp>.war file with the content of your build/ directory and > deploy it > to tomcat using the tomcat manager. There is even a ant task to do > this(see tomcat docs about deployment for more informations) > > Or do I have to specify any path to find WEB-INF/lib/*.jar? > > > > thanks for your help. > > Cheers, > > > > Gop > > > > > > > > ----- Originalnachricht ----- > > Von: "Caldarale, Charles R" <[EMAIL PROTECTED]> > > Datum: Mittwoch, 22. November 2006 5:19 pm > > Betreff: RE: WEB-INF/lib/*.jar > > > > > >>> From: [EMAIL PROTECTED] > >>> > >> [mailto:[EMAIL PROTECTED] > >> > >>> Subject: WEB-INF/lib/*.jar > >>> > >>> it seems to me that my lib packages which are located under > >>> myapp/web/WEB-INF/lib can not be recognized by Tomcat. > >>> > >> Read the servlet spec: WEB-INF must be at the first level of the > app>> deployment directory (or .war file), not the second. > >> > >> - Chuck > >> > >> > >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > >> PROPRIETARYMATERIAL and is thus for use only by the intended > >> recipient. If you > >> received this in error, please contact the sender and delete the > e- > >> mailand its attachments from all computers. > >> > >> ----------------------------------------------------------------- > --- > >> - > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > ------------------------------------------------------------------ > --- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -------------------------------------------------------------------- > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]