You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by MM...@legend.cz on 2000/09/21 16:48:54 UTC
BUILD FATAL ERROR: srcdir does not exist!
Hello,
excuse my bad English. I downloaded Tomcat 3.1 and installed on my PC. I
use Windows 95 and JDK 1.3. Every environment variables I have properly
set. I am trying to build sample application, which is in doc/appdev/sample
directory:
1) First I got error concerning with SAX XML parser and the cause was, that
in build.xml file was missing "/>" at the end of line
<property name="app.name" value="myapp"
So, please, correct it in downloadable files!
2) Then when I started build from ms-dos prompt (beeing in directory ...samples), I have following error:
C:\java\sample>build
Buildfile: build.xml
Project base dir set to: C:\java\sample
The items attribute is deprecated. Please use the includes attribute.
The items attribute is deprecated. Please use the includes attribute.
Executing Target: prepare
Created dir: C:\java\tomcat\webapps\myapp
Copying 3 files to C:\java\tomcat\webapps\myapp
Created dir: C:\java\tomcat\webapps\myapp\WEB-INF
Created dir: C:\java\tomcat\webapps\myapp\WEB-INF\classes
Created dir: C:\java\tomcat\webapps\myapp\WEB-INF\lib
BUILD FATAL ERROR: srcdir does not exist!
C:\java\sample>
But subdirectory src subdirectory exists and in build.xml is
<target name="compile" depends="prepare" init="init">
<javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
classpath="${deploy.home}/WEB-INF/classes"
debug="on" optimize="off" deprecation="off"/>
</target>
I had to compile HelloWorld separately by javac and place it to
webapps/myapp/Web-inf/classes and then it worked ok. When I tried to use
JDK1.2.2 I had the same problem, and also in Linux.
So, please, what is wrong?
Thank you very much. Have a good time.
Michal Mazny.Prague.Czech Republic.Europe.World.Universe.God