You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Donglu Xie <dx...@aecom.yu.edu> on 2003/01/15 16:52:16 UTC

RE: ant install --- thanks

Thank you. After modifying build.xml, classes files went to the right 
directory. However, the server still cannot find servlet class under 
web/WEB-INF/classes/*. I am checking web.xml. Do you have any other clues 
to help me fix this problem?


At 03:55 PM 1/15/2003 +0100, you wrote:
>Hi,
>
>Supposing you created your own buildfile "install", and you install by
>copying the files to your Tomcat folder:
>
>Instead of copying your project folder (the one which contains your
>"src","build",etc. folders), copy everything in your build folder. So the
>FileSet which defines the files you copy should not be rooted at your
>project base folder, but rather at the "build" folder.
>
>For ex, supposing ${projectbase} contains your project folder and
>${tomcatfolder} contains your tomcat installation:
>
>instead of:
>
><copy todir="${tomcatfolder}/webapps">
>   <fileset dir="${projectbase}">
>     <include name="**/*.class"/>
>   </fileset>
></copy>
>
>use:
>
><copy todir="${tomcatfolder}/webapps">
>   <fileset dir="${projectbase}/build">
>     <include name="**/*.class"/>
>   </fileset>
></copy>
>
>
>Hope this helps.
>Roland.
>
>
> > -----Message d'origine-----
> > De : Donglu Xie [mailto:dxie@aecom.yu.edu]
> > Envoye : mercredi 15 janvier 2003 15:44
> > A : ant-user@jakarta.apache.org
> > Objet : ant install
> >
> >
> > I use Ant 1.5.1 in Tomcat 4.1.Tomcat server is starting up.
> > Then I use "ant
> > install" to set up my application which is organized
> > hierarchy. Everything
> > goes well except that ant create a new fold name "build"
> > which contains all
> > the compiled classes instead of putting those files into
> > "web/WEB-INF".  So, when I try to call the servlet, the
> > server complains
> > that the classes cannot be found.
> >
> > Any help are appreciated.
> > -------------------------------------------------------------
> >   Donglu Xie
> >   Programmer, Data Analyst, Webmaster
> >   Biotechnology Center of AECOM
> >   http://biotech.aecom.yu.edu
> >   Tel: (718) 405-8380
> >   Email: dxie@aecom.yu.edu
> > --------------------------------------------------------------
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>

-------------------------------------------------------------
  Donglu Xie
  Programmer, Data Analyst, Webmaster
  Biotechnology Center of AECOM
  http://biotech.aecom.yu.edu
  Tel: (718) 405-8380
  Email: dxie@aecom.yu.edu
--------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>